Decision Optimization

 View Only
  • 1.  dvar int+

    Posted Thu August 03, 2017 08:26 AM

    Originally posted by: xspeng


    i have defined the 

    dvar int+ Inv1[Plants][Products][DemandScenarios][0..NbPeriods];
    dvar int+ Inv2[DCs][Products][DemandScenarios][0..NbPeriods];

    but in the result the inv2 is negative in some period。

    in addition

    all,dvar boolean Order1[Plants][Plants][Products][DemandScenarios][Periods] and
    dvar boolean Order2[Plants][DCs][Products][DemandScenarios][Periods]  are one

    dvar boolean Order3[DCs][DCs][Products][DemandScenarios][Periods];
    dvar boolean Order4[DCs][Retailers][Products][DemandScenarios][Periods];,but the 

    dvar int+ OrderQuantity1[Plants][Plants][Products][DemandScenarios][Periods];
    dvar int+ OrderQuantity2[Plants][DCs][Products][DemandScenarios][Periods];
    dvar int+ OrderQuantity3[DCs][DCs][Products][DemandScenarios][Periods];
    dvar int+ OrderQuantity4[DCs][Retailers][Products][DemandScenarios][Periods] is 0 in some  period

    the .mod  should have some errors,

    but i can not fix these errors 

    i attach my .mod and data file

    I hope you can help to solve the problems
    Thank you so much for your help in advan

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: dvar int+

    Posted Thu August 03, 2017 10:26 AM

    Hi,

    you get a relaxed solotion because yor model is not feasible.

    what you could do is add a settings file (.ops) in order to change the relaxation level

    You should maybe watch

    https://www.youtube.com/watch?v=tUALbhJ2xWY

    and read a bit more

    Tactics for diagnosing infeasibility in mathematical programming models solved by CPLEX.

    http://www-01.ibm.com/support/docview.wss?uid=swg21400004

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer