Originally posted by: SystemAdmin
[Sylvain said:]
I would like to solve successively many similar LPs (MIPs with fixed integer variables).
I see two ways of doing it.
First approach:
1. Write a generic model
2. Add specific constraints to the model
3. Extract and Solve
4. Remove specific constraints from the model
5. Return to stop 2.
Second approach:
1. Write a generic model
2. Extract the model
3. Add specific constraints as cuts using IloCplex::addCuts()
4. Solve
5. Clear cuts using IloCplex::clearCuts()
6. Return to step 3.
The second approach seems to be faster as the model is extracted only once (although adding cuts will modify the search algorithm).
I have tried this approach but it returns different solution then the first one.
Does anyone have any comment or suggestion to help me ?
#CPLEXOptimizers#DecisionOptimization