Skip to content

How do I model conditional constraints in YALMIP? #1435

Discussion options

You must be logged in to vote

You define case1 and case2 as binary variables, and as only one of them can be true, the two disjoint cases you list cannot occur at the same time but one has to occur (and of course you will have to add an eps in some direction if you have that as you cannot work with strict cases)

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@YANGseuJW
Comment options

@johanlofberg
Comment options

@YANGseuJW
Comment options

@johanlofberg
Comment options

Answer selected by YANGseuJW
@johanlofberg
Comment options

@YANGseuJW
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants