|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Simplex when an allocation of prepare_linear_program() fails: the program builds no tableau, still takes restrictions, and a new preparation solves it. More...
#include <gtest/gtest.h>#include "allocation_failure.H"#include <cstddef>#include <new>#include <string>#include <Simplex.H>Go to the source code of this file.
Functions | |
| TEST (SimplexAllocation, AFailedPreparationStillTakesRestrictions) | |
Simplex when an allocation of prepare_linear_program() fails: the program builds no tableau, still takes restrictions, and a new preparation solves it.
This program replaces the global operator new, so that a test can make an allocation fail.
Definition in file simplex_allocation_test.cc.
| TEST | ( | SimplexAllocation | , |
| AFailedPreparationStillTakesRestrictions | |||
| ) |
Definition at line 57 of file simplex_allocation_test.cc.
References ALEPH_ALLOCATION_FAILURE_UNDER_TSAN, Aleph::Simplex< T >::get_num_restrictions(), Aleph::Simplex< T >::get_solution(), Aleph::Simplex< T >::load_solution(), Aleph::Simplex< T >::objetive_value(), Aleph::Simplex< T >::prepare_linear_program(), Aleph::Simplex< T >::put_objetive_function_coef(), Aleph::Simplex< T >::put_restriction(), Aleph::Simplex< T >::solve(), Aleph::sum(), and y.