X - UWSpace - University of Waterloo
X - UWSpace - University of Waterloo
X - UWSpace - University of Waterloo
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
APPENDIX B The C codes <strong>of</strong> WSET<br />
We present a simplified code <strong>of</strong> a core part for WSET (<strong>Waterloo</strong> Structure Exploiting Tool),<br />
which describes how the mulù-part smicture can be extracted from GAMS and how eûch<br />
subproblem's data cm be sent to the pdlel machines. This code is a modification <strong>of</strong> the<br />
original SET, which has much more complicated coding scheme with several files. Assuming<br />
that dl files and libraries are linked properiy and dl variables are defined comctly, we give<br />
only the modification <strong>of</strong> the original set.<br />
! Retrieve data from nb-blocks Decomposition st-ructure <strong>of</strong> original SET. */<br />
int nb-blocks = aecomp->nb-blocks;<br />
int objeccive,row = Decomp->objective,row;<br />
inc objective-zolux?? = Decomp->objective,column;<br />
int* rowinfo =<br />
icc* rowjerm =<br />
in:* inv-rwq =<br />
into colinfo =<br />
/* Detennine the dimensions <strong>of</strong> SubPrcblems; number <strong>of</strong> variables,cons~raints,<br />
* and nonteroes <strong>of</strong> nb-subs parc for WSET.<br />
* Rm,ove column corresponding to objective varLable fraxrt Sub-O.<br />
* Retrieve Che index <strong>of</strong> the objective row in a pe-rnuted matrzx. *: