43 #ifndef ILQGAMES_COST_QUADRATIC_DIFFERENCE_COST_H 44 #define ILQGAMES_COST_QUADRATIC_DIFFERENCE_COST_H 46 #include <ilqgames/cost/time_invariant_cost.h> 47 #include <ilqgames/utils/types.h> 49 #include <glog/logging.h> 59 const std::vector<Dimension>& dims2,
60 const std::string& name =
"")
62 CHECK_EQ(dims1_.size(), dims2_.size());
66 float Evaluate(
const VectorXf& input)
const;
70 void Quadraticize(
const VectorXf& input, MatrixXf* hess,
71 VectorXf* grad)
const;
75 const std::vector<Dimension> dims1_, dims2_;