Order of variables

21 views
Skip to first unread message

saheli de

unread,
May 15, 2023, 3:13:03 PM5/15/23
to apmonitor
Hi all,

I want to create a constraint that introduces ordering between variables.
Use case:
variable 1 -> Door_1
variable 2 -> Door_2
variable 3 -> Door_3
All doors have floating point positions that can range from 0 to 100%
I would like to build a constraint such that Door 2 can only be > 0 if Door_1 is =100:
i.e. Door_2 > 0 if Door_1 = 100; if Door_1<100  then Door_2 = 0.

I tried using if2 and if3, but they doesn't give optimal results.

saheli de

unread,
May 16, 2023, 11:14:39 AM5/16/23
to apmonitor
Added question:

Is there an inbuilt gekko method to implement order.
Reply all
Reply to author
Forward
0 new messages