| |
- heuristicEll0StartSolution
- heuristicSolver
-
- heuristic1Solver
-
- heuristic1_1Solver
- heuristic1_2Solver
- heuristic1_3Solver(heuristic1Solver, heuristicx_3Solver)
- heuristic2Solver
-
- heuristic2_2Solver
- heuristic2_3Solver(heuristic2Solver, heuristicx_3Solver)
- heuristicx_3Solver
class heuristic1_3Solver(heuristic1Solver, heuristicx_3Solver) |
|
Implementation of heuristic 1.3 |
|
- Method resolution order:
- heuristic1_3Solver
- heuristic1Solver
- heuristicSolver
- heuristicx_3Solver
Methods defined here:
- __init__(self, N, variant=False)
- solve(self, timelimit=900)
- Compute heuristic 1.3. Start flow is given by bound feasible max-flow,
-1/0/1-weights are computed "exact" for every pair (s,t) in (S,T),
then the shortest path is computed heuristically.
Methods inherited from heuristic1Solver:
- computeStartSolution(self)
- Return an initial solution for N, feasible regarding bounds,
but not flow conservation, by computing the max-flow.
Methods inherited from heuristicx_3Solver:
- shortPathWithNegCycles(self, s, t=None)
- Return short path between s and t. This is essentially Dijkstra,
adapted to tolerate negative weights and thereby no longer yielding the
optimal solution.
|
class heuristic2_3Solver(heuristic2Solver, heuristicx_3Solver) |
|
Implementation of heuristic 2.3 |
|
- Method resolution order:
- heuristic2_3Solver
- heuristic2Solver
- heuristicSolver
- heuristicx_3Solver
Methods defined here:
- __init__(self, N, variant=False, timelimit=900)
- solve(self)
- Compute heuristic 2.3. Start flow is given by bound-feasible, heuristic
ell_0 INC, shortest path is computed with ternary weights for node with
largest excess, then shortest path is computed heuristically.
Methods inherited from heuristicx_3Solver:
- shortPathWithNegCycles(self, s, t=None)
- Return short path between s and t. This is essentially Dijkstra,
adapted to tolerate negative weights and thereby no longer yielding the
optimal solution.
|
class heuristicEll0StartSolution |
|
compute INC solution by iteratively satisfying node with smallest excess |
|
Methods defined here:
- __init__(self, N)
- solve(self, timelimit=300)
- Return bound-feasible solution with (heuristically) as much nodes
satisfied as possible.
|
class heuristicx_3Solver(heuristicSolver) |
|
base class for heuristics 1.3 and 2.3, compute shortest path with
forbidden pairs |
|
Methods defined here:
- __init__(self, variant)
- shortPathWithNegCycles(self, s, t=None)
- Return short path between s and t. This is essentially Dijkstra,
adapted to tolerate negative weights and thereby no longer yielding the
optimal solution.
- solve(self)
| |