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 dependency graph for testLPSolver.cpp:

Go to the source code of this file.

Namespaces

 gtsam
 traits
 

Functions

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

Variables

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

Function Documentation

◆ main()

int main ( )

Definition at line 231 of file testLPSolver.cpp.

◆ simpleLP1()

LP simpleLP1 ( )

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

Definition at line 47 of file testLPSolver.cpp.

◆ TEST() [1/5]

TEST ( LPSolver  ,
LinearCost   
)

TODO: More TEST cases:

  • Infeasible
  • Unbounded
  • Underdetermined

Definition at line 221 of file testLPSolver.cpp.

◆ TEST() [2/5]

TEST ( LPSolver  ,
OverConstrainedLinearSystem   
)

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

Definition at line 161 of file testLPSolver.cpp.

◆ TEST() [3/5]

TEST ( LPSolver  ,
overConstrainedLinearSystem2   
)

Definition at line 174 of file testLPSolver.cpp.

◆ TEST() [4/5]

TEST ( LPSolver  ,
SimpleTest1   
)

Definition at line 186 of file testLPSolver.cpp.

◆ TEST() [5/5]

TEST ( LPSolver  ,
TestWithoutInitialValues   
)

Definition at line 205 of file testLPSolver.cpp.

Variable Documentation

◆ kOne

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

Definition at line 37 of file testLPSolver.cpp.

◆ kZero

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

Definition at line 37 of file testLPSolver.cpp.



gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:53