Decision Optimization

Decision Optimization

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

 View Only
  • 1.  mod2.add(mod1);

    Posted Sun February 12, 2012 10:11 PM

    Originally posted by: hardhard


    method1:
    IloModel mod2(env);
    mod2.add(mod1);
    mod2.add(S.TH);
    then solve mod2
    method2:
    rewrite mod1, and write S.TH into it, then solve mod1

    different answers were resceived

    why? how to explain that? thanks.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: mod2.add(mod1);

    Posted Mon February 13, 2012 05:18 AM

    Originally posted by: SystemAdmin


    What does "different" mean here? Different objective function values or just different solution vectors?
    First thing to try would be to export the models solved into an LP file using IloCplex::exportModel() and compare the two files. Do they show unexpected differences? Do they show differences at all?
    #CPLEXOptimizers
    #DecisionOptimization