vrpRouting  0.3
initialsol/tabu.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 
3 FILE: initial_solution.h
4 
5 Copyright (c) 2015 pgRouting developers
7 
8 ------
9 
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14 
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19 
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 
24  ********************************************************************PGR-GNU*/
25 
28 #ifndef INCLUDE_INITIALSOL_TABU_H_
29 #define INCLUDE_INITIALSOL_TABU_H_
30 #pragma once
31 
32 #include "c_types/typedefs.h"
34 #include "problem/solution.h"
36 
37 namespace vrprouting {
38 namespace problem {
39 class PickDeliver;
40 }
41 
42 namespace initialsol {
43 namespace tabu {
44 
46  public:
48  Initial_solution() = delete;
49 
52 
53  private:
54  using Solution::vehicles;
55 
57  void invariant() const;
58 
61 
63  void process_unassigned();
64 
67 
70 
73 };
74 
75 } // namespace tabu
76 } // namespace initialsol
77 } // namespace vrprouting
78 
79 #endif // INCLUDE_INITIALSOL_TABU_H_
vrprouting::problem::Solution
Definition: solution.h:50
vrprouting::problem::PickDeliver
the pick deliver problem
Definition: pickDeliver.h:50
vrprouting::initialsol::tabu::Initial_solution
Definition: initialsol/tabu.h:45
vrprouting::initialsol::tabu::Initial_solution::m_assigned
Identifiers< size_t > m_assigned
set of assigned orders
Definition: initialsol/tabu.h:72
typedefs.h
vrprouting::initialsol::tabu::Initial_solution::m_unassigned
Identifiers< size_t > m_unassigned
set of unassigned orders
Definition: initialsol/tabu.h:69
TTimestamp
int64_t TTimestamp
Definition: typedefs.h:71
vehicle_pickDeliver.h
vrprouting::initialsol::tabu::Initial_solution::invariant
void invariant() const
class invariant about the orders that have been assigned
Definition: initialsol/tabu.cpp:50
vrprouting::initialsol::tabu::Initial_solution::process_unassigned
void process_unassigned()
Adds unassigned orders to phony vehicles.
Definition: initialsol/tabu.cpp:162
solution.h
vrprouting::initialsol::tabu::Initial_solution::Initial_solution
Initial_solution()=delete
Initial solution without information is not valid.
vrprouting::initialsol::tabu::Initial_solution::m_all_orders
Identifiers< size_t > m_all_orders
set of all orders
Definition: initialsol/tabu.h:66
vrprouting::initialsol::tabu::Initial_solution::process_given_solution_from_user
void process_given_solution_from_user(TTimestamp, bool)
processes the initial solution given by the user
Definition: initialsol/tabu.cpp:131
identifiers.hpp
Identifiers< size_t >
vrprouting
Definition: base_matrix.cpp:46