[Coin-discuss] Var&Cut index

Heesu Hwang hxh9528 at exchange.uta.edu
Mon Jun 13 13:02:01 EDT 2005


Hello,

I have two questions.
1) Is there any reason that Var index starts from 1 and Cut index from 0?
For example,
 for(i=0; i<vars.size(); i++)
   cout << vars[i]->bcpind() << " ";
 => 1 2 3 4 ...
 for(i=0; i<cuts.size(); i++)
   cout << cuts[i]->bcpind() << " ";
 => 0 1 2 3 ...

2)The index of algorithmic vars is negative, is that correct?
with 5 core cuts and 2 algo cuts.
For example
 for(i=0; i<cuts.size(); i++)
   cout << cuts[i]->bcpind() << " ";
 => 0 1 2 3 4 -5 -6

Thanks,

Peter.



More information about the Coin-discuss mailing list