Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Cplex reset model to unsolved state

    Posted 10/10/15 07:04 PM

    Originally posted by: WNKA_Deepak_Agrawal


    I am using a python api of cplex. I am solving a problem in a loop where I change the RHS values of some constraints and resolve the problem.

    I get same solution at each resolve. Can it be because some variables gets fixed in previous solve. If yes, is there a way I can reset the model to an unsolved state?

     

    Thank you in advance.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Cplex reset model to unsolved state

    Posted 10/11/15 10:44 PM

    Can you provide a small example to demonstrate this?  I was not able to reproduce by modifying the lpex1.py example script that is installed with CPLEX.  With each iteration the objective value and solution values change (without doing anything special).  See attachment.

    To debug, you might try writing the model out before the call to solve in your loop.  Make sure that the model is changing as you expect it to and try running the model files in the interactive to see if you get the same or different behavior.


    #CPLEXOptimizers
    #DecisionOptimization