hi, I would like to model a condition in my objective function.
I explain the problem to make myself better understood.
I would like to model how energy exchange works in place. this says that if the emergency introduced into the network (Es) is less than that taken from the network (Ep), it will appear at a certain price (0.15). if, on the other hand, I put on the network a quantity higher than the one I withdraw, the excess part (Es-Ep) I sell it at a lower price (0.05).
So my OF: 0.15 * min (Ep; Es) + 0.05 * min (0; Es-Ep).
or to explain myself better: 0.15Es if Es<Ep
0.15Ep+0.05*(Es-Ep) if Es>Ep