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 64 of file QPSParser.cpp.

Member Typedef Documentation

◆ coefficient_v

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

Definition at line 66 of file QPSParser.cpp.

◆ constraint_v

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

Definition at line 67 of file QPSParser.cpp.

Constructor & Destructor Documentation

◆ QPSVisitor()

gtsam::QPSVisitor::QPSVisitor ( )
inline

Definition at line 99 of file QPSParser.cpp.

Member Function Documentation

◆ addBound()

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

Definition at line 245 of file QPSParser.cpp.

◆ addColumn()

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

Definition at line 108 of file QPSParser.cpp.

◆ addColumnDouble()

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

Definition at line 126 of file QPSParser.cpp.

◆ addFreeBound()

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

Definition at line 265 of file QPSParser.cpp.

◆ addQuadTerm()

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

Definition at line 276 of file QPSParser.cpp.

◆ addRangeDouble()

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

Definition at line 157 of file QPSParser.cpp.

◆ addRangeSingle()

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

Definition at line 146 of file QPSParser.cpp.

◆ addRHS()

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

Definition at line 174 of file QPSParser.cpp.

◆ addRHSDouble()

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

Definition at line 191 of file QPSParser.cpp.

◆ addRow()

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

Definition at line 219 of file QPSParser.cpp.

◆ makeQP()

QP gtsam::QPSVisitor::makeQP ( )
inline

Definition at line 290 of file QPSParser.cpp.

◆ setName()

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

Definition at line 101 of file QPSParser.cpp.

Member Data Documentation

◆ b

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

Definition at line 76 of file QPSParser.cpp.

◆ debug

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

Definition at line 96 of file QPSParser.cpp.

◆ E

constraint_v gtsam::QPSVisitor::E
private

Definition at line 71 of file QPSParser.cpp.

◆ f

double gtsam::QPSVisitor::f = 0
private

Definition at line 85 of file QPSParser.cpp.

◆ free

KeyVector gtsam::QPSVisitor::free
private

Definition at line 94 of file QPSParser.cpp.

◆ fx

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

Definition at line 93 of file QPSParser.cpp.

◆ g

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

Definition at line 80 of file QPSParser.cpp.

◆ H

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

Definition at line 84 of file QPSParser.cpp.

◆ IG

constraint_v gtsam::QPSVisitor::IG
private

Definition at line 72 of file QPSParser.cpp.

◆ IL

constraint_v gtsam::QPSVisitor::IL
private

Definition at line 73 of file QPSParser.cpp.

◆ lo

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

Definition at line 91 of file QPSParser.cpp.

◆ name_

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

Definition at line 87 of file QPSParser.cpp.

◆ numVariables

unsigned int gtsam::QPSVisitor::numVariables
private

Definition at line 74 of file QPSParser.cpp.

◆ obj_name

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

Definition at line 86 of file QPSParser.cpp.

◆ ranges

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

Definition at line 79 of file QPSParser.cpp.

◆ row_to_constraint_v

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

Definition at line 70 of file QPSParser.cpp.

◆ up

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

Definition at line 89 of file QPSParser.cpp.

◆ varname_to_key

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

Definition at line 82 of file QPSParser.cpp.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:47:07