Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
gtsam::LP Struct Reference

#include <LP.h>

Public Types

using shared_ptr = boost::shared_ptr< LP >
 

Public Member Functions

const KeyDimMapconstrainedKeyDimMap () const
 
Vector costGradient (Key key, const VectorValues &delta) const
 
bool equals (const LP &other, double tol=1e-9) const
 equals More...
 
bool isFeasible (const VectorValues &x) const
 check feasibility More...
 
void print (const string &s="") const
 print More...
 

Public Attributes

LinearCost cost
 Linear cost factor. More...
 
EqualityFactorGraph equalities
 Linear equality constraints: cE(x) = 0. More...
 
InequalityFactorGraph inequalities
 Linear inequality constraints: cI(x) <= 0. More...
 

Private Attributes

KeyDimMap cachedConstrainedKeyDimMap_
 cached key-dim map of all variables in the constraints More...
 

Detailed Description

Data structure of a Linear Program

Definition at line 51 of file LP.h.

Member Typedef Documentation

using gtsam::LP::shared_ptr = boost::shared_ptr<LP>

Definition at line 52 of file LP.h.

Member Function Documentation

const KeyDimMap& gtsam::LP::constrainedKeyDimMap ( ) const
inline

Definition at line 80 of file LP.h.

Vector gtsam::LP::costGradient ( Key  key,
const VectorValues delta 
) const
inline

Definition at line 90 of file LP.h.

bool gtsam::LP::equals ( const LP other,
double  tol = 1e-9 
) const
inline

equals

Definition at line 75 of file LP.h.

bool gtsam::LP::isFeasible ( const VectorValues x) const
inline

check feasibility

Definition at line 62 of file LP.h.

void gtsam::LP::print ( const string &  s = "") const
inline

print

Definition at line 67 of file LP.h.

Member Data Documentation

KeyDimMap gtsam::LP::cachedConstrainedKeyDimMap_
mutableprivate

cached key-dim map of all variables in the constraints

Definition at line 58 of file LP.h.

LinearCost gtsam::LP::cost

Linear cost factor.

Definition at line 54 of file LP.h.

EqualityFactorGraph gtsam::LP::equalities

Linear equality constraints: cE(x) = 0.

Definition at line 55 of file LP.h.

InequalityFactorGraph gtsam::LP::inequalities

Linear inequality constraints: cI(x) <= 0.

Definition at line 56 of file LP.h.


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


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