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 = std::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

◆ shared_ptr

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

Definition at line 52 of file LP.h.

Member Function Documentation

◆ constrainedKeyDimMap()

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

Definition at line 80 of file LP.h.

◆ costGradient()

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

Definition at line 90 of file LP.h.

◆ equals()

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

equals

Definition at line 75 of file LP.h.

◆ isFeasible()

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

check feasibility

Definition at line 62 of file LP.h.

◆ print()

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

print

Definition at line 67 of file LP.h.

Member Data Documentation

◆ cachedConstrainedKeyDimMap_

KeyDimMap gtsam::LP::cachedConstrainedKeyDimMap_
mutableprivate

cached key-dim map of all variables in the constraints

Definition at line 58 of file LP.h.

◆ cost

LinearCost gtsam::LP::cost

Linear cost factor.

Definition at line 54 of file LP.h.

◆ equalities

EqualityFactorGraph gtsam::LP::equalities

Linear equality constraints: cE(x) = 0.

Definition at line 55 of file LP.h.

◆ inequalities

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 Sun Dec 22 2024 04:23:58