void gradient(double x, int iact, double result)
x- an input
doublearray, the point at which the gradient of the objective function or gradient of a constraint is to be evaluated
iact- an input
intvalue indicating whether evaluation of the objective function gradient is requested or evaluation of a constraint gradient is requested. If iact is zero, then an objective function gradient evaluation is requested. If iact is nonzero then the value of iact indicates the index of the constraint gradient to evaluate. (1 indicates the first constraint, 2 indicates the second, etc.)
doublearray. If iact is zero, then the value of the objective function gradient at x is returned in result. If iact is nonzero, then the computed gradient of the requested constraint value at the point x is returned in result.
Copyright © 1970-2015 Rogue Wave Software
Built October 13 2015.