Public Member Functions | Private Types | Private Attributes | List of all members
gtsam::QPSVisitor Class Reference

Public Member Functions

void addBound (boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, Chars, Chars, double > const &vars)
 
void addColumn (boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars > const &vars)
 
void addColumnDouble (boost::fusion::vector< Chars, Chars, Chars, Chars, double, Chars, Chars, Chars, double > const &vars)
 
void addFreeBound (boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, Chars, Chars > const &vars)
 
void addQuadTerm (boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars > const &vars)
 
void addRangeDouble (boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars, Chars, Chars, double > const &vars)
 
void addRangeSingle (boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars > const &vars)
 
void addRHS (boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars > const &vars)
 
void addRHSDouble (boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars, Chars, Chars, double > const &vars)
 
void addRow (boost::fusion::vector< Chars, char, Chars, Chars, Chars > const &vars)
 
QP makeQP ()
 
 QPSVisitor ()
 
void setName (boost::fusion::vector< Chars, Chars, Chars > const &name)
 

Private Types

typedef std::unordered_map< Key, Matrix11 > coefficient_v
 
typedef std::unordered_map< std::string, coefficient_vconstraint_v
 

Private Attributes

std::unordered_map< std::string, double > b
 
const bool debug = false
 
constraint_v E
 
double f = 0
 
KeyVector free
 
std::unordered_map< Key, double > fx
 
std::unordered_map< Key, Vector1g
 
std::unordered_map< Key, std::unordered_map< Key, Matrix11 > > H
 
constraint_v IG
 
constraint_v IL
 
std::unordered_map< Key, double > lo
 
std::string name_
 
unsigned int numVariables
 
std::string obj_name
 
std::unordered_map< std::string, double > ranges
 
std::unordered_map< std::string, constraint_v * > row_to_constraint_v
 
std::unordered_map< Key, double > up
 
std::unordered_map< std::string, Keyvarname_to_key
 

Detailed Description

As the parser reads a file, it call functions in this visitor. This visitor in turn stores what the parser has read in a way that can be later used to build the full QP problem in the file.

Definition at line 63 of file QPSParser.cpp.

Member Typedef Documentation

typedef std::unordered_map<Key, Matrix11> gtsam::QPSVisitor::coefficient_v
private

Definition at line 65 of file QPSParser.cpp.

typedef std::unordered_map<std::string, coefficient_v> gtsam::QPSVisitor::constraint_v
private

Definition at line 66 of file QPSParser.cpp.

Constructor & Destructor Documentation

gtsam::QPSVisitor::QPSVisitor ( )
inline

Definition at line 98 of file QPSParser.cpp.

Member Function Documentation

void gtsam::QPSVisitor::addBound ( boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, Chars, Chars, double > const &  vars)
inline

Definition at line 244 of file QPSParser.cpp.

void gtsam::QPSVisitor::addColumn ( boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars > const &  vars)
inline

Definition at line 107 of file QPSParser.cpp.

void gtsam::QPSVisitor::addColumnDouble ( boost::fusion::vector< Chars, Chars, Chars, Chars, double, Chars, Chars, Chars, double > const &  vars)
inline

Definition at line 125 of file QPSParser.cpp.

void gtsam::QPSVisitor::addFreeBound ( boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, Chars, Chars > const &  vars)
inline

Definition at line 264 of file QPSParser.cpp.

void gtsam::QPSVisitor::addQuadTerm ( boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars > const &  vars)
inline

Definition at line 275 of file QPSParser.cpp.

void gtsam::QPSVisitor::addRangeDouble ( boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars, Chars, Chars, double > const &  vars)
inline

Definition at line 156 of file QPSParser.cpp.

void gtsam::QPSVisitor::addRangeSingle ( boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars > const &  vars)
inline

Definition at line 145 of file QPSParser.cpp.

void gtsam::QPSVisitor::addRHS ( boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars > const &  vars)
inline

Definition at line 173 of file QPSParser.cpp.

void gtsam::QPSVisitor::addRHSDouble ( boost::fusion::vector< Chars, Chars, Chars, Chars, Chars, double, Chars, Chars, Chars, double > const &  vars)
inline

Definition at line 190 of file QPSParser.cpp.

void gtsam::QPSVisitor::addRow ( boost::fusion::vector< Chars, char, Chars, Chars, Chars > const &  vars)
inline

Definition at line 218 of file QPSParser.cpp.

QP gtsam::QPSVisitor::makeQP ( )
inline

Definition at line 289 of file QPSParser.cpp.

void gtsam::QPSVisitor::setName ( boost::fusion::vector< Chars, Chars, Chars > const &  name)
inline

Definition at line 100 of file QPSParser.cpp.

Member Data Documentation

std::unordered_map<std::string, double> gtsam::QPSVisitor::b
private

Definition at line 75 of file QPSParser.cpp.

const bool gtsam::QPSVisitor::debug = false
private

Definition at line 95 of file QPSParser.cpp.

constraint_v gtsam::QPSVisitor::E
private

Definition at line 70 of file QPSParser.cpp.

double gtsam::QPSVisitor::f = 0
private

Definition at line 84 of file QPSParser.cpp.

KeyVector gtsam::QPSVisitor::free
private

Definition at line 93 of file QPSParser.cpp.

std::unordered_map<Key, double> gtsam::QPSVisitor::fx
private

Definition at line 92 of file QPSParser.cpp.

std::unordered_map<Key, Vector1> gtsam::QPSVisitor::g
private

Definition at line 79 of file QPSParser.cpp.

std::unordered_map<Key, std::unordered_map<Key, Matrix11> > gtsam::QPSVisitor::H
private

Definition at line 83 of file QPSParser.cpp.

constraint_v gtsam::QPSVisitor::IG
private

Definition at line 71 of file QPSParser.cpp.

constraint_v gtsam::QPSVisitor::IL
private

Definition at line 72 of file QPSParser.cpp.

std::unordered_map<Key, double> gtsam::QPSVisitor::lo
private

Definition at line 90 of file QPSParser.cpp.

std::string gtsam::QPSVisitor::name_
private

Definition at line 86 of file QPSParser.cpp.

unsigned int gtsam::QPSVisitor::numVariables
private

Definition at line 73 of file QPSParser.cpp.

std::string gtsam::QPSVisitor::obj_name
private

Definition at line 85 of file QPSParser.cpp.

std::unordered_map<std::string, double> gtsam::QPSVisitor::ranges
private

Definition at line 78 of file QPSParser.cpp.

std::unordered_map<std::string, constraint_v *> gtsam::QPSVisitor::row_to_constraint_v
private

Definition at line 69 of file QPSParser.cpp.

std::unordered_map<Key, double> gtsam::QPSVisitor::up
private

Definition at line 88 of file QPSParser.cpp.

std::unordered_map<std::string, Key> gtsam::QPSVisitor::varname_to_key
private

Definition at line 81 of file QPSParser.cpp.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:58:25