how to model two positive variables without being positive at the same time

Problems with modeling
Post Reply
cladelpino
User
User
Posts: 108
Joined: 7 years ago

Re: how to model two positive variables without being positive at the same time

Post by cladelpino »

A quick search turns up this reference, for some cases. https://minds.wisconsin.edu/handle/1793/57916 .

My gut tells me it will be very hard to stay in LP but I haven't really made a deep search.

Good luck !
Alireza.soroudi
User
User
Posts: 14
Joined: 6 years ago

Re: how to model two positive variables without being positive at the same time

Post by Alireza.soroudi »

you can add a cost for charging and discharging. In this way, the LP solver won't use them at the same time.
Especially when the charging/discharging of efficiency are not 1.

There is only one case that it might not be resolved: when you have some wind /solar resources and you have some kind of penalty for wind curtailment. The algorithm will use charging ad discharging at the same time to dissipate the excessive wind.
Post Reply