I struck on con 2 that the error shows equation con2.. VAR operands relational or boolean. I need plus 1 every value greater than 0 from EM1 and store all in EM2.
<code>con1(f,t,i).. EM1(f,t,i) =e= p(f,t,i)/999999;
con2(f,t,i).. EM2(f,t,i) =e= EM1(f,t,i)+1$(EM1(f,t,i)>0);
</code>
<code>con1(f,t,i).. EM1(f,t,i) =e= p(f,t,i)/999999;
con2(f,t,i).. EM2(f,t,i) =e= EM1(f,t,i)+1$(EM1(f,t,i)>0);
</code>
con1(f,t,i).. EM1(f,t,i) =e= p(f,t,i)/999999;
con2(f,t,i).. EM2(f,t,i) =e= EM1(f,t,i)+1$(EM1(f,t,i)>0);
How can I fix this in MIP when EM1, EM2, and p(f,t,i) are the positive variable which not the raw data. Or any sugeestion, please advice me.
New contributor
Kosovi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.