Cleaning the code of simplex method

In particular, the following things are done:
*) Consistent tabulation of 4 spaces is ensured
*) New function dprintf() is introduced, so now printing of the debug
information can be turned on/off via the ALEX_DEBUG macro
*) Removed solveLP_aux namespace
*) All auxiliary functions are declared as static
*) The return codes of solveLP() are encapsulated in enum.
This commit is contained in:
Alex Leontiev
2013-07-10 20:11:52 +03:00
parent a4a5e98cc0
commit a95650111f
5 changed files with 193 additions and 118 deletions
+4 -4
View File
@@ -1,8 +1,7 @@
#include "test_precomp.hpp"
#include "opencv2/optim.hpp"
TEST(Optim_LpSolver, regression_basic)
{
TEST(Optim_LpSolver, regression_basic){
cv::Mat A,B,z,etalon_z;
if(true){
@@ -120,9 +119,10 @@ TEST(Optim_LpSolver, regression_cycling){
//
// ??how_check_multiple_solutions & pass_test - DONE
// Blands_rule - DONE
// (&1tests on cycling)
// (assert, assign) - DONE
//
// make_more_clear (assert, assign)
// (&1tests on cycling)
// make_more_clear
// wrap in OOP
//
// non-trivial tests