[FlopCpp] Conditional Row Generation

Shigeru Tsubakitani stsubakitani at neomeshsolutions.com
Sun Dec 21 18:00:35 EST 2008


FlopC++ users,

How do you generate constrains conditionally based on input data?  I tried
an if-statement, such as shown below, and a goto-statement to do it, but
they did not work.  I got some error from both approaches.

 

If( flag == 1)

{

   MP_constraint A(S);

   A(i) = x(i) >= 10;

}

 

I'd appreciate any help/ideas.

Thanks,

 

Shigeru Tsubakitani

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/flopcpp/attachments/20081221/1cdd5436/attachment.html 


More information about the FlopCpp mailing list