Scippy

SoPlex

Sequential object-oriented simPlex

Tolerances Class Reference

#include <spxdefines.h>

Public Member Functions

 Tolerances ()
 
Access / modification
Real epsilon ()
 global zero epsilon More...
 
void setEpsilon (Real eps)
 set global zero epsilon More...
 
Real epsilonFactorization ()
 zero espilon used in factorization More...
 
void setEpsilonFactorization (Real eps)
 set zero espilon used in factorization More...
 
Real epsilonUpdate ()
 zero espilon used in factorization update More...
 
void setEpsilonUpdate (Real eps)
 set zero espilon used in factorization update More...
 
Real epsilonPivot ()
 zero espilon used in pivot More...
 
void setEpsilonPivot (Real eps)
 set zero espilon used in pivot More...
 
Real feastol ()
 global feasibility tolerance More...
 
void setFeastol (Real ftol)
 set global feasibility tolerance More...
 
Real opttol ()
 global optimality tolerance More...
 
void setOpttol (Real otol)
 set global optimality tolerance More...
 
Real floatingPointFeastol ()
 floating point feasibility tolerance used within the solver More...
 
void setFloatingPointFeastol (Real ftol)
 set floating point feasibility tolerance used within the solver More...
 
Real floatingPointOpttol ()
 floating point optimality tolerance used within the solver More...
 
void setFloatingPointOpttol (Real otol)
 set floating point optimality tolerance used within the solver More...
 
Real scaleAccordingToEpsilon (Real a)
 scale a value such that it remains unchanged at default epsilon, but is scaled withs smaller epsilon values this is updated in setEpsilon() More...
 

Private Attributes

Data
Real s_epsilon
 default allowed additive zero: 1.0 + EPS_ZERO == 1.0 More...
 
Real s_epsilon_factorization
 epsilon for factorization More...
 
Real s_epsilon_update
 epsilon for factorization update More...
 
Real s_epsilon_pivot
 epsilon for pivot zero tolerance in factorization More...
 
Real s_feastol
 feasibility tolerance More...
 
Real s_opttol
 optimality tolerance More...
 
Real s_floating_point_feastol
 floating point feasibility tolerance More...
 
Real s_floating_point_opttol
 floating point optimality tolerance More...
 
Real s_epsilon_multiplier
 multiplier for fixed numbers that should change if s_epsilon changes More...
 

Detailed Description

Definition at line 304 of file spxdefines.h.

Constructor & Destructor Documentation

◆ Tolerances()

Tolerances ( )
explicit

Definition at line 334 of file spxdefines.h.

Member Function Documentation

◆ epsilon()

Real epsilon ( )

global zero epsilon

Definition at line 56 of file spxdefines.cpp.

References Tolerances::s_epsilon.

◆ epsilonFactorization()

Real epsilonFactorization ( )

zero espilon used in factorization

Definition at line 68 of file spxdefines.cpp.

References Tolerances::s_epsilon_factorization.

◆ epsilonPivot()

Real epsilonPivot ( )

zero espilon used in pivot

Definition at line 89 of file spxdefines.cpp.

References Tolerances::s_epsilon_pivot.

◆ epsilonUpdate()

Real epsilonUpdate ( )

zero espilon used in factorization update

Definition at line 79 of file spxdefines.cpp.

References Tolerances::s_epsilon_update.

◆ feastol()

Real feastol ( )

global feasibility tolerance

Definition at line 99 of file spxdefines.cpp.

References Tolerances::s_feastol.

◆ floatingPointFeastol()

Real floatingPointFeastol ( )

floating point feasibility tolerance used within the solver

Definition at line 119 of file spxdefines.cpp.

References Tolerances::s_floating_point_feastol.

◆ floatingPointOpttol()

Real floatingPointOpttol ( )

floating point optimality tolerance used within the solver

Definition at line 129 of file spxdefines.cpp.

References Tolerances::s_floating_point_opttol.

◆ opttol()

Real opttol ( )

global optimality tolerance

Definition at line 109 of file spxdefines.cpp.

References Tolerances::s_opttol.

◆ scaleAccordingToEpsilon()

Real scaleAccordingToEpsilon ( Real  a)

