Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Comparing two simple models

  • 1.  Comparing two simple models

    Posted Sun October 30, 2016 01:45 AM

    Originally posted by: M.Heshmat


    Hi,

    I could not find what is wrong with the model.  I coded it using sets, and the solution gives no value. So, I resolved it by hand and coded it at naiive parameter values, and the model gives optimal solution. I think the two models should give te same results.  I am attaching the first .mod file in sets, and the second .mod file. The two models have the same parameters values.

    Thank you in advance.

    Best Regards,

    Mahmoud


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Comparing two simple models

    Posted Sun October 30, 2016 02:22 PM

    Hi,

    your constraint

    u==maxl(s-ftoi(R[i])+1,1);

    in the forall looks strange.

    Plus can you double check Constraint10 ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Comparing two simple models

    Posted Sun October 30, 2016 08:05 PM

    Originally posted by: M.Heshmat


    Dear Alex,

    Thank you for your reply.

    This is the mathematical form of constraint 10:

    Best Regards,

    Mahmoud


    #DecisionOptimization