44 #ifndef ILQGAMES_COST_COST_H 45 #define ILQGAMES_COST_COST_H 47 #include <ilqgames/utils/relative_time_tracker.h> 48 #include <ilqgames/utils/types.h> 50 #include <glog/logging.h> 60 virtual float Evaluate(Time t,
const VectorXf& input)
const = 0;
64 virtual void Quadraticize(Time t,
const VectorXf& input, MatrixXf* hess,
65 VectorXf* grad)
const = 0;
68 void SetWeight(
float weight) { weight_ = weight; }
69 void ScaleWeight(
float scale) { weight_ *= scale; }
72 explicit Cost(
float weight,
const std::string& name)