Help using Base SAS procedures

error PROCEDURE OPTMODEL not found

Reply
Occasional Learner
Posts: 1

error PROCEDURE OPTMODEL not found

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.

 

PROC Star
Posts: 754

Re: error PROCEDURE OPTMODEL not found

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 Smiley Happy

 

 

proc product_status;
run;

 

SAS Super FREQ
Posts: 3,753

Re: error PROCEDURE OPTMODEL not found

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."

Ask a Question
Discussion stats
  • 2 replies
  • 438 views
  • 1 like
  • 3 in conversation