How can I place unique bounds on a piecewise constraint at different indices?

25 views
Skip to first unread message

Alexis Dasiukevich

unread,
Apr 25, 2024, 10:33:28 PMApr 25
to Pyomo Forum

I have the following code in Pyomo:

Captura desde 2024-04-26 03-08-28.png

which creates the following piecewise function:

Captura desde 2024-04-26 03-08-46.png

How can I make it so that for each a in model.A, there are unique values for LB and UB, so that the piecewise function becomes:

Captura desde 2024-04-26 03-09-15.png

Thank you in advance, any solutions at all would be welcomed.

Reply all
Reply to author
Forward
0 new messages