27 const Array& direction,
32 Array newParams = params + diff*direction;
33 bool valid = constraint.
test(newParams);
37 QL_FAIL(
"can't update linesearch");
40 newParams = params + diff*direction;
41 valid = constraint.
test(newParams);
43 params += diff*direction;
1-D array used in linear algebra.
bool test(const Array &p) const
Real update(Array ¶ms, const Array &direction, Real beta, const Constraint &constraint)
Abstract constraint class.
#define QL_FAIL(message)
throw an error (possibly with file and line information)
QL_INTEGER Integer
integer number
Line search abstract class.
Abstract optimization problem class.