BookmarkSubscribeRSS Feed
Not applicable
I have following questions with regards to defining a constraint in PROC OPTMODEL procedure.

To keep the question simple, I have considered an example from the SAS/OR 9.2 Documentation (With Reference to Pg. 894 SAS/OR 9.2 User’s Guide Mathematical Programming).

Link for the document is as follows:

My Question is:

How can I include a constraint with a specific numeric values for the decision variable’s indices?

Say, Assign[1,1] = 1

Thank you
SAS Employee
If I understand correctly, you want to fix some Assign variable to 1. You can use the FIX statement:

fix Assign[1,1] = 1;

Please refer to the example in page 716 for more details.


Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.


Register now!

Multiple Linear Regression in SAS

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.

Discussion stats
  • 2 replies
  • 2 in conversation