I am new to Gekko and I am trying to solve a MILP problem using Gekko. I am having trouble understanding how if conditions are being implemented.
I don't understand how to implement an if condition, for example
if SolarPower > LoadPower, then SolarShedding = 0
if SolarPower = LoadPower, then SolarShedding = 0 and LoadShedding = 0
if SolarPower < Load Power, then LoadShedding =0
where SolarShedding and LoadShedding are both variables and their outputs should be determined by Gekko. But if any condition is true, then these values should be fixed by the user.
I am unsure how to implement this, and what the difference is between if2 and if3 and how it can affect my model