QPComputeObjective

Evaluate the quadratic objective function f(x) = 1/2*x'*A*x - x'*b.

Synopsis

PetscErrorCode QPComputeObjective(QP qp, Vec x, PetscReal *f)
Collective on QP

Input Parameters

qp - the QP
x - the state vector

Output Parameter

f -the objective value

Notes

Computes f(x) as -x'(b - 1/2*A*x).

See Also

QPComputeObjectiveGradient(), QPComputeObjectiveFromGradient(), QPComputeObjectiveAndGradient()

Level:beginner
Location:
src/qp/interface/qp.c
Index of all QP routines
Table of Contents for all manual pages
Index of all manual pages