Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  initialization by dvar

    Posted 07/16/08 06:49 PM

    Originally posted by: SystemAdmin


    [typhoon said:]

    hello!

    i try to initialize a standard array (B) by a decision variable array (A):

    execute INITIALIZE {
    for (var t in range1){
    for (var n in range2){
              B[t] += p[n]*A[n][t] ;
    }
    }
    }

    but this produces the following error:

    Scripting runtime error: cannot convert to a number, "[a IloNumVar]".

    never the less, i initialized A as integer...do you see the error?

    thanx for all type of remarks!

    typhoon
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: initialization by dvar

    Posted 07/16/08 06:59 PM

    Originally posted by: SystemAdmin


    [alain.chabrier said:]

    Hi,

    is it in pre-processing ? (i.e. before the "subject to" block = ? then it does not work as variables do not have values.

    Alain
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: initialization by dvar

    Posted 07/16/08 07:29 PM

    Originally posted by: SystemAdmin


    [typhoon said:]

    yes, i placed it in front of the "subject to"-block...there is no error-message anymore! thank you alain!

    but my program still doesn´t run  (it doesn´t give any solution) ... could the reason be, that i didn´t put the decision variable array A in the objectif function? ( i tried to make the function easier to understand by metting the array B...but i start to doubt everywhere)

    thank you for your opinion,

    thypoon


    #DecisionOptimization
    #OPLusingCPLEXOptimizer