Originally posted by: hzy_cims
I wrote a piece of code which solves LP problem with C#. I split the constraints and variables to two parts, and ordered theirs sequence number from 1 to the last in theirs own function. But when I use the ILPMatrix like this:
IEnumerator matrixEnum = cplex.GetLPMatrixEnumerator();
matrixEnum.MoveNext();
ILPMatrix lp = (ILPMatrix)matrixEnum.Current;
the result of the variables going to be mass on the sequence. In other words, in lp, the NumVars is the result of the variables which had been separated to two parts, theirs sequence is not from 1 to the last. How can I make them ordered by 1 to the last?
Thanks!
#CPLEXOptimizers#DecisionOptimization