9 #include "drake/drakeOptimization_export.h" 36 template <
typename CoefficientType>
39 typedef ::Polynomial<CoefficientType>
PolyType;
63 static LumpingMapType GetLumpedParametersFromPolynomial(
65 const std::set<VarType>& parameter_vars);
73 static LumpingMapType GetLumpedParametersFromPolynomials(
74 const std::vector<PolyType>& polys,
75 const std::set<VarType>& parameter_vars);
86 static PolyType RewritePolynomialWithLumpedParameters(
88 const LumpingMapType& lumped_parameters);
105 static std::pair<PartialEvalType, CoefficientType> EstimateParameters(
107 const std::vector<PartialEvalType>& active_var_values);
124 static std::set<MonomialType>
125 GetAllCombinationsOfVars(
126 const std::vector<PolyType>& polys,
127 const std::set<VarType>& vars);
138 static bool MonomialMatches(
139 const MonomialType& haystack,
140 const MonomialType& needle,
141 const std::set<VarType>& active_vars);
154 static std::pair<CoefficientType, PolyType>
155 CanonicalizePolynomial(
const PolyType& poly);
159 static VarType CreateUnusedVar(
const std::string& prefix,
160 const std::set<VarType>& vars_in_use);
Eigen::Matrix< Polynomiald, Eigen::Dynamic, 1 > VectorXPoly
A column vector of polynomials; used in several optimization classes.
Definition: Polynomial.h:500
Definition: constants.h:3
std::map< VarType, CoefficientType > PartialEvalType
Estimate some parameters of a polynomial based on empirical data.
Definition: system_identification.h:104
Utility functions for system identification.
Definition: system_identification.h:37
PolyType::Term TermType
Definition: system_identification.h:41
::Polynomial< CoefficientType > PolyType
Definition: system_identification.h:39
unsigned int VarType
Definition: Polynomial.h:45
std::map< PolyType, VarType > LumpingMapType
Definition: system_identification.h:43
PolyType::Monomial MonomialType
Definition: system_identification.h:40
PolyType::VarType VarType
Definition: system_identification.h:42