Completed
Push — master ( cc2581...3d3c40 )
by Andrei
01:23
created

pyclustering.tsp.tsp_result.__init__()   A

Complexity

Conditions 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 6
rs 9.4285
1
"""!
2
3
@brief pyclustering module for travelling salesman problem algorithms.
4
5
@authors Andrei Novikov, Aleksey Kukushkin ([email protected])
6
@date 2014-2016
7
@copyright GNU Public License
8
9
@cond GNU_PUBLIC_LICENSE
10
    PyClustering 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 3 of the License, or
13
    (at your option) any later version.
14
    
15
    PyClustering 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, see <http://www.gnu.org/licenses/>.
22
@endcond
23
24
"""
25
26
27
class tsp_result:
28
    """!
29
    @brief Describes result of solving travelling salesman problem.
30
    
31
    @details It consists of information about sequence of visited objects and the shortest path length.
32
    
33
    """  
34
    
35
    def __init__(self):
36
        ## The shortest path for solving travelling salesman problem.
37
        self.shortest_length = 0;
38
        
39
        ## Sequence of objects that have been visited to obtain shortest path.
40
        self.object_sequence = [];