Namespaces | Functions | Variables
testLPSolver.cpp File Reference
#include <gtsam_unstable/linear/LPInitSolver.h>
#include <gtsam_unstable/linear/LPSolver.h>
#include <gtsam/base/Testable.h>
#include <gtsam/inference/FactorGraph-inst.h>
#include <gtsam/inference/Symbol.h>
#include <gtsam/linear/GaussianFactorGraph.h>
#include <gtsam/linear/VectorValues.h>
#include <gtsam_unstable/linear/EqualityFactorGraph.h>
#include <gtsam_unstable/linear/InequalityFactorGraph.h>
#include <gtsam_unstable/linear/InfeasibleInitialValues.h>
#include <CppUnitLite/TestHarness.h>
#include <boost/foreach.hpp>
#include <boost/range/adaptor/map.hpp>
Include dependency graph for testLPSolver.cpp:

Go to the source code of this file.

Namespaces

 gtsam
 traits
 

Functions

int main ()
 
LP simpleLP1 ()
 
 gtsam::TEST (LPInitSolver, InfiniteLoopSingleVar)
 
 gtsam::TEST (LPInitSolver, InfiniteLoopMultiVar)
 
 gtsam::TEST (LPInitSolver, Initialization)
 
 TEST (LPSolver, OverConstrainedLinearSystem)
 
 TEST (LPSolver, overConstrainedLinearSystem2)
 
 TEST (LPSolver, SimpleTest1)
 
 TEST (LPSolver, TestWithoutInitialValues)
 
 TEST (LPSolver, LinearCost)
 

Variables

static const Vector kOne = Vector::Ones(1)
 
static const Vector kZero = Vector::Zero(1)
 

Function Documentation

int main ( void  )

Definition at line 237 of file testLPSolver.cpp.

LP simpleLP1 ( )

min -x1-x2 s.t. x1 + 2x2 <= 4 4x1 + 2x2 <= 12 -x1 + x2 <= 1 x1, x2 >= 0

Definition at line 50 of file testLPSolver.cpp.

TEST ( LPSolver  ,
OverConstrainedLinearSystem   
)

TEST gtsam solver with an over-constrained system x + y = 1 x - y = 5 x + 2y = 6

Definition at line 166 of file testLPSolver.cpp.

TEST ( LPSolver  ,
overConstrainedLinearSystem2   
)

Definition at line 179 of file testLPSolver.cpp.

TEST ( LPSolver  ,
SimpleTest1   
)

Definition at line 191 of file testLPSolver.cpp.

TEST ( LPSolver  ,
TestWithoutInitialValues   
)

Definition at line 211 of file testLPSolver.cpp.

TEST ( LPSolver  ,
LinearCost   
)

TODO: More TEST cases:

  • Infeasible
  • Unbounded
  • Underdetermined

Definition at line 227 of file testLPSolver.cpp.

Variable Documentation

const Vector kOne = Vector::Ones(1)
static

Definition at line 40 of file testLPSolver.cpp.

const Vector kZero = Vector::Zero(1)
static

Definition at line 40 of file testLPSolver.cpp.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:41