Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to modify the dat elements?

    Posted 10/08/13 10:50 PM

    Originally posted by: heidizh


    Suppose that I define A=[1,2,3,4,5,6,7,8,9] in a dat. file and I have the value of A in the objective.  I get B=[1,3,5,6,2,9,8,4,7] in the POST-PROCESS. How could I give the value of B to A in the main block  so that I can update the value of A in the objective? Or, does there exist any other methods to modify the dat elements?

    Any help will be greatly appreciated.

    Best regards,

    Heidi


    #DecisionOptimization
    #MathematicalProgramming-General


  • 2.  Re: How to modify the dat elements?

    Posted 10/09/13 11:41 AM

    You may want to look at class IloCplex and its setObjCoef() member function which allows changing the objective function from within a scripting block.

    In general, your question is OPL related and should therefore be asked on the OPL forum. There you will find the OPL experts who can probably answer your question better than I can.


    #DecisionOptimization
    #MathematicalProgramming-General


  • 3.  Re: How to modify the dat elements?

    Posted 10/11/13 10:06 AM

    Originally posted by: heidizh


     

    Thank you, Daniel. It's very helpful, thank you.


    #DecisionOptimization
    #MathematicalProgramming-General