43 #ifndef ILQGAMES_COST_TIME_INVARIANT_COST_H 44 #define ILQGAMES_COST_TIME_INVARIANT_COST_H 46 #include <ilqgames/cost/cost.h> 47 #include <ilqgames/utils/types.h> 58 virtual float Evaluate(
const VectorXf& input)
const = 0;
59 float Evaluate(Time t,
const VectorXf& input)
const {
60 return Evaluate(input);
65 virtual void Quadraticize(
const VectorXf& input, MatrixXf* hess,
66 VectorXf* grad)
const = 0;
67 void Quadraticize(Time t,
const VectorXf& input, MatrixXf* hess,
68 VectorXf* grad)
const {
69 Quadraticize(input, hess, grad);
74 :
Cost(weight, name) {}