Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  syntax

    Posted 04/30/16 01:34 AM

    Originally posted by: sandeepsinghchauhan


    How can i resolve this error::
    Cannot use type int for <process:<!process:int,saleprice:float>,level:int,Unit:int>

    Actually i want to put constraint on my decision variable X and this X has syntax associated with tuples.

    X[<<1,0.97>,3,1>]

    still shows error

     

    Please help


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: syntax

    Posted 05/03/16 07:34 AM

    Hi,

    tuple process
    {
    key int a;
    float salesprice;
    }

    tuple t
    {
     process p;
     int level;
     int Unit;
    }

    {t} s={<<1,0.97>,3,1>};

    dvar int X[s];

    subject to
    {
    X[<<1,0.97>,3,1>]==1;
    }

    works fine


    #DecisionOptimization
    #OPLusingCPLEXOptimizer