43 #ifndef ILQGAMES_COST_EXTREME_VALUE_COST_H 44 #define ILQGAMES_COST_EXTREME_VALUE_COST_H 46 #include <ilqgames/cost/time_invariant_cost.h> 47 #include <ilqgames/utils/types.h> 57 bool is_min,
const std::string& name =
"")
58 :
Cost(1.0, name), is_min_(is_min), costs_(costs) {}
61 float Evaluate(Time t,
const VectorXf& input)
const;
65 void Quadraticize(Time t,
const VectorXf& input, MatrixXf* hess,
66 VectorXf* grad)
const;
69 const Cost* ExtremeCost(Time t,
const VectorXf& input,
70 float* evaluated =
nullptr)
const;
77 const std::vector<std::shared_ptr<const Cost>> costs_;