- Procedure GMP::QuadraticCoefficient::Set(GMP, row, column1, column2, value)
GMP::QuadraticCoefficient::Set
The procedure GMP::QuadraticCoefficient::Set
sets the value for a
quadratic coefficient in a quadratic row of a generated mathematical
program.
GMP::QuadraticCoefficient::Set(
GMP, ! (input) a generated mathematical program
row, ! (input) a scalar reference
column1, ! (input) a scalar reference
column2, ! (input) a scalar reference
value ! (input) a numerical expression
)
Arguments
- GMP
An element in
AllGeneratedMathematicalPrograms
.- row
A scalar reference to an existing row in the matrix.
- column1
A scalar reference to an existing column in the matrix.
- column2
A scalar reference to an existing column in the matrix.
- value
A scalar numerical value indicating the value for the coefficient.
Return Value
The procedure returns 1 on success, or 0 otherwise.
Note
If column1 equals column2 then AIMMS multiplies the quadratic coefficient by 0.5 before it is stored (and passed to the solver).
See also
The routines GMP::QuadraticCoefficient::Get
, GMP::Coefficient::GetQuadratic
and GMP::Coefficient::SetQuadratic
.