Originally posted by: Sharron
I have a question regarding addGe and the IloLPMatrix object in a IloCplex object.
I am trying to follow the example of AdMIPex5.java example to add user defined cutting planes, based on the solutioon of the LP relaxiation.
The difference is that in my implementation, the MIP model is not imported from a file, but rather constructed using addGe, addLe
I think this is why I ran into problems when I try to follow the example to get the number of variables by
IloLPMatrix lp = (IloLPMatrix)cplex.LPMatrixIterator().next();
IloNumVar[] vars = lp.getNumVars();
I always get a Null value for lp.
My questions are
1. What is the relationship between AddGe and a IloLPMatrix object in the model?
2. Is there any method to add IloLPMatrix object to the model and populate it with correct values even though I used AddGe to set up the model? I think I can add it by model.addLPMatrix(), so the question is more on how to populated it with the correct number.
Thank you very much for your help.
#DecisionOptimization#MathematicalProgramming-General