XPRScalcobjective
XPRScalcobjective |
Purpose
Calculates the objective value of a given solution.
Synopsis
int XPRS_CC XPRScalcobjective(XPRSprob prob, const double solution[], double* objective);
Arguments
prob
|
The current problem.
|
solution
|
Double array of length COLS that holds the solution.
|
objective
|
Pointer to a double in which the calculated objective value is returned.
|
Further information
The calculations are always carried out in the original problem, even if the problem is currently presolved.
Related topics