Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::SimplexSolver Class Reference

#include <simplex.hpp>

Public Member Functions

 SimplexSolver ()
void set_num_vars (int n)
void set_objective (const std::vector< double > &coeffs)
void add_ge_constraint (const std::vector< double > &coeffs, double rhs)
void add_le_constraint (const std::vector< double > &coeffs, double rhs)
void add_eq_constraint (const std::vector< double > &coeffs, double rhs)
LPStatus solve (int max_iterations=10000)
double get_value (int var) const
double objective_value () const
LPStatus status () const

Constructor & Destructor Documentation

◆ SimplexSolver()

sw::universal::SimplexSolver::SimplexSolver ( )
inline

Member Function Documentation

◆ add_eq_constraint()

void sw::universal::SimplexSolver::add_eq_constraint ( const std::vector< double > & coeffs,
double rhs )
inline

◆ add_ge_constraint()

void sw::universal::SimplexSolver::add_ge_constraint ( const std::vector< double > & coeffs,
double rhs )
inline

◆ add_le_constraint()

void sw::universal::SimplexSolver::add_le_constraint ( const std::vector< double > & coeffs,
double rhs )
inline

◆ get_value()

double sw::universal::SimplexSolver::get_value ( int var) const
inline

◆ objective_value()

double sw::universal::SimplexSolver::objective_value ( ) const
inline

◆ set_num_vars()

void sw::universal::SimplexSolver::set_num_vars ( int n)
inline

◆ set_objective()

void sw::universal::SimplexSolver::set_objective ( const std::vector< double > & coeffs)
inline

◆ solve()

LPStatus sw::universal::SimplexSolver::solve ( int max_iterations = 10000)
inline

◆ status()

LPStatus sw::universal::SimplexSolver::status ( ) const
inline

The documentation for this class was generated from the following file:
  • /home/runner/work/universal/universal/include/sw/universal/mixedprecision/simplex.hpp