51 #ifndef ILQGAMES_UTILS_QUADRATIC_COST_APPROXIMATION_H 52 #define ILQGAMES_UTILS_QUADRATIC_COST_APPROXIMATION_H 54 #include <ilqgames/utils/types.h> 56 #include <glog/logging.h> 57 #include <unordered_map> 67 : hess(hessian), grad(gradient) {
68 CHECK_EQ(hess.rows(), hess.cols());
69 CHECK_EQ(hess.rows(), grad.size());
74 : hess(regularization * MatrixXf::Identity(dim, dim)),
75 grad(VectorXf::Zero(dim)) {}
80 PlayerMap<SingleCostApproximation> control;
84 float regularization = 0.0)
85 : state(xdim, regularization) {}