Issue with IBM Optimization Studio CPLEX OPL? -


i develop program using ibm optimization studio cplex(opl), tried line :

 if (p_p(t) >= (p_l(t))/(einv ))   pb(t) = pb0+(eb_c/3600)*(pp(t)-p_l(t))/einv)   t Є {t0,t0+1,,t0+nΔt} , Δt: step time 

i did :

maximize ....  subject { ....  forall(j in nh: pp[j] >= pl[j]/einv) pb[j] == pb0 + (eb_c/3600)*(pp[j]- pl[j]/einv);  ... } 

that give me error : "decision variable (or expression) not allowed", , tried lot of solution it's not work, problem can not find in document, expression or way that?!

edit

but don't have add explain this, firt code wrote in topic, should create using studio cplex.

i tried minimise cost of power produced system, inside subject to, have check if condition every time of simulation during period t, , if if condition correct next line of code else pass value of pb(t)?!

the issue use sample time t inside if condition , inside subject to!


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -