Topic
  • 1 reply
  • Latest Post - ‏2013-09-02T10:05:08Z by ol
Puppy26
Puppy26
2 Posts

Pinned topic Error as Operator not available for float

‏2013-09-01T10:21:12Z |

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