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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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