26#include "utils/simError.h"
32 RealType beta,
const Constraint& constraint) {
35 bool valid = constraint.test(newParams);
39 snprintf(painCave.errMsg, MAX_SIM_ERROR_MSG_LENGTH,
40 "can't update linesearch\n");
42 painCave.severity = OPENMD_ERROR;
47 newParams = params + diff * direction;
48 valid = constraint.test(newParams);
50 params += diff * direction;
Abstract constraint class.
Line search abstract class.
Abstract optimization problem class.
Dynamically-sized vector class.