Optimo  0.1.0
A C++ header library for optimization
 All Classes Functions Variables Pages
optimo::solvers::SparsePrimalDualLP< Scalar >::Params Class Reference

Sparse LP params. More...

#include <sparse_primal_dual_lp_api.h>

Public Member Functions

 Params (const uint n, const uint m, const uint p)
 LP parameters constructor. More...
 
void reserve (void)
 This function will reserve memory for the sparse matrix (optional).
 
bool reserve (const std::vector< uint > &col_sizes)
 Reserve memory per column for the sparse matrix (optional).
 
bool setAeqElement (const uint i, const uint j, const Scalar &val)
 Method that inserts an element to matrix \(A_{\text{eq}}\).
 
bool setAinElement (const uint i, const uint j, const Scalar &val)
 Method that inserts an element to matrix \(A_{\text{in}}\).
 

Public Attributes

Matrix< Scalar, Dynamic, 1 > beq
 Vector for equalities.
 
Matrix< Scalar, Dynamic, 1 > bin
 Vector for inequalities.
 
Matrix< Scalar, Dynamic, 1 > c
 Cost vector of the LP.
 

Detailed Description

template<typename Scalar = double>
class optimo::solvers::SparsePrimalDualLP< Scalar >::Params

Sparse LP params.

Constructor & Destructor Documentation

template<typename Scalar = double>
optimo::solvers::SparsePrimalDualLP< Scalar >::Params::Params ( const uint  n,
const uint  m,
const uint  p 
)
inline

LP parameters constructor.

Parameters
nNumber of unkowns
mNumber of inequality constraints
pNumber of equality constraints

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