Purpose
Defines a constraint as "enforced"
Synopsis
procedure SLPDATA(EC:string, Row:linctr|genctr)
Arguments
|
EC
|
string containing "EC", indicating the SLPDATA type
|
|
Row
|
the linear (linctr) or general (genctr) constraint
which is to be enforced
|
Example
The following code fragment assigns the constraints RVPq(P) to
be enforced
declarations
RVP, RVI:array(Prod) of mpvar
RVPq:array(Prod) of genctr
end-declarations
forall (P in Prod) RVPq(P):= RVP(P) = RVI(i)^1.25
forall (P in Prod) SLPDATA("EC",RVP(P),RVPq(P))
Further information
The standard augmentation procedure (which creates a linear approximation from
a nonlinear problem) adds penalty vectors to all nonlinear constraints so that the linear
approximation can be violated at a cost, even though the original nonlinear constraint
itself might still be satisfied. In some cases, such a violation is undesirable and can
cause difficulties in obtaining a feasible solution to the original problem. An enforced
constraint does not have penalty vectors and the linear approximation must always be
satisfied in any feasible solution.
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.