scale a value such that it remains unchanged at default epsilon, but is scaled withs smaller epsilon values this is updated in setEpsilon()

Definition at line 380 of file spxdefines.h.

References Tolerances::s_epsilon_multiplier.

◆ setEpsilon()

void setEpsilon ( Real  eps)

set global zero epsilon

Definition at line 61 of file spxdefines.cpp.

References Tolerances::s_epsilon, Tolerances::s_epsilon_multiplier, and SOPLEX_DEFAULT_EPS_ZERO.

◆ setEpsilonFactorization()

void setEpsilonFactorization ( Real  eps)

set zero espilon used in factorization

Definition at line 73 of file spxdefines.cpp.

References Tolerances::s_epsilon_factorization.

◆ setEpsilonPivot()

void setEpsilonPivot ( Real  eps)

set zero espilon used in pivot

Definition at line 94 of file spxdefines.cpp.

References Tolerances::s_epsilon_pivot.

◆ setEpsilonUpdate()

void setEpsilonUpdate ( Real  eps)

set zero espilon used in factorization update

Definition at line 84 of file spxdefines.cpp.

References Tolerances::s_epsilon_update.

◆ setFeastol()

void setFeastol ( Real  ftol)

set global feasibility tolerance

Definition at line 104 of file spxdefines.cpp.

References Tolerances::s_feastol.

◆ setFloatingPointFeastol()

void setFloatingPointFeastol ( Real  ftol)

set floating point feasibility tolerance used within the solver

Definition at line 124 of file spxdefines.cpp.

References Tolerances::s_floating_point_feastol.

◆ setFloatingPointOpttol()

void setFloatingPointOpttol ( Real  otol)

set floating point optimality tolerance used within the solver

Definition at line 134 of file spxdefines.cpp.

References Tolerances::s_floating_point_opttol.

◆ setOpttol()

void setOpttol ( Real  otol)

set global optimality tolerance

Definition at line 114 of file spxdefines.cpp.

References Tolerances::s_opttol.

Member Data Documentation

◆ s_epsilon

Real s_epsilon
private

default allowed additive zero: 1.0 + EPS_ZERO == 1.0

Definition at line 312 of file spxdefines.h.

Referenced by Tolerances::epsilon(), and Tolerances::setEpsilon().

◆ s_epsilon_factorization

Real s_epsilon_factorization
private

epsilon for factorization

Definition at line 314 of file spxdefines.h.

Referenced by Tolerances::epsilonFactorization(), and Tolerances::setEpsilonFactorization().

◆ s_epsilon_multiplier

Real s_epsilon_multiplier
private

multiplier for fixed numbers that should change if s_epsilon changes

Definition at line 328 of file spxdefines.h.

Referenced by Tolerances::scaleAccordingToEpsilon(), and Tolerances::setEpsilon().

◆ s_epsilon_pivot

Real s_epsilon_pivot
private

epsilon for pivot zero tolerance in factorization

Definition at line 318 of file spxdefines.h.

Referenced by Tolerances::epsilonPivot(), and Tolerances::setEpsilonPivot().

◆ s_epsilon_update

Real s_epsilon_update
private

epsilon for factorization update

Definition at line 316 of file spxdefines.h.

Referenced by Tolerances::epsilonUpdate(), and Tolerances::setEpsilonUpdate().

◆ s_feastol

Real s_feastol
private

feasibility tolerance

Definition at line 320 of file spxdefines.h.

Referenced by Tolerances::feastol(), and Tolerances::setFeastol().

◆ s_floating_point_feastol

Real s_floating_point_feastol
private

floating point feasibility tolerance

Definition at line 324 of file spxdefines.h.

Referenced by Tolerances::floatingPointFeastol(), and Tolerances::setFloatingPointFeastol().

◆ s_floating_point_opttol

Real s_floating_point_opttol
private

floating point optimality tolerance

Definition at line 326 of file spxdefines.h.

Referenced by Tolerances::floatingPointOpttol(), and Tolerances::setFloatingPointOpttol().

◆ s_opttol

Real s_opttol
private

optimality tolerance

Definition at line 322 of file spxdefines.h.

Referenced by Tolerances::opttol(), and Tolerances::setOpttol().