Hello,
I have the problem that I have to divide in an equation by a positive variable (Batt_Kap_ges):
Eq_eta_ges…
Eta_ges =e= sum(Set_Batt, Anz_Batt(Set_Batt) * Batt_Kap(Set_Batt) * eta(Set_Batt)) / Batt_Kap_ges;
The equation triggers the error message “Endogenous operands for / not allowed in linear models”.
In my understanding, the error is triggered because the variable Batt_Kap_ges can also be 0. Therefore I have inserted the following equation to exclude the 0 solution:
Eq_Fest…
Batt_Kap_ges =g=1;
Unfortunately this does not change the error message. Does anyone have a hint how to set the lower bound of the variable to 1 or how else to fix the problem?
Edit: I’ve also tried to fix the lower bound to 1 with the following lines but it didn’t work:
Batt_Kap_ges.LO = 1.0;
Batt_Kap_ges.L = 1.0;