setmatcoeff
setmatcoeff |
Purpose
Set the coefficient of a variable or the constant term directly in the Optimizer.
Synopsis
procedure setmatcoeff(c:linctr, x:mpvar, r:real)
procedure setmatcoeff(c:linctr, r:real)
Arguments
c
|
A linear constraint
|
x
|
A decision variable
|
r
|
Coefficient or constant term
|
Further information
1. This procedure behaves like
setcoeff except that it updates only the matrix loaded into the Optimizer, the problem representation of Mosel is not changed. Reloading the problem into the Optimizer will restore the matrix to the Mosel representation of the problem.
2. The routine will fail if no problem has been loaded into the Optimizer or if the constraint or the variable is not part of the current matrix.
3. After a call to this procedure the control parameter
XPRS_maxupdc gets the value 1 if it was set to 0 before.
Related topics