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