Page 1 of 1

Maximizing a maximum

Posted: Tue Mar 26, 2019 9:33 am
by suprafluid
Hello everyone,

I am developing a model for the purpose of finding out the maximum power needed for an application. The power p needed per timestep t depends on eight different objects i, hence p(i,t). I want to maximize the objective function P, which should be a single instance maximum of all power(t) defined by

Code: Select all

power(t)=sum(i,p(i,t))
I am experimenting with smax here, but can't really figure out how to use it properly. Do you have any suggestions?

Best regards
supra

Re: Maximizing a maximum

Posted: Sat Jun 15, 2019 5:15 pm
by bussieck
What about,

Code: Select all

eq(t,i).. power(t)=g=p(i,t)
If the model wants to have minimum of power (because of cost or so) the equality for for i will happen automatically. If that's not the case, you need to introduce binary variables that make sure at least one of the constraints is fulfilled with equality. These constraints make a model very difficult.

-Michael