Decision Optimization

 View Only
  • 1.  CPLEX & OPL Cannot extract expression

    Posted Wed March 16, 2022 01:57 PM
    Hi all,

    I am new to IBM ILOG CPLEX, I have a constraint below that always returns "cannot extract expression" with five errors.

    forall(ti in t, v in vehicle, a in agev, vmt in vmtgrp)   sum(s in segment) (MILECONSUMP[ti][s][v][a][vmt]/MILEAGE[ti][s][v][a] )==Fuel[ti][v][a][vmt]/(1-UfactorPHEV[v]);  //MILEPROD
    ​

    I wonder what goes wrong with this constraint, how can I correct it?

    Thanks,
    Jia



    ------------------------------
    Jia Zhong
    ------------------------------


    #DecisionOptimization


  • 2.  RE: CPLEX & OPL Cannot extract expression

    Posted Wed March 16, 2022 02:54 PM
    Duplicate of this question.

    ------------------------------
    Paul Rubin
    Professor Emeritus
    Michigan State University
    ------------------------------