Set the coefficient
of a variable or the constant term.
procedure setcoeff(c:linctr, x:mpvar, r:real)
procedure setcoeff(c:linctr, r:real)
A linear constraint
A decision variable
Coefficient or constant term
The following declares a constraint c and then changes some of its terms:
c:= 4*x + y -z <= 12
setcoeff(c, y, 2)
The constraint is now 4·x + 2·y - z -8.1
If a variable is given then this procedure sets the
coefficient of this variable in the constraint to the given value.
Otherwise, it sets the constant term of the constraint.
If you have any comments or suggestions about these pages,
please send mail to firstname.lastname@example.org.
© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.