Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only

Error as Operator not available for float

  • 1.  Error as Operator not available for float

    Posted 09/01/13 06:35 AM

    Originally posted by: Puppy26


    Hi all,

    I'm a new user of CPLEX.. I'm getting an error as "Operator not available for float" for the case below

      dvar boolean DSSupply [Depots][Shippers];
      dvar boolean CDSupply [Consignees][Depots];
      dvar boolean TDSupply [Terminals][Depots];
      dvar boolean DTSupply [Depots][Terminals];
      dvar boolean DDSupply [Depots][Depots];
    dvar boolean Open[Depots];
     
    dexpr float DepotValue = ISDepot + CDSupply + TDSupply - DSSupply - DTSupply - DDSupply;

    If I modify the above case like below

    dexpr float DepotValue = ISDepot + CDSupply [c][d] + TDSupply [t][d] - DSSupply [d][s] - DTSupply [d][t] - DDSupply [d][d];

    I'm getting error as Name c does not exist.

    Could some one please let me know how I should go ahead to correct this error.

     

    Regards,

    Prabhu


    #ConstraintProgramming-General
    #DecisionOptimization