- Procedure GMP::Solution::SetObjective(GMP, solution, value)
GMP::Solution::SetObjective
The procedure GMP::Solution::SetObjective
sets the objective
function value of a solution in the solution repository of a generated
mathematical program.
GMP::Solution::SetObjective(
GMP, ! (input) a generated mathematical program
solution, ! (input) a solution
value ! (input) a scalar value
)
Arguments
- GMP
An element in
AllGeneratedMathematicalPrograms
.- solution
An integer scalar reference to a solution.
- value
A scalar value to be assigned.
Return Value
The procedure returns 1 on success, or 0 otherwise.
See also
The functions GMP::Instance::Generate
, GMP::Solution::GetObjective
and GMP::Solution::SendToModel
.