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

04-10-2015 05:36 AM

Hello,

where can I find documentation regarding the "()"-brackets as in the node balancing restriction of example 5.6 (SAS/OR(R) 9.3 User's Guide: Mathematical Programming)?

con balance {i in NODES}:

sum {<(i),j> in ARCS} Flow[i,j]

- sum {<j,(i)> in ARCS} Flow[j,i]

= _sd_*;*

Why this is necessary is quite clear; but can't find anything on this optmodel syntax.

Thanks & kind regards

Accepted Solutions

Solution

04-10-2015
09:45 AM

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

04-10-2015 09:45 AM

It is discussed in the "More on Index Sets" section of the PROC OPTMODEL documentation:

SAS/OR(R) 13.2 User's Guide: Mathematical Programming

See also this "Manpower Planning" example that shows three equivalent forms:

SAS/OR(R) 13.2 User's Guide: Mathematical Programming Examples

All Replies

Solution

04-10-2015
09:45 AM

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

04-10-2015 09:45 AM

It is discussed in the "More on Index Sets" section of the PROC OPTMODEL documentation:

SAS/OR(R) 13.2 User's Guide: Mathematical Programming

See also this "Manpower Planning" example that shows three equivalent forms:

SAS/OR(R) 13.2 User's Guide: Mathematical Programming Examples

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

04-10-2015 09:47 AM

It is a shorthand for the slice operator, often used to make this very common pattern:

sum{<i,j> in FOO: i = something} x[i,j]

shorter, as in:

sum{<(something),j> in FOO} x[something,j]