SAS Optimization, and SAS Simulation Studio

turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

10-14-2017 06:27 AM

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to grandmoon

10-14-2017 07:41 AM

Maybe you could try Genetic Algorithm .

Can you explain it more,and better post an example .

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to grandmoon

10-14-2017 11:26 AM

To model such a semi-continuous variable y, introduce a binary variable x and the following linear constraints:

- y >= 500*x
- y <= 1500*x

If x = 0, then y = 0. If x = 1, then y is in [500, 1500].