PGROUTING
3.2
initial_solution.h
Go to the documentation of this file.
1
/*PGR-GNU*****************************************************************
2
3
FILE: initial_solution.h
4
5
Copyright (c) 2015 pgRouting developers
6
Mail:
[email protected]
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_VRP_INITIAL_SOLUTION_H_
29
#define INCLUDE_VRP_INITIAL_SOLUTION_H_
30
#pragma once
31
32
#include <set>
33
#include <deque>
34
#include "
vrp/pd_orders.h
"
35
#include "
vrp/solution.h
"
36
#include "
vrp/initials_code.h
"
37
#include "
cpp_common/identifiers.hpp
"
38
39
namespace
pgrouting
{
40
namespace
vrp {
41
42
43
class
Pgr_pickDeliver;
44
45
46
class
Initial_solution
:
public
Solution
{
47
public
:
48
Initial_solution
(
49
Initials_code
kind,
50
size_t
);
51
52
void
invariant
()
const
;
53
54
private
:
55
/*
56
* one truck per order
57
*/
58
void
one_truck_all_orders
();
59
60
void
do_while_foo
(
int
kind);
61
62
63
Identifiers<size_t>
m_all_orders
;
64
Identifiers<size_t>
m_unassigned
;
65
Identifiers<size_t>
m_assigned
;
66
};
67
68
}
// namespace vrp
69
}
// namespace pgrouting
70
71
#endif // INCLUDE_VRP_INITIAL_SOLUTION_H_
pgrouting::vrp::Solution
Definition:
solution.h:44
pgrouting::vrp::Initial_solution::invariant
void invariant() const
Definition:
initial_solution.cpp:39
pgrouting::vrp::Initial_solution::do_while_foo
void do_while_foo(int kind)
Definition:
initial_solution.cpp:78
initials_code.h
pd_orders.h
pgrouting::vrp::Initial_solution::m_unassigned
Identifiers< size_t > m_unassigned
Definition:
initial_solution.h:64
pgrouting::vrp::Initial_solution::m_assigned
Identifiers< size_t > m_assigned
Definition:
initial_solution.h:65
pgrouting::vrp::Initial_solution
Definition:
initial_solution.h:46
pgrouting::vrp::Initial_solution::m_all_orders
Identifiers< size_t > m_all_orders
Definition:
initial_solution.h:63
pgrouting::vrp::Initial_solution::Initial_solution
Initial_solution(Initials_code kind, size_t)
Definition:
initial_solution.cpp:46
solution.h
pgrouting::vrp::Initials_code
Initials_code
Different kinds to insert an order into the vehicle.
Definition:
initials_code.h:36
pgrouting
Book keeping class for swapping orders between vehicles.
Definition:
pgr_alphaShape.cpp:56
identifiers.hpp
Identifiers< size_t >
pgrouting::vrp::Initial_solution::one_truck_all_orders
void one_truck_all_orders()
Definition:
initial_solution.cpp:121
include
vrp
initial_solution.h
Generated on Tue May 25 2021 15:09:47 for PGROUTING by
1.8.17