Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Cplex get no solution when testing different data

    Posted 04/14/19 12:12 PM

    Originally posted by: xinzhangandy


    Dear all,

    I have written a supply chain network model with OPL.Now, I want to test the model with different customer demands. Then I  modify it(Dem) in my data file, I run my model in Cplex 12.8, test1 can be solved in about 23 seconds,but test2 and test3 can not get a solution. I want to know whether there is something wrong with my code, or I need to set something elso to get the solution. Attached is my code and test data.

    Thank you.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Cplex get no solution when testing different data

    Posted 04/15/19 07:02 AM

    Hi,

    if you turn your integer decision variables that are supposed to be float into dvar float:

    dvar float+ Qoa[I][J][R][T][S];
    dvar float+ Qob[J][K][P][T][S];
    dvar float+ Qoc[K][L][P][T][S];
    dvar float+ Qod[L][M][P][T][S];
    dvar float+ Qoe[M][E][P][T][S];
    dvar float+ Qof[M][F][P][T][S];
    dvar float+ Qog[F][G][R][T][S];
    dvar float+ Qoh[E][K][P][T][S];
    dvar float+ Qoi[F][J][R][T][S];

    then you ll get a solution after very little time

     

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Cplex get no solution when testing different data

    Posted 04/15/19 07:24 AM

    Originally posted by: xinzhangandy


    HI, Alex,

    It really works, thank you for your help.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer