Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  how to express function in cplex

    Posted 04/10/10 10:13 PM

    Originally posted by: huguowei


    I am using C++ and CPLEX 12.1, under MS VS2008.Runtime error:IloAlgorithm 00D09EA0 cannot change extractables.

    I guess the error due to my code as follow:
    {
    IloBoolVarArray zi(env);
    IloExprArray Tij(env);
    k=0;
    for(int i=0;i<GenNum;i++){
    Tij0+k +=(-gen[i].INS+IloAbs(gen[i].INS))/2;//gen[i].INS is eternal constant
    for(int j=1;j<T;j++){
    Tijk+j+=(Tijk+j-1*(2-IloPower(2,zik+j-1))+2-IloPower(2,zik+j-1));}
    k=(1+i)*T;}

    Tijk+j+=(Tijk+j-1*(2-IloPower(2,zik+j-1))+2-IloPower(2,zik+j-1));
    for(int i=0;i<GenNum;i++){
    for(int j=0;j<T;j++){
    IloRangeArray(env,gen[i].MDT,Tij,100);}}}
    I am using some function like IloAbs and IloPower,and it leads to the error?
    many thanks!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: how to express function in cplex

    Posted 04/12/10 03:11 AM

    Originally posted by: RWunderling


    huguowei,

    1. you need to get used to properly quote code as Daniel already instructed you, i.e. use
    { code }
    your code here
    { code }
    

    but without spaces around "code". Otherwise your code is rendered incomprehensibly by WIKI.

    2. Guessing at what you are trying to to model, it seems that you are trying to add a highly
    non-linear and non-quadratic power constraint. This is indeed unsupported by IloCplex. Please
    read the details of what is supported in the docs.

    Roland
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: how to express function in cplex

    Posted 04/13/10 07:45 AM

    Originally posted by: huguowei


    thank you to reply me . cplex can solve LP,QP,QCP,MIP,but a problem which objective function and constraints are both expanded to include quadratic terms,
    can be solved by cplex?
    many thanks!
    #CPLEXOptimizers
    #DecisionOptimization