|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Revised Simplex algorithm for linear programming. More...
#include <Simplex.H>
Public Types | |
| enum | State { Not_Solved , Solving , Unbounded , Solved , Unfeasible } |
| Solution states for the linear program. More... | |
Public Member Functions | |
| RevisedSimplex (size_t num_vars, size_t num_constraints) | |
| Constructs a Revised Simplex solver. | |
| RevisedSimplex (const RevisedSimplex &other)=default | |
| Copies the program of another solver. | |
| RevisedSimplex (RevisedSimplex &&other) noexcept | |
| Takes the program of another solver, which is left as an empty program, without variables nor constraints. | |
| RevisedSimplex & | operator= (const RevisedSimplex &other)=default |
| Copies the program of another solver. | |
| RevisedSimplex & | operator= (RevisedSimplex &&other) noexcept |
| Exchanges this solver with another, which is left with the previous program of this one. | |
| void | swap (RevisedSimplex &other) noexcept |
| Exchanges in O(1) this solver and another. | |
| void | set_objective (size_t j, T coef) |
| Sets objective coefficient. | |
| void | set_objective (const T *coefs) |
| Sets all objective coefficients. | |
| void | set_constraint (size_t i, size_t j, T coef) |
| Sets constraint coefficient. | |
| void | set_rhs (size_t i, T rhs) |
| Sets RHS value for a constraint. | |
| void | set_constraint_row (size_t i, const T *coefs, T rhs) |
| Adds a complete constraint. | |
| void | set_refactorization_frequency (size_t freq) |
| Sets refactorization frequency. | |
| State | solve () |
| Solves the linear program. | |
| T | get_solution (size_t j) const |
| Gets solution value for variable j. | |
| T | objective_value () const |
| Computes objective function value. | |
| State | get_state () const noexcept |
| Gets current state. | |
| const SimplexStats & | get_stats () const noexcept |
| Gets execution statistics. | |
| size_t | get_num_vars () const noexcept |
| Gets number of variables. | |
| size_t | get_num_constraints () const noexcept |
| Gets number of constraints. | |
| bool | verify_solution () const |
| Verifies solution satisfies all constraints. | |
| void | print_stats () const |
| Prints statistics to stdout. | |
Private Member Functions | |
| size_t | num_columns () const noexcept |
| bool | is_artificial (const size_t j) const noexcept |
| void | get_column (size_t j, std::vector< T > &col) const |
| void | ftran (const std::vector< T > &a, std::vector< T > &y) const |
| void | btran (const std::vector< T > &c_B, std::vector< T > &pi_out) const |
| T | compute_reduced_cost (size_t j) const |
| bool | bland_now () const noexcept |
| int | select_entering_variable (const T &tol) |
| int | select_leaving_variable (int entering, T &theta) |
| void | update_basis_inverse (int leaving_row, const std::vector< T > &d_col) |
| void | pivot (int leaving, int entering, const T &theta) |
| void | refactorize () |
| State | iterate (const T &tol) |
| void | drive_out_artificials () |
| void | scale () |
| RevisedSimplex () noexcept | |
Static Private Member Functions | |
| static T | scale_of (const T &magnitude) noexcept |
Private Attributes | |
| size_t | m |
| size_t | n |
| std::vector< T > | c |
| std::vector< std::vector< T > > | A |
| std::vector< T > | b |
| std::vector< std::vector< T > > | As |
| std::vector< T > | bs |
| std::vector< T > | cs |
| std::vector< T > | row_scale |
| std::vector< T > | col_scale |
| std::vector< size_t > | art_row |
| std::vector< int > | basic |
| std::vector< bool > | is_basic |
| std::vector< std::vector< T > > | B_inv_explicit |
| std::vector< T > | x_B |
| std::vector< T > | solution |
| std::vector< T > | pi |
| std::vector< T > | d |
| std::vector< T > | work |
| std::vector< T > | cost |
| T | eps |
| size_t | refactor_frequency |
| size_t | refactorizations = 0 |
| size_t | since_refactor = 0 |
| T | tol_coef = T{0} |
| T | tol_rhs = T{0} |
| T | tol_cost = T{0} |
| size_t | degenerate_run = 0 |
| State | state |
| SimplexStats | stats |
Revised Simplex algorithm for linear programming.
Maximizes c·x subject to A·x ≤ b and x ≥ 0, where the entries of b may be negative. The Revised Simplex method is a variant of the standard Simplex algorithm that maintains only the basis inverse B⁻¹ instead of the full tableau, which saves memory and work when there are many more variables than constraints.
| Aspect | Standard Simplex | Revised Simplex |
|---|---|---|
| Storage | Full tableau O((m+1)×(n+m+1)) | B⁻¹ + original data O(m² + mn) |
| Pivot | Update entire tableau | Update only B⁻¹ |
| Pricing | Read from tableau | Compute π = c_B·B⁻¹, then c̄_j = c_j - π·a_j |
| Best for | Small/dense problems | Large/sparse problems |
Every refactorization-frequency pivots, B⁻¹ is computed again from the basis by Gauss-Jordan elimination, and so are the values of the basic variables, so that the rounding of the updates does not build up. As Simplex, it works on the program with each row, each column and the objective multiplied by a power of two, so that its tolerances do not depend on the units of the data, and scales the solution back. A run of degenerate pivots switches to Bland's rule until a pivot improves the objective, so that the method always ends.
| T | Numeric type for coefficients (typically double). |
| enum Aleph::RevisedSimplex::State |
|
inlineprivatenoexcept |
|
inline |
Constructs a Revised Simplex solver.
| [in] | num_vars | Number of decision variables. |
| [in] | num_constraints | Number of constraints. |
| std::invalid_argument | If num_vars or num_constraints is zero. |
Definition at line 2629 of file Simplex.H.
References ah_invalid_argument_if.
|
default |
Copies the program of another solver.
| [in] | other | solver to copy. |
| std::bad_alloc | If memory allocation fails. |
|
inlinenoexcept |
Takes the program of another solver, which is left as an empty program, without variables nor constraints.
The implicit move took the vectors but copied their sizes: the moved-from solver then passed its index checks and wrote into vectors that it no longer had.
| [in,out] | other | solver to move from. |
Definition at line 2662 of file Simplex.H.
References Aleph::RevisedSimplex< T >::swap().
|
inlineprivatenoexcept |
Definition at line 2300 of file Simplex.H.
References Aleph::RevisedSimplex< T >::degenerate_run, Aleph::RevisedSimplex< T >::m, and Aleph::RevisedSimplex< T >::n.
Referenced by Aleph::RevisedSimplex< T >::iterate(), Aleph::RevisedSimplex< T >::select_entering_variable(), and Aleph::RevisedSimplex< T >::select_leaving_variable().
|
inlineprivate |
Definition at line 2275 of file Simplex.H.
References Aleph::RevisedSimplex< T >::B_inv_explicit, Aleph::RevisedSimplex< T >::m, and Aleph::sum().
Referenced by Aleph::RevisedSimplex< T >::select_entering_variable().
|
inlineprivate |
Definition at line 2288 of file Simplex.H.
References Aleph::RevisedSimplex< T >::cost, Aleph::RevisedSimplex< T >::get_column(), Aleph::RevisedSimplex< T >::m, Aleph::RevisedSimplex< T >::pi, and Aleph::RevisedSimplex< T >::work.
Referenced by Aleph::RevisedSimplex< T >::select_entering_variable().
|
inlineprivate |
Definition at line 2527 of file Simplex.H.
References Aleph::RevisedSimplex< T >::B_inv_explicit, Aleph::RevisedSimplex< T >::basic, Aleph::RevisedSimplex< T >::d, Aleph::SimplexStats::degenerate_pivots, Aleph::RevisedSimplex< T >::ftran(), Aleph::RevisedSimplex< T >::get_column(), Aleph::RevisedSimplex< T >::is_artificial(), Aleph::RevisedSimplex< T >::is_basic, k, Aleph::RevisedSimplex< T >::m, Aleph::RevisedSimplex< T >::n, Aleph::RevisedSimplex< T >::pivot(), r, Aleph::RevisedSimplex< T >::stats, Aleph::RevisedSimplex< T >::tol_coef, Aleph::RevisedSimplex< T >::work, and Aleph::RevisedSimplex< T >::x_B.
Referenced by Aleph::RevisedSimplex< T >::solve().
|
inlineprivate |
Definition at line 2261 of file Simplex.H.
References Aleph::RevisedSimplex< T >::B_inv_explicit, Aleph::RevisedSimplex< T >::m, Aleph::sum(), and y.
Referenced by Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::refactorize(), and Aleph::RevisedSimplex< T >::select_leaving_variable().
|
inlineprivate |
Definition at line 2245 of file Simplex.H.
References Aleph::RevisedSimplex< T >::art_row, Aleph::RevisedSimplex< T >::As, col, Aleph::RevisedSimplex< T >::m, and Aleph::RevisedSimplex< T >::n.
Referenced by Aleph::RevisedSimplex< T >::compute_reduced_cost(), Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::refactorize(), and Aleph::RevisedSimplex< T >::select_leaving_variable().
|
inlinenoexcept |
Gets number of constraints.
Definition at line 2938 of file Simplex.H.
References Aleph::RevisedSimplex< T >::m.
Referenced by Moved_From_Case< RevisedSimplex< double > >::is_empty(), TEST(), TEST_F(), and Moved_From_Case< RevisedSimplex< double > >::use().
|
inlinenoexcept |
Gets number of variables.
Definition at line 2935 of file Simplex.H.
References Aleph::RevisedSimplex< T >::n.
Referenced by Moved_From_Case< RevisedSimplex< double > >::is_empty(), TEST(), TEST_F(), and Moved_From_Case< RevisedSimplex< double > >::use().
|
inline |
Gets solution value for variable j.
| [in] | j | Variable index. |
| std::out_of_range | If j is out of range. |
Definition at line 2910 of file Simplex.H.
References ah_out_of_range_error_if, Aleph::RevisedSimplex< T >::n, and Aleph::RevisedSimplex< T >::solution.
Referenced by TEST(), TEST_F(), and Moved_From_Case< RevisedSimplex< double > >::use().
|
inlinenoexcept |
Gets current state.
Definition at line 2929 of file Simplex.H.
References Aleph::RevisedSimplex< T >::state.
Referenced by Moved_From_Case< RevisedSimplex< double > >::is_empty(), TEST_F(), and Moved_From_Case< RevisedSimplex< double > >::use().
|
inlinenoexcept |
|
inlineprivatenoexcept |
Definition at line 2241 of file Simplex.H.
References Aleph::RevisedSimplex< T >::m, and Aleph::RevisedSimplex< T >::n.
Referenced by Aleph::RevisedSimplex< T >::drive_out_artificials(), and Aleph::RevisedSimplex< T >::solve().
|
inlineprivate |
Definition at line 2490 of file Simplex.H.
References Aleph::RevisedSimplex< T >::bland_now(), Aleph::SimplexStats::bland_rule_used, Aleph::SimplexStats::degenerate_pivots, Aleph::RevisedSimplex< T >::degenerate_run, Aleph::SimplexStats::iterations, Aleph::RevisedSimplex< T >::pivot(), Aleph::RevisedSimplex< T >::select_entering_variable(), Aleph::RevisedSimplex< T >::select_leaving_variable(), Aleph::RevisedSimplex< T >::Solved, Aleph::RevisedSimplex< T >::stats, Aleph::RevisedSimplex< T >::tol_rhs, Aleph::RevisedSimplex< T >::Unbounded, and Aleph::RevisedSimplex< T >::x_B.
Referenced by Aleph::RevisedSimplex< T >::solve().
|
inlineprivatenoexcept |
Definition at line 2239 of file Simplex.H.
References Aleph::RevisedSimplex< T >::art_row, Aleph::RevisedSimplex< T >::m, and Aleph::RevisedSimplex< T >::n.
Referenced by Aleph::RevisedSimplex< T >::solve().
|
inline |
Computes objective function value.
Definition at line 2920 of file Simplex.H.
References Aleph::RevisedSimplex< T >::c, Aleph::RevisedSimplex< T >::n, Aleph::RevisedSimplex< T >::solution, and Aleph::sum().
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
default |
Copies the program of another solver.
| [in] | other | solver to copy. |
| std::bad_alloc | If memory allocation fails. |
|
inlinenoexcept |
Exchanges this solver with another, which is left with the previous program of this one.
| [in,out] | other | solver to move from. |
Definition at line 2681 of file Simplex.H.
References Aleph::RevisedSimplex< T >::swap().
|
inlineprivate |
Definition at line 2400 of file Simplex.H.
References Aleph::RevisedSimplex< T >::basic, Aleph::RevisedSimplex< T >::d, Aleph::RevisedSimplex< T >::is_basic, Aleph::RevisedSimplex< T >::m, Aleph::SimplexStats::pivots, r, Aleph::RevisedSimplex< T >::refactor_frequency, Aleph::RevisedSimplex< T >::refactorize(), Aleph::RevisedSimplex< T >::since_refactor, Aleph::RevisedSimplex< T >::stats, Aleph::RevisedSimplex< T >::update_basis_inverse(), and Aleph::RevisedSimplex< T >::x_B.
Referenced by Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::iterate(), and Aleph::RevisedSimplex< T >::refactorize().
|
inline |
Prints statistics to stdout.
Definition at line 2971 of file Simplex.H.
References Aleph::SimplexStats::elapsed_ms, Aleph::SimplexStats::iterations, Aleph::RevisedSimplex< T >::m, Aleph::RevisedSimplex< T >::n, Aleph::SimplexStats::pivots, Aleph::RevisedSimplex< T >::refactorizations, and Aleph::RevisedSimplex< T >::stats.
Referenced by TEST().
|
inlineprivate |
Definition at line 2422 of file Simplex.H.
References Aleph::RevisedSimplex< T >::B_inv_explicit, Aleph::RevisedSimplex< T >::basic, Aleph::RevisedSimplex< T >::bs, col, Aleph::RevisedSimplex< T >::ftran(), Aleph::RevisedSimplex< T >::get_column(), Aleph::RevisedSimplex< T >::m, Aleph::RevisedSimplex< T >::pivot(), Aleph::RevisedSimplex< T >::refactorizations, row, Aleph::RevisedSimplex< T >::since_refactor, Aleph::RevisedSimplex< T >::work, and Aleph::RevisedSimplex< T >::x_B.
Referenced by Aleph::RevisedSimplex< T >::pivot().
|
inlineprivate |
Definition at line 2579 of file Simplex.H.
References Aleph::RevisedSimplex< T >::A, Aleph::RevisedSimplex< T >::As, Aleph::RevisedSimplex< T >::b, Aleph::RevisedSimplex< T >::bs, Aleph::RevisedSimplex< T >::c, Aleph::RevisedSimplex< T >::col_scale, Aleph::RevisedSimplex< T >::cs, Aleph::RevisedSimplex< T >::m, Aleph::RevisedSimplex< T >::n, Aleph::RevisedSimplex< T >::row_scale, and Aleph::RevisedSimplex< T >::scale_of().
Referenced by Aleph::RevisedSimplex< T >::solve().
|
inlinestaticprivatenoexcept |
Definition at line 2567 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::scale().
|
inlineprivate |
Definition at line 2307 of file Simplex.H.
References Aleph::RevisedSimplex< T >::basic, Aleph::RevisedSimplex< T >::bland_now(), Aleph::RevisedSimplex< T >::btran(), Aleph::RevisedSimplex< T >::compute_reduced_cost(), Aleph::RevisedSimplex< T >::cost, Aleph::RevisedSimplex< T >::is_basic, Aleph::RevisedSimplex< T >::m, Aleph::RevisedSimplex< T >::n, and Aleph::RevisedSimplex< T >::pi.
Referenced by Aleph::RevisedSimplex< T >::iterate().
|
inlineprivate |
Definition at line 2340 of file Simplex.H.
References Aleph::and, Aleph::RevisedSimplex< T >::basic, Aleph::RevisedSimplex< T >::bland_now(), Aleph::RevisedSimplex< T >::d, Aleph::RevisedSimplex< T >::eps, Aleph::RevisedSimplex< T >::ftran(), Aleph::RevisedSimplex< T >::get_column(), Aleph::RevisedSimplex< T >::m, Aleph::RevisedSimplex< T >::tol_coef, Aleph::RevisedSimplex< T >::work, and Aleph::RevisedSimplex< T >::x_B.
Referenced by Aleph::RevisedSimplex< T >::iterate().
|
inline |
Sets constraint coefficient.
| [in] | i | Constraint index. |
| [in] | j | Variable index. |
| [in] | coef | Coefficient value. |
| std::out_of_range | If i or j is out of range. |
Definition at line 2756 of file Simplex.H.
References Aleph::RevisedSimplex< T >::A, ah_out_of_range_error_if, Aleph::RevisedSimplex< T >::m, and Aleph::RevisedSimplex< T >::n.
Referenced by TEST(), TEST(), TEST(), TEST(), TEST_F(), and Moved_From_Case< RevisedSimplex< double > >::use().
|
inline |
Adds a complete constraint.
| [in] | i | Constraint index. |
| [in] | coefs | Array of n coefficients. |
| [in] | rhs | Right-hand side value, which may be negative. |
| std::out_of_range | If i is out of range. |
Definition at line 2784 of file Simplex.H.
References Aleph::RevisedSimplex< T >::A, ah_out_of_range_error_if, Aleph::RevisedSimplex< T >::b, Aleph::RevisedSimplex< T >::m, and Aleph::RevisedSimplex< T >::n.
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inline |
Sets all objective coefficients.
| [in] | coefs | Array of n coefficients. |
Definition at line 2742 of file Simplex.H.
References Aleph::RevisedSimplex< T >::c, and Aleph::RevisedSimplex< T >::n.
|
inline |
Sets objective coefficient.
| [in] | j | Variable index. |
| [in] | coef | Coefficient value. |
| std::out_of_range | If j is out of range. |
Definition at line 2732 of file Simplex.H.
References ah_out_of_range_error_if, Aleph::RevisedSimplex< T >::c, and Aleph::RevisedSimplex< T >::n.
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and Moved_From_Case< RevisedSimplex< double > >::use().
|
inline |
Sets refactorization frequency.
B⁻¹ is recomputed explicitly every N pivots to maintain numerical stability.
| [in] | freq | Refactorization frequency (default: max(50, m)). |
| std::invalid_argument | If freq is zero. |
Definition at line 2801 of file Simplex.H.
References ah_invalid_argument_if, and Aleph::RevisedSimplex< T >::refactor_frequency.
Referenced by TEST().
|
inline |
Sets RHS value for a constraint.
| [in] | i | Constraint index. |
| [in] | rhs | Right-hand side value, which may be negative. |
| std::out_of_range | If i is out of range. |
Definition at line 2770 of file Simplex.H.
References ah_out_of_range_error_if, Aleph::RevisedSimplex< T >::b, and Aleph::RevisedSimplex< T >::m.
Referenced by TEST(), TEST(), TEST(), TEST(), TEST_F(), and Moved_From_Case< RevisedSimplex< double > >::use().
|
inline |
Solves the linear program.
| std::logic_error | If solve() has already been called. |
Definition at line 2813 of file Simplex.H.
References ah_logic_error_if, Aleph::RevisedSimplex< T >::art_row, Aleph::RevisedSimplex< T >::As, Aleph::RevisedSimplex< T >::B_inv_explicit, Aleph::RevisedSimplex< T >::basic, Aleph::RevisedSimplex< T >::bs, Aleph::RevisedSimplex< T >::col_scale, Aleph::RevisedSimplex< T >::cost, Aleph::RevisedSimplex< T >::cs, Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::SimplexStats::elapsed_ms, Aleph::RevisedSimplex< T >::eps, Aleph::RevisedSimplex< T >::is_artificial(), Aleph::RevisedSimplex< T >::is_basic, Aleph::RevisedSimplex< T >::iterate(), Aleph::RevisedSimplex< T >::m, Aleph::RevisedSimplex< T >::n, Aleph::RevisedSimplex< T >::Not_Solved, Aleph::RevisedSimplex< T >::num_columns(), Aleph::RevisedSimplex< T >::refactorizations, Aleph::SimplexStats::reset(), Aleph::RevisedSimplex< T >::row_scale, Aleph::RevisedSimplex< T >::scale(), Aleph::RevisedSimplex< T >::since_refactor, Aleph::RevisedSimplex< T >::solution, Aleph::RevisedSimplex< T >::Solving, Aleph::RevisedSimplex< T >::state, Aleph::RevisedSimplex< T >::stats, Aleph::sum(), Aleph::RevisedSimplex< T >::tol_coef, Aleph::RevisedSimplex< T >::tol_cost, Aleph::RevisedSimplex< T >::tol_rhs, Aleph::RevisedSimplex< T >::Unfeasible, and Aleph::RevisedSimplex< T >::x_B.
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and Moved_From_Case< RevisedSimplex< double > >::use().
|
inlinenoexcept |
Exchanges in O(1) this solver and another.
| [in,out] | other | solver to exchange with. |
Definition at line 2691 of file Simplex.H.
References Aleph::RevisedSimplex< T >::A, Aleph::RevisedSimplex< T >::art_row, Aleph::RevisedSimplex< T >::As, Aleph::RevisedSimplex< T >::b, Aleph::RevisedSimplex< T >::B_inv_explicit, Aleph::RevisedSimplex< T >::basic, Aleph::RevisedSimplex< T >::bs, Aleph::RevisedSimplex< T >::c, Aleph::RevisedSimplex< T >::col_scale, Aleph::RevisedSimplex< T >::cost, Aleph::RevisedSimplex< T >::cs, Aleph::RevisedSimplex< T >::d, Aleph::RevisedSimplex< T >::degenerate_run, Aleph::RevisedSimplex< T >::eps, Aleph::RevisedSimplex< T >::is_basic, Aleph::RevisedSimplex< T >::m, Aleph::RevisedSimplex< T >::n, Aleph::RevisedSimplex< T >::pi, Aleph::RevisedSimplex< T >::refactor_frequency, Aleph::RevisedSimplex< T >::refactorizations, Aleph::RevisedSimplex< T >::row_scale, Aleph::RevisedSimplex< T >::since_refactor, Aleph::RevisedSimplex< T >::solution, Aleph::RevisedSimplex< T >::state, Aleph::RevisedSimplex< T >::stats, Aleph::RevisedSimplex< T >::tol_coef, Aleph::RevisedSimplex< T >::tol_cost, Aleph::RevisedSimplex< T >::tol_rhs, Aleph::RevisedSimplex< T >::work, and Aleph::RevisedSimplex< T >::x_B.
Referenced by Aleph::RevisedSimplex< T >::RevisedSimplex(), and Aleph::RevisedSimplex< T >::operator=().
|
inlineprivate |
Definition at line 2380 of file Simplex.H.
References Aleph::RevisedSimplex< T >::B_inv_explicit, Aleph::RevisedSimplex< T >::m, and r.
Referenced by Aleph::RevisedSimplex< T >::pivot().
|
inline |
Verifies solution satisfies all constraints.
Checks that every variable is >= 0 and that every constraint holds, up to a tolerance relative to the magnitude of its terms: 10 times the tolerance of the solver.
Definition at line 2948 of file Simplex.H.
References Aleph::RevisedSimplex< T >::A, Aleph::RevisedSimplex< T >::b, Aleph::RevisedSimplex< T >::eps, Aleph::RevisedSimplex< T >::m, Aleph::RevisedSimplex< T >::n, Aleph::size(), and Aleph::RevisedSimplex< T >::solution.
Referenced by TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), and Moved_From_Case< RevisedSimplex< double > >::use().
|
private |
Definition at line 2186 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::scale(), Aleph::RevisedSimplex< T >::set_constraint(), Aleph::RevisedSimplex< T >::set_constraint_row(), Aleph::RevisedSimplex< T >::swap(), and Aleph::RevisedSimplex< T >::verify_solution().
|
private |
Definition at line 2202 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::get_column(), Aleph::RevisedSimplex< T >::num_columns(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2193 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::get_column(), Aleph::RevisedSimplex< T >::scale(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2187 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::scale(), Aleph::RevisedSimplex< T >::set_constraint_row(), Aleph::RevisedSimplex< T >::set_rhs(), Aleph::RevisedSimplex< T >::swap(), and Aleph::RevisedSimplex< T >::verify_solution().
|
private |
Definition at line 2208 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::btran(), Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::ftran(), Aleph::RevisedSimplex< T >::refactorize(), Aleph::RevisedSimplex< T >::solve(), Aleph::RevisedSimplex< T >::swap(), and Aleph::RevisedSimplex< T >::update_basis_inverse().
|
private |
Definition at line 2205 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::pivot(), Aleph::RevisedSimplex< T >::refactorize(), Aleph::RevisedSimplex< T >::select_entering_variable(), Aleph::RevisedSimplex< T >::select_leaving_variable(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2194 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::refactorize(), Aleph::RevisedSimplex< T >::scale(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2185 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::objective_value(), Aleph::RevisedSimplex< T >::scale(), Aleph::RevisedSimplex< T >::set_objective(), Aleph::RevisedSimplex< T >::set_objective(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2197 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::scale(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2218 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::compute_reduced_cost(), Aleph::RevisedSimplex< T >::select_entering_variable(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2195 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::scale(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
mutableprivate |
Definition at line 2216 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::pivot(), Aleph::RevisedSimplex< T >::select_leaving_variable(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2233 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::bland_now(), Aleph::RevisedSimplex< T >::iterate(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2221 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::select_leaving_variable(), Aleph::RevisedSimplex< T >::solve(), Aleph::RevisedSimplex< T >::swap(), and Aleph::RevisedSimplex< T >::verify_solution().
|
private |
Definition at line 2206 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::pivot(), Aleph::RevisedSimplex< T >::select_entering_variable(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2183 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::bland_now(), Aleph::RevisedSimplex< T >::btran(), Aleph::RevisedSimplex< T >::compute_reduced_cost(), Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::ftran(), Aleph::RevisedSimplex< T >::get_column(), Aleph::RevisedSimplex< T >::get_num_constraints(), Aleph::RevisedSimplex< T >::is_artificial(), Aleph::RevisedSimplex< T >::num_columns(), Aleph::RevisedSimplex< T >::pivot(), Aleph::RevisedSimplex< T >::print_stats(), Aleph::RevisedSimplex< T >::refactorize(), Aleph::RevisedSimplex< T >::scale(), Aleph::RevisedSimplex< T >::select_entering_variable(), Aleph::RevisedSimplex< T >::select_leaving_variable(), Aleph::RevisedSimplex< T >::set_constraint(), Aleph::RevisedSimplex< T >::set_constraint_row(), Aleph::RevisedSimplex< T >::set_rhs(), Aleph::RevisedSimplex< T >::solve(), Aleph::RevisedSimplex< T >::swap(), Aleph::RevisedSimplex< T >::update_basis_inverse(), and Aleph::RevisedSimplex< T >::verify_solution().
|
private |
Definition at line 2184 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::bland_now(), Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::get_column(), Aleph::RevisedSimplex< T >::get_num_vars(), Aleph::RevisedSimplex< T >::get_solution(), Aleph::RevisedSimplex< T >::is_artificial(), Aleph::RevisedSimplex< T >::num_columns(), Aleph::RevisedSimplex< T >::objective_value(), Aleph::RevisedSimplex< T >::print_stats(), Aleph::RevisedSimplex< T >::scale(), Aleph::RevisedSimplex< T >::select_entering_variable(), Aleph::RevisedSimplex< T >::set_constraint(), Aleph::RevisedSimplex< T >::set_constraint_row(), Aleph::RevisedSimplex< T >::set_objective(), Aleph::RevisedSimplex< T >::set_objective(), Aleph::RevisedSimplex< T >::solve(), Aleph::RevisedSimplex< T >::swap(), and Aleph::RevisedSimplex< T >::verify_solution().
|
mutableprivate |
Definition at line 2215 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::compute_reduced_cost(), Aleph::RevisedSimplex< T >::select_entering_variable(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2222 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::pivot(), Aleph::RevisedSimplex< T >::set_refactorization_frequency(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2223 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::print_stats(), Aleph::RevisedSimplex< T >::refactorize(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2196 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::scale(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2224 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::pivot(), Aleph::RevisedSimplex< T >::refactorize(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2212 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::get_solution(), Aleph::RevisedSimplex< T >::objective_value(), Aleph::RevisedSimplex< T >::solve(), Aleph::RevisedSimplex< T >::swap(), and Aleph::RevisedSimplex< T >::verify_solution().
|
private |
Definition at line 2236 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::get_state(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
mutableprivate |
Definition at line 2237 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::get_stats(), Aleph::RevisedSimplex< T >::iterate(), Aleph::RevisedSimplex< T >::pivot(), Aleph::RevisedSimplex< T >::print_stats(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2228 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::select_leaving_variable(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2230 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
private |
Definition at line 2229 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::iterate(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().
|
mutableprivate |
|
private |
Definition at line 2211 of file Simplex.H.
Referenced by Aleph::RevisedSimplex< T >::drive_out_artificials(), Aleph::RevisedSimplex< T >::iterate(), Aleph::RevisedSimplex< T >::pivot(), Aleph::RevisedSimplex< T >::refactorize(), Aleph::RevisedSimplex< T >::select_leaving_variable(), Aleph::RevisedSimplex< T >::solve(), and Aleph::RevisedSimplex< T >::swap().