Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Problem in Modeling in column form, calling CPLEX with c++

    Posted 11/15/18 08:48 AM

    Originally posted by: arronlee11


    i have modeled in column form,and caling cplex with c++;

    i have finished modeling ,there are two decision (x and y)variable in my problem,now I want to give some initial values to the decision variables x,how should i do?


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Problem in Modeling in column form, calling CPLEX with c++

    Posted 11/15/18 09:04 AM

    Do you have any integer variables in your model? If so use IloCplex::addMIPStart(), otherwise use IloCplex::setStart() or IloCplex::setBasisStatuses().


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Problem in Modeling in column form, calling CPLEX with c++

    Posted 11/15/18 09:50 AM

    Originally posted by: arronlee11


    thank you for your reply,the two decision variable is defined as follow:

    x= IloNumVarArray (env);
    y  = IloNumVarArray (env);

    they are Continuous decision variable,actually i'm using the column generation algorithm,the master problem have thess two decision varible,i have modeled master problem in column forms,and i wan't to add some known value  of x in forms of constraint;how should i do?


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Problem in Modeling in column form, calling CPLEX with c++

    Posted 11/20/18 02:10 AM

    To add constraints just use IloModel::add(). For example, model.add(x[j] == 5) will fix x[j] to 5.


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Problem in Modeling in column form, calling CPLEX with c++

    Posted 11/20/18 02:17 AM

    Originally posted by: arronlee11


    thank you for your reply, it's very usefull for me!


    #CPLEXOptimizers
    #DecisionOptimization