14.07.2013 Views

X - UWSpace - University of Waterloo

X - UWSpace - University of Waterloo

X - UWSpace - University of Waterloo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

t<br />

int il status;<br />

1<br />

for(i=HISPb~Ill; i diISPb,m[cur,block] ; i++)<br />

ï<br />

status = CPXchgcoef (env. lp, i-HISPb,m[i J , LpSub [CU=-blockl ->n<br />

+ HISPb~m[nb~subsl-LSPb~m[1~~LSPbbn[l~+iter~~~unt-ll<br />

LpSub[2]->LY[i]);<br />

1<br />

for(l=HISPb,m[cur,blockI; iLY[i] ) ;<br />

1<br />

status = CPXchgcoef(env,lp, SPb-mlcur-blockl-HISeb,m[l]-1, SPb-n[cur,block]<br />

- HISPb~m[nb~suDsl-LSPb,mtll~HISPbbn~1]+iter,cot-l, Lam,coef);<br />

return i s tatus 1 ;<br />

/* Add a cut <strong>of</strong> iower level Fteration with dual information coming from<br />

lower-lower bound subproblem */<br />

int Xddcuts(LpSubPr0b "LpSub, CP-Wpcr env, CPXLPptr Lp, double "KOniega, double<br />

"KLY, double **OMeLY)<br />

{<br />

:nt stacus, i, j, k;<br />

stacus = C?.Xnewrows (env, lp, I, &LpSub (11 ->PiS, &cut,sense, ?SULL. NULL) ;<br />

fortj=O; j < LSPb,n[lj<br />

I:<br />

;j++)<br />

status = CPXchgcoef (env,lp,(int) (SPb-m[cur,bTock]-H1:SPb-m[l +lev2,count-11,<br />

j+SPb,nlcurblockI- HISPb-m[nb-subs]-LSPb-m~1~,LpSub[lI-~PiD[j]) ;<br />

*<br />

for ( j =O ; j

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!