Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
simplex_exhaustive_test.cc File Reference

Simplex and RevisedSimplex against an exact oracle. More...

#include <gtest/gtest.h>
#include <Simplex.H>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <filesystem>
#include <limits>
#include <memory>
#include <random>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
Include dependency graph for simplex_exhaustive_test.cc:

Go to the source code of this file.

Functions

 TEST (SimplexOracle, KnowsTheTextbookPrograms)
 
 TEST (SimplexOracle, RationalApproximation)
 
 TEST (SimplexExhaustive, EveryProgramOfTheSmallDomain)
 
 TEST (SimplexExhaustive, RandomProgramsWithTheirSensitivity)
 
 TEST (SimplexExhaustive, LargerRandomPrograms)
 
 TEST (SimplexExhaustive, ScaledProgramsGiveScaledResults)
 
 TEST (SimplexExhaustive, LatexSolveGivesWhatSolveGives)
 
 TEST (RevisedSimplexExhaustive, RandomProgramsOfLessOrEqualConstraints)
 
 TEST (RevisedSimplexExhaustive, ScaledPrograms)
 
 TEST (RevisedSimplexExhaustive, AgreesWithSimplex)
 

Detailed Description

Simplex and RevisedSimplex against an exact oracle.

The oracle enumerates the vertices of a linear program with integer data, in exact integer arithmetic: Cramer's rule, with determinants by Bareiss' elimination. A box x <= U, with U above every coordinate of a vertex of the program, makes the feasible set bounded; the program is infeasible if no vertex is feasible, and unbounded if the optimum with the box 2U differs from the one with U.

Against it, every program of a small domain and thousands of random ones check the state, the optimal value, the solution, the shadow prices as an optimal dual solution, the reduced costs, the ranges of the sensitivity analysis at their bounds and just beyond them, the re-optimization of update_rhs_and_reoptimize(), Bland's rule, the type float, latex_solve() and RevisedSimplex.

Definition in file simplex_exhaustive_test.cc.

Function Documentation

◆ TEST() [1/10]

◆ TEST() [2/10]

TEST ( RevisedSimplexExhaustive  ,
RandomProgramsOfLessOrEqualConstraints   
)

Definition at line 1153 of file simplex_exhaustive_test.cc.

References Aleph::and, k, and rng.

◆ TEST() [3/10]

◆ TEST() [4/10]

TEST ( SimplexExhaustive  ,
EveryProgramOfTheSmallDomain   
)

Definition at line 901 of file simplex_exhaustive_test.cc.

References Aleph::code(), and rows.

◆ TEST() [5/10]

TEST ( SimplexExhaustive  ,
LargerRandomPrograms   
)

Definition at line 1002 of file simplex_exhaustive_test.cc.

References Aleph::and, k, and rng.

◆ TEST() [6/10]

TEST ( SimplexExhaustive  ,
LatexSolveGivesWhatSolveGives   
)

Definition at line 1114 of file simplex_exhaustive_test.cc.

References Aleph::and, k, and rng.

◆ TEST() [7/10]

TEST ( SimplexExhaustive  ,
RandomProgramsWithTheirSensitivity   
)

Definition at line 977 of file simplex_exhaustive_test.cc.

References Aleph::and, k, and rng.

◆ TEST() [8/10]

◆ TEST() [9/10]

TEST ( SimplexOracle  ,
KnowsTheTextbookPrograms   
)

Definition at line 848 of file simplex_exhaustive_test.cc.

◆ TEST() [10/10]

TEST ( SimplexOracle  ,
RationalApproximation   
)

Definition at line 880 of file simplex_exhaustive_test.cc.