Operations Research topics: SAS/OR,
SAS Optimization, and SAS Simulation Studio

ERROR: too many initializers for array 'MinUse' at line 75 column 1.

Reply
Occasional Learner
Posts: 1

ERROR: too many initializers for array 'MinUse' at line 75 column 1.

Who can assist with the above error on MinUse MaxUse and FixCost of multiple products for multiple sites

SAS Employee
Posts: 448

Re: ERROR: too many initializers for array 'MinUse' at line 75 column 1.

The following PROC OPTMODEL statements will generate such an error:

 

proc optmodel;
   num mynum {1..2} init [10 20 30];
   print mynum;
quit;

The numeric parameter mynum has two elements in its index set but has been initialized to three values.

 

 

Please check your code for a similar issue.

Ask a Question
Discussion stats
  • 1 reply
  • 152 views
  • 0 likes
  • 2 in conversation