LINCON Statement
- LINCON l_con [ , l_con ... ] ;
where
l_con is given in one of the following formats:
- linear_term operator number
- number operator linear_term
and linear_term is of the following form:
![\lt+|-\gt \lt {\rm number *} \gt {\rm variable} \lt+|- \lt {\rm number *} \gt {\rm variable} ... \gt](images/nlp_nlpeq163.gif)
The value of
operator can be one of the following:
![\leq, \lt, \geq, \gt,](images/nlp_nlpeq143.gif)
or
![=](images/nlp_nlpeq144.gif)
.
The LINCON statement specifies
equality or inequality constraints
![\sum_{j=1}^n a_{ij} x_j \: \{\le | = | \ge\} \: b_i {\rm for} \; i=1, ... ,m](images/nlp_nlpeq26.gif)
separated by commas.
For example, the constraint
![4x_1 - 3x_2 = 0](images/nlp_nlpeq164.gif)
is expressed as
decvar x1 x2;
lincon 4 * x1 - 3 * x2 = 0;
and the constraints
![10x_1 - x_2 \geq 10](images/nlp_nlpeq165.gif)
![x_1 + 5x_2 \geq 15](images/nlp_nlpeq166.gif)
are expressed as
decvar x1 x2;
lincon 10 <= 10 * x1 - x2,
x1 + 5 * x2 >= 15;
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.