Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  how to use the command "IloConversion"

    Posted 03/11/19 01:00 AM

    Originally posted by: arronlee11


    hi~

        i'm using a cplex command "IloConversion",there is a Three-dimensional decision variables x[i][j][k], and x[i][j][k] is a continuous decision variable, i want to use the command "IloConversion" to convert x[i][j][k] from continuous decisoin variable  to interger decision variable, how can  i operate?


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: how to use the command "IloConversion"

    Posted 03/11/19 01:19 AM

    I am not sure what the problem is? You just create an IloConversion instance for all the variables you want to convert and then use IloModel::add() (or IloModel.add() in Java) to add these conversions to the model.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: how to use the command "IloConversion"

    Posted 03/11/19 02:42 AM

    Originally posted by: arronlee11


    thank you for you reply, if the decision  variable x is One-dimensional decision variables, the command "IloConversion" can be used as follow:

    model.add(IloConversion(env, x, ILOINT));

    but now  my decision variable is a Three-dimensional decision variables x[i][j][k],how can i use the command?


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: how to use the command "IloConversion"

    Posted 03/11/19 03:55 AM

    You have two options:

    1. Loop over the first two dimensions and create an IloConversion for each array in the innermost dimension.
    2. Copy all the elements from the three-dimensional array into one flat array and create an IloConversion for that.

    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: how to use the command "IloConversion"

    Posted 03/11/19 04:22 AM

    Originally posted by: arronlee11


    i have tried the first option, it's ok. thank you very much .


    #CPLEXOptimizers
    #DecisionOptimization