Hi all,
We are trying to solve an optimization case and now face some problem. It is like follows: We have a variable (water flow at a valve); it can be either zero (when the valve is closed), or between 500-1500 m3/h (when it is open). In the beginning we took the flow as x1*x2, where x1 is binary and x2 is between 500 and 1500. But then SAS can't solve this non-linear thing with binary variable. How can I avoid this situation and linearize this?
Thanks.
Maybe you could try Genetic Algorithm .
Can you explain it more,and better post an example .
To model such a semi-continuous variable y, introduce a binary variable x and the following linear constraints:
If x = 0, then y = 0. If x = 1, then y is in [500, 1500].
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.