Skip to content

use inequality sign in Yalmip #1333

Discussion options

You must be logged in to vote

Although ~= is supported, you should write using a disjunction using two binary variable a and b so you understand what you actually model

[implies(a,x>=4), implies(b, x<= 2) , a+b == 1]

Another way is to write it using two integers y and z

[x == 3 + y - z, y>=0, z>=0, y+z>=1]

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@bioinfor-123
Comment options

@johanlofberg
Comment options

Answer selected by johanlofberg
Comment options

You must be logged in to vote
1 reply
@johanlofberg
Comment options

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