Using logic operators in constraints

40 views
Skip to first unread message

Jahir Argote

unread,
Mar 23, 2023, 11:31:35 AM3/23/23
to CasADi
Hi,

I'm using casadi with Python and have been trying to use logic operators to add a constraint in the form of:
(lbx1 <= x1 <= ubx1) && (lbx2 <= x2 <= ubx2)

I tried to find a similar case in the documentation with no luck so far.
Could someone point me to a working example or explain how can I add said constraint to my NLP solver?

Thanks!,
Jahir
Reply all
Reply to author
Forward
0 new messages