Drake
Drake C++ Documentation
mathematical_program_result.h File Reference
#include <limits>
#include <memory>
#include <optional>
#include <string>
#include <typeinfo>
#include <unordered_map>
#include <utility>
#include <vector>
#include <fmt/format.h>
#include "drake/common/symbolic/expression.h"
#include "drake/common/symbolic/polynomial.h"
#include "drake/common/value.h"
#include "drake/solvers/binding.h"
#include "drake/solvers/constraint.h"
#include "drake/solvers/mathematical_program.h"
#include "drake/solvers/solution_result.h"
#include "drake/solvers/solver_id.h"
Include dependency graph for mathematical_program_result.h:
This graph shows which files directly or indirectly include this file:

Classes

class  MathematicalProgramResult
 The result returned by MathematicalProgram::Solve(). More...
 

Namespaces

 drake
 
 drake::solvers
 

Functions

double GetVariableValue (const symbolic::Variable &var, const std::optional< std::unordered_map< symbolic::Variable::Id, int >> &variable_index, const Eigen::Ref< const Eigen::VectorXd > &variable_values)
 Retrieve the value of a single variable var from variable_values. More...
 
template<typename Derived >
std::enable_if_t< std::is_same_v< typename Derived::Scalar, symbolic::Variable >, MatrixLikewise< double, Derived > > GetVariableValue (const Eigen::MatrixBase< Derived > &var, const std::optional< std::unordered_map< symbolic::Variable::Id, int >> &variable_index, const Eigen::Ref< const Eigen::VectorXd > &variable_values)
 Overload GetVariableValue() function, but for an Eigen matrix of decision variables. More...