BookmarkSubscribeRSS Feed
Kime
Calcite | Level 5

Hi, I just started using SAS today, I am using the University Edition1, I am trying to maximize a function.

I type 

proc OPTMODEL;
var x1: integer>=0;
var x2: integer>=0;
maximize z=8*x1+20*x2;
con c1: x1+x2<=11;
con c2: 3*x1+2*x2<=30;
con c3: 1*x1+3*x2<=28;
solve;
print x1 x2 z;
quit;

 

but got the message:

ERROR: Procedure OPTMODEL not found.

 

bellow there is this message too:

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE OPTMODEL used (Total process time):
real time 0.04 seconds
cpu time 0.03 seconds
 
66
67 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 
what is wrong? is it a syntax error? I was just following advise from a tutorial and can not make this run.

 

2 REPLIES 2
PeterClemmensen
Tourmaline | Level 20

I dont run University edition, but given the error, I dont think you are licensed to run PROC OPTMODEL?

 

try running the following and see if you have a SAS/OR license 🙂

 

 

proc product_status;
run;

 

Rick_SAS
SAS Super FREQ

PROC OPTMODEL, which is part of SAS/OR software,  is not included in the free SAS University Edition. The first sentence on the SAS UE webpage says "With SAS University Edition, you get SAS Studio, Base SAS, SAS/STAT, SAS/IML, SAS/ACCESS and several time series forecasting procedures from SAS/ETS."

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1927 views
  • 1 like
  • 3 in conversation