Initializing help system before first use

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
A linear constraint
A decision variable
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