Logical constraints

Problems with modeling
Post Reply
zombie
User
User
Posts: 1
Joined: 8 months ago

Logical constraints

Post by zombie »

I am quite new to GAMS and would appreciate your help. I have two variables a and b. I want b to be 0 when a is greater than or equal to 0.5. Otherwise, b is to be 1. I am trying to solve it as an NLP problem so, I can't declare b as a binary variable. How do I then formulate the constraints for this?
User avatar
bussieck
Moderator
Moderator
Posts: 1043
Joined: 7 years ago

Re: Logical constraints

Post by bussieck »

There are plenty of questions like this already in the forum. Just search for logic expression. -Michael
Post Reply