24#include "utils/simError.h"
28 Constraint::Constraint(Constraint::Impl* impl) : impl_(impl) {}
35 bool valid = test(newParams);
39 snprintf(painCave.errMsg, MAX_SIM_ERROR_MSG_LENGTH,
40 "can't update parameter vector\n");
42 painCave.severity = OPENMD_ERROR;
47 newParams = params + diff * direction;
48 valid = test(newParams);
50 params += diff * direction;
Abstract constraint class.
Dynamically-sized vector class.