Major improvements in NetworkSimplex.
Main changes:
- Use -potenital[] instead of potential[] to conform to the usual
terminology.
- Use function parameter instead of #define commands to select pivot rule.
- Use much faster implementation for the candidate list pivot rule.
It is about 5-20 times faster now.
- Add a new pivot rule called "Limited Search" that is a modified
version of "Block Search". It is about 25 percent faster on rather
sparse graphs.
- By default "Limited Search" is used for sparse graphs and
"Block Search" is used otherwise. This combined method is the most
efficient on every input class.
- Change the name of private members to start with "_".
- Change the name of function parameters not to start with "_".
- Remove unnecessary documentation for private members.
- Many doc improvements.
3 * This file is a part of LEMON, a generic C++ optimization library
5 * Copyright (C) 2003-2008
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
9 * Permission to use, modify and distribute this software is granted
10 * provided that this copyright notice appears in all copies. For
11 * precise terms see the accompanying LICENSE file.
13 * This software is provided "AS IS" with no warranty of any kind,
14 * express or implied, and with no claim as to its suitability for any
22 #include<lemon/config.h>
26 #include <lemon/lp_glpk.h>
27 #include <lemon/mip_glpk.h>
29 #include <lemon/lp_cplex.h>
30 #include <lemon/mip_cplex.h>
32 #include <lemon/lp_soplex.h>
36 ///\brief Defines a default LP solver
41 ///The default LP solver identifier
43 ///The default LP solver identifier.
46 ///Currently, the possible values are \c GLPK or \c CPLEX
47 #define DEFAULT_LP SOLVER
48 ///The default LP solver
50 ///The default LP solver.
53 ///Currently, it is either \c LpGlpk or \c LpCplex
55 ///The default LP solver identifier string
57 ///The default LP solver identifier string.
60 ///Currently, the possible values are "GLPK" or "CPLEX"
61 const char default_solver_name[]="SOLVER";
63 ///The default ILP solver.
65 ///The default ILP solver.
68 ///Currently, it is either \c LpGlpk or \c LpCplex
72 #define DEFAULT_LP GLPK
75 const char default_solver_name[]="GLPK";
77 #define DEFAULT_LP CPLEX
80 const char default_solver_name[]="CPLEX";
82 #define DEFAULT_LP SOPLEX
84 const char default_solver_name[]="SOPLEX";