Hi everyone.
I have the variable SoE(bat,t), with bat = bat1*bat5
In order to do a comparison with other cases, i have to "force" the variables to be like SoE('bat1',t) = SoE('bat2',t) = ... = SoE('batf',t)
but i can't use one singular variable, since then other ones will depend on the SoEs' values.
How can this be done?
Thx a lot
"fixing" variables
Re: "fixing" variables
It is not clear from your question what you want to achieve. You can definitely force your variables to be equal using a simple constraint as follows:
equation(bat, t)$(ord(bat) ne card(bat)).. SoE(bat,t) =e= SoE(bat + 1, t);
This way, all SoE will be equal to each other.
It is not clear to me what you mean by your "since then other ones will depend on the SoEs' values" and why that causes problems. It will help you can elaborate so that the other users can help you better.
- Atharv
equation(bat, t)$(ord(bat) ne card(bat)).. SoE(bat,t) =e= SoE(bat + 1, t);
This way, all SoE will be equal to each other.
It is not clear to me what you mean by your "since then other ones will depend on the SoEs' values" and why that causes problems. It will help you can elaborate so that the other users can help you better.
- Atharv