vrpRouting  0.3
initialsol/simple.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_SIMPLE_H_
29 #define INCLUDE_INITIALSOL_SIMPLE_H_
30 #pragma once
31 
33 #include "problem/solution.h"
35 
36 namespace vrprouting {
37 namespace problem {
38 class Vehicle_PickDeliver;
39 class PickDeliver;
40 } // namespace problem
41 
42 namespace initialsol {
43 namespace simple {
44 
46  public:
47  Initial_solution() = delete;
49 
50  void invariant() const;
51 
52  private:
53  /*
54  * one truck per order
55  */
56  void one_truck_all_orders();
57 
58  void do_while_foo(int kind);
59 
60  void do_while_feasible(
62  Initials_code kind,
65 
69 };
70 
71 } // namespace simple
72 } // namespace initialsol
73 } // namespace vrprouting
74 
75 #endif // INCLUDE_INITIALSOL_SIMPLE_H_
vrprouting::problem::Solution
Definition: solution.h:50
vrprouting::initialsol::simple::Initials_code
Initials_code
Different kinds to insert an order into the vehicle.
Definition: initialsol/initials_code.h:37
initials_code.h
vrprouting::problem::PickDeliver
the pick deliver problem
Definition: pickDeliver.h:50
vrprouting::initialsol::simple::Initial_solution::unassigned
Identifiers< size_t > unassigned
Definition: initialsol/simple.h:67
vrprouting::initialsol::simple::Initial_solution::invariant
void invariant() const
Definition: initialsol/simple.cpp:40
vrprouting::initialsol::simple::Initial_solution::do_while_foo
void do_while_foo(int kind)
Definition: initialsol/simple.cpp:76
vrprouting::initialsol::simple::Initial_solution::Initial_solution
Initial_solution()=delete
vrprouting::problem::Vehicle_pickDeliver
Definition: vehicle_pickDeliver.h:46
vrprouting::initialsol::simple::Initial_solution
Definition: initialsol/simple.h:45
vrprouting::initialsol::simple::Initial_solution::one_truck_all_orders
void one_truck_all_orders()
Definition: initialsol/simple.cpp:101
vrprouting::initialsol::simple::Initial_solution::assigned
Identifiers< size_t > assigned
Definition: initialsol/simple.h:68
solution.h
vrprouting::initialsol::simple::Initial_solution::do_while_feasible
void do_while_feasible(problem::Vehicle_pickDeliver &truck, Initials_code kind, Identifiers< size_t > &unassigned, Identifiers< size_t > &assigned)
Definition: initialsol/simple.cpp:120
identifiers.hpp
Identifiers< size_t >
vrprouting::initialsol::simple::Initial_solution::all_orders
Identifiers< size_t > all_orders
Definition: initialsol/simple.h:66
vrprouting
Definition: base_matrix.cpp:46