The OPTMODEL Procedure

Assignment Statement

identifier-expression = expression;

The assignment statement assigns a variable or parameter value. The type of the target identifier-expression must match the type of the right-hand-side expression.

For example, the following code sets the current value for variable x to 3:

  
    proc optmodel; 
       var x; 
       x = 3;
 

Note: Parameters that were declared with the equal sign (=) initialization forms must not be reassigned a value with an assignment statement. If this occurs, PROC OPTMODEL reports an error.

Previous Page | Next Page | Top of Page