I am trying to write constraints using ln and exp function, yet I received an error that Cplex can't extract the expression.
forall (t in time)
Gw_C["Mxr"] == 20523 + 17954 * ln(maxl(pbefore[t]));
Ed_c ["RC"]== 0.0422* exp(0.1046* (maxl(pbefore[t])));
Gw_C["RC"] == 3590* pow((maxl(pbefore[t]), 0.6776);
Is there any other possible way to code these constraints on cplex? Thanks
You may use exp and log if you rely on Constraint Programming within CPLEX:
works fine and gives:
But with Math Programming within CPLEX you cannot use exp like that.
What you can do instead if go through linearization.