QPComputeObjectiveGradient

Computes the gradient of the quadratic objective function g(x) = Ax - b.

Synopsis

PetscErrorCode QPComputeObjectiveGradient(QP qp, Vec x, Vec g)
Collective on QP

Input Parameters

qp - the QP
x - the state vector

Output Parameter

g -the gradient value

See Also

QPComputeObjective(), QPComputeObjectiveFromGradient(), QPComputeObjectiveAndGradient()

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