MCPcopy Create free account

hub / github.com/dhadka/TSPLIB4J / functions

Functions163 in github.com/dhadka/TSPLIB4J

↓ 98 callersMethodadd
Adds the specified node to this problem instance. If a node with the same identifier already exists, the previous node will be replaced. @param node
src/org/moeaframework/problem/tsplib/NodeCoordinates.java:111
↓ 33 callersMethodget
Returns the identifier of the node visited at the specified index. Tours are cyclic, so specifying an index {@code < 0} or {@code >= size()} is cycled
src/org/moeaframework/problem/tsplib/Tour.java:92
↓ 27 callersMethodequals
(Object obj)
src/org/moeaframework/problem/tsplib/Node.java:92
↓ 18 callersMethodsize
The number of nodes visited in this tour. @return the number of nodes visited in this tour
src/org/moeaframework/problem/tsplib/Tour.java:80
↓ 10 callersMethodcreateTour
Constructs a tour from the specified array. The values in the array should start at {@code 1}. @param entries the nodes visited in the tour @return
src/org/moeaframework/problem/tsplib/Tour.java:356
↓ 9 callersMethodcreateCanonicalTour
Returns the canonical tour with the given length. The canonical tour visits the nodes in order, i.e., {@code [1, 2, 3, ..., length]}. @param length
src/org/moeaframework/problem/tsplib/Tour.java:326
↓ 9 callersMethodreadNextLine
Reads the next line from the reader, parses out one or more weights, and appends the weights to the given queue. @param reader the reader containing
src/org/moeaframework/problem/tsplib/EdgeWeightMatrix.java:75
↓ 8 callersMethodget
Returns the node with the specified identifier. @param id the identifier of the node to return @return the node with the specified identifier
src/org/moeaframework/problem/tsplib/NodeCoordinates.java:121
↓ 8 callersMethodisEquivalent
Returns {@code true} if this tour is equivalent to the specified tour; {@code false} otherwise. Two tours are considered equivalent if they visit the
src/org/moeaframework/problem/tsplib/Tour.java:266
↓ 7 callersMethoddistance
Calculates and returns the total distance of this tour. The total distance includes the distance from the last node back to the first node in the tou
src/org/moeaframework/problem/tsplib/Tour.java:167
↓ 7 callersMethodgetTours
Returns the solutions to this problem instance. @return the solutions to this problem instance
src/org/moeaframework/problem/tsplib/TSPInstance.java:417
↓ 6 callersMethodaddTour
Adds a solution to this TSPLIB problem instance. This method does not verify that the solution has all required edges; the caller must ensure this co
src/org/moeaframework/problem/tsplib/TSPInstance.java:259
↓ 6 callersMethodgetDataType
Returns the type of this problem instance. @return the type of this problem instance
src/org/moeaframework/problem/tsplib/TSPInstance.java:298
↓ 6 callersMethodtoArray
Returns this tour as an array of integers. @return this tour as an array of integers
src/org/moeaframework/problem/tsplib/Tour.java:136
↓ 6 callersMethodtoGeographical
Converts a latitude or longitude value in the form {@code DDD.MM} to its geographical angle in radians. @param x the latitude or longitude value in t
src/org/moeaframework/problem/tsplib/GeographicalDistance.java:52
↓ 5 callersMethodgetDimension
Returns the number of nodes defined by this problem instance. @return the number of nodes defined by this problem instance
src/org/moeaframework/problem/tsplib/TSPInstance.java:316
↓ 5 callersMethodgetDistanceBetween
Returns the distance between the two specified nodes. @param id1 the identifier of the first node @param id2 the identifier of the second node @retur
src/org/moeaframework/problem/tsplib/DistanceTable.java:67
↓ 5 callersMethodreverse
Reverses the order in which the nodes are visited between the two specified indices. The first index defines the start of the reverse operation; the
src/org/moeaframework/problem/tsplib/Tour.java:244
↓ 4 callersMethoddisplayTour
Adds a tour to this graphical display. The tour will be displayed using the default color. @param tour the tour to display
src/org/moeaframework/problem/tsplib/TSPPanel.java:121
↓ 4 callersMethodequals
(Object obj)
src/org/moeaframework/problem/tsplib/Edge.java:118
↓ 4 callersMethodgetDistanceTable
Returns the distance table that defines the nodes, edges, and weights for this problem instance. @return the distance table that defines the nodes, e
src/org/moeaframework/problem/tsplib/TSPInstance.java:386
↓ 4 callersMethodgetId
Returns the identifier of this node. @return the identifier of this node
src/org/moeaframework/problem/tsplib/Node.java:57
↓ 4 callersMethodgetOppositeEndpoint
Returns the opposite endpoint of this edge. @param id the identifier of the one endpoint @return the opposite endpoint of this edge @throws IllegalAr
src/org/moeaframework/problem/tsplib/Edge.java:88
↓ 4 callersMethodhasEndpoint
Returns {@code true} if either endpoint of this edge is the specified node; {@code false} otherwise. @param id the identifier of the node @return {@c
src/org/moeaframework/problem/tsplib/Edge.java:76
↓ 4 callersMethodhashCode
()
src/org/moeaframework/problem/tsplib/Edge.java:99
↓ 4 callersMethodtoDisplayCoordinates
Converts the node coordinates into display coordinates on the screen. If this problem uses geographical weights, then the latitude/longitude coordinat
src/org/moeaframework/problem/tsplib/TSPPanel.java:231
↓ 3 callersMethodapply
Applies the 2-opt heuristic to the specified tour. @param tour the tour that is modified by the 2-opt heuristic
src/org/moeaframework/problem/tsplib/TSP2OptHeuristic.java:52
↓ 3 callersMethodgetLength
Returns the length (dimension) of the coordinates. @return the length (dimension) of the coordinates
src/org/moeaframework/problem/tsplib/NodeCoordType.java:62
↓ 3 callersMethodgetPosition
Returns the position of this node. @return the position of this node
src/org/moeaframework/problem/tsplib/Node.java:66
↓ 3 callersMethodtoTour
Converts a MOEA Framework solution to a {@link Tour}. @param solution the MOEA Framework solution @return the tour defined by the solution
src/org/moeaframework/problem/tsplib/TSPExample.java:64
↓ 2 callersMethodaddEdge
Adds an edge to this graph. @param id1 the identifier of the first node @param id2 the identifier of the second node @throws IllegalArgumentException
src/org/moeaframework/problem/tsplib/EdgeData.java:147
↓ 2 callersMethodclear
Removes all nodes from this problem instance.
src/org/moeaframework/problem/tsplib/NodeCoordinates.java:138
↓ 2 callersMethodfromArray
Sets this tour equal to the specified array. @param array the array of integers defining a tour
src/org/moeaframework/problem/tsplib/Tour.java:151
↓ 2 callersMethodgetDisplayDataType
Returns the way graphical displays of the data should be generated. @return the way graphical displays of the data should be generated
src/org/moeaframework/problem/tsplib/TSPInstance.java:375
↓ 2 callersMethodgetName
Returns the name of this problem instance. @return the name of this problem instance
src/org/moeaframework/problem/tsplib/TSPInstance.java:289
↓ 2 callersMethodgetNodeCoordType
()
src/org/moeaframework/problem/tsplib/EdgeWeightType.java:117
↓ 2 callersMethodisNeighbor
Returns {@code true} if the specified nodes are neighbors; {@code false} otherwise. @param id1 the identifier of the first node @param id2 the identi
src/org/moeaframework/problem/tsplib/DistanceTable.java:87
↓ 2 callersMethodload
Loads a problem instance from the specified TSPLIB file. @param file the TSPLIB file defining the problem @throws IOException if an I/O error occurre
src/org/moeaframework/problem/tsplib/TSPInstance.java:143
↓ 2 callersMethodreadNextLine
Reads the next line of adjacent edges, adding the parsed values to the queue. @param reader the reader containing the adjacent edge data @param entri
src/org/moeaframework/problem/tsplib/EdgeData.java:74
↓ 2 callersMethodsave
Saves the string to a temporary file. @param string the contents of the temporary file @return the temporary file containing the specified string con
test/org/moeaframework/problem/tsplib/TSP2OptHeuristicTest.java:44
↓ 2 callersMethodset
Sets the identifier of the node visited at the specified index. Tours are cyclic, so setting an index {@code < 0} or {@code >= size()} is cycled thro
src/org/moeaframework/problem/tsplib/Tour.java:108
↓ 2 callersMethodsize
Returns the number of nodes that this instance contains. @return the number of nodes that this instance contains
src/org/moeaframework/problem/tsplib/NodeCoordinates.java:147
↓ 1 callersMethodclearTours
Removes all tours shown in this display.
src/org/moeaframework/problem/tsplib/TSPPanel.java:168
↓ 1 callersMethodcontainsFixedEdges
Returns {@code true} if this tour contains all the fixed edges required by the TSPLIB problem instances; {@code false} otherwise. @param problem the
src/org/moeaframework/problem/tsplib/Tour.java:186
↓ 1 callersMethodcreateRandomTour
Returns a random tour with the given length. A random tour will visit every node exactly once. @param length the number of nodes in the resulting to
src/org/moeaframework/problem/tsplib/Tour.java:343
↓ 1 callersMethodfromTour
Saves a {@link Tour} into a MOEA Framework solution. @param solution the MOEA Framework solution @param tour the tour
src/org/moeaframework/problem/tsplib/TSPExample.java:82
↓ 1 callersMethodgetDisplayData
Returns the data used to graphically display the nodes; or {@code null} if the display data is not explicitly defined. @return the data used to graph
src/org/moeaframework/problem/tsplib/TSPInstance.java:397
↓ 1 callersMethodgetDistanceFunction
()
src/org/moeaframework/problem/tsplib/EdgeWeightType.java:94
↓ 1 callersMethodgetEdgeWeightType
Returns the way edge weights are specified. @return the way edge weights are specified
src/org/moeaframework/problem/tsplib/TSPInstance.java:335
↓ 1 callersMethodgetEdges
Returns the edges contained in this graph. Changes to the returned list will be reflected in this graph. @return the edges contained in this graph
src/org/moeaframework/problem/tsplib/EdgeData.java:167
↓ 1 callersMethodgetFixedEdges
Returns the edges that are required in each solution to this problem instance. @return the edges that are required in each solution to this problem i
src/org/moeaframework/problem/tsplib/TSPInstance.java:408
↓ 1 callersMethodgetNeighborsOf
Returns the identifiers of all neighbors of the specified node. A neighbor must have a direct edge between itself and the specified node. @param id
src/org/moeaframework/problem/tsplib/DistanceTable.java:56
↓ 1 callersMethodgetPaint
Returns the paint/color used when rendering the tour. @return the paint/color used when rendering the tour
src/org/moeaframework/problem/tsplib/TSPPanel.java:407
↓ 1 callersMethodgetStroke
Returns the line stroke used when rendering the tour. @return the line stroke used when rendering the tour
src/org/moeaframework/problem/tsplib/TSPPanel.java:416
↓ 1 callersMethodisHamiltonianCycle
Returns {@code true} if this tour is a Hamiltonian cycle; {@code false} otherwise. A Hamiltonian cycle is a path through a graph that visits every no
src/org/moeaframework/problem/tsplib/Tour.java:205
↓ 1 callersMethodlistNodes
Returns the identifiers of all nodes in this distance table. @return the identifiers of all nodes in this distance table
src/org/moeaframework/problem/tsplib/DistanceTable.java:44
↓ 1 callersMethodload
Loads the contents of this tour from the given reader. @param reader the reader that defines this tour @throws IOException if an I/O error occurred w
src/org/moeaframework/problem/tsplib/Tour.java:57
↓ 1 callersMethodloadDemands
Loads the demands from the specified reader. @param reader the reader containing the demands @throws IOException if an I/O error occurred while readi
src/org/moeaframework/problem/tsplib/VehicleRoutingTable.java:70
↓ 1 callersMethodloadDepots
Loads the depot list from the given reader. @param reader the reader that defines the depot nodes @throws IOException if an I/O error occurred while
src/org/moeaframework/problem/tsplib/VehicleRoutingTable.java:88
↓ 1 callersMethodremove
Removes the node with the specified identifier from this problem instance. @param id the identifier of the node to remove
src/org/moeaframework/problem/tsplib/NodeCoordinates.java:131
↓ 1 callersMethodsetAutoRepaint
Set to {@code true} if this graphical display should automatically repaint when the displayed tours are changed; {@code false} otherwise. When {@code
src/org/moeaframework/problem/tsplib/TSPPanel.java:111
↓ 1 callersMethodtoEdges
Returns the edges belonging to this tour. @return the edges belonging to this tour
src/org/moeaframework/problem/tsplib/Tour.java:121
↓ 1 callersMethodtoString
()
src/org/moeaframework/problem/tsplib/Node.java:70
MethodCeilingDistance
Constructs a new Euclidean distance function with distances rounded up to the nearest integer.
src/org/moeaframework/problem/tsplib/CeilingDistance.java:33
MethodDistanceFunction
Constructs a new distance function.
src/org/moeaframework/problem/tsplib/DistanceFunction.java:33
MethodDistanceTable
Constructs a new distance table instance.
src/org/moeaframework/problem/tsplib/DistanceTable.java:35
MethodEdge
Constructs an edge between two nodes. @param id1 the identifier of the first node @param id2 the identifier of the second node
src/org/moeaframework/problem/tsplib/Edge.java:44
MethodEdgeData
Constructs a new, empty graph with no edges. @param size the number of nodes represented in this graph @param format the format of the edge data sect
src/org/moeaframework/problem/tsplib/EdgeData.java:57
MethodEdgeWeightMatrix
Constructs a new, empty edge weight matrix. @param size the number of nodes represented in this edge weight matrix @param format the format of this e
src/org/moeaframework/problem/tsplib/EdgeWeightMatrix.java:58
MethodEuclideanDistance
Constructs a new Euclidean distance function.
src/org/moeaframework/problem/tsplib/EuclideanDistance.java:31
MethodGeographicalDistance
Constructs a new geographical distance function.
src/org/moeaframework/problem/tsplib/GeographicalDistance.java:41
MethodManhattanDistance
Constructs a new Manhattan distance function.
src/org/moeaframework/problem/tsplib/ManhattanDistance.java:31
MethodMaximumDistance
Constructs a new maximum distance function.
src/org/moeaframework/problem/tsplib/MaximumDistance.java:31
MethodNode
Constructs a new node with the specified identifier and position. @param id the identifier of this node @param position the position of this node
src/org/moeaframework/problem/tsplib/Node.java:46
MethodNodeCoordType
Constructs a new node coordinate enumeration. @param length the length (dimension) of the coordinates
src/org/moeaframework/problem/tsplib/NodeCoordType.java:53
MethodNodeCoordinates
Constructs a new, empty node coordinates instance. @param size the number of nodes to load into this problem instance @param edgeWeightType the edge
src/org/moeaframework/problem/tsplib/NodeCoordinates.java:61
MethodPseudoEuclideanDistance
Constructs a new pseudo-Euclidean distance function.
src/org/moeaframework/problem/tsplib/PseudoEuclideanDistance.java:32
MethodTSP2OptHeuristic
Constructs a new 2-opt heuristic for the specified traveling salesman problem instance. @param instance the traveling salesman problem instance
src/org/moeaframework/problem/tsplib/TSP2OptHeuristic.java:42
MethodTSPInstance
Constructs a new, empty TSPLIB problem instance.
src/org/moeaframework/problem/tsplib/TSPInstance.java:118
MethodTSPPanel
Constructs a new panel for displaying a TSPLIB problem instance. @param problem the TSPLIB problem instance
src/org/moeaframework/problem/tsplib/TSPPanel.java:82
MethodTSPProblem
Constructs a new optimization problem for the given TSP problem instance. @param instance the TSP problem instance
src/org/moeaframework/problem/tsplib/TSPExample.java:116
MethodTour
Constructs a new, empty tour.
src/org/moeaframework/problem/tsplib/Tour.java:45
MethodTourDisplaySetting
Constructs a new, default tour display setting.
src/org/moeaframework/problem/tsplib/TSPPanel.java:376
MethodVehicleRoutingTable
Constructs a new, empty vehicle routing table. @param size the number of nodes the the problem instance
src/org/moeaframework/problem/tsplib/VehicleRoutingTable.java:56
Methoddistance
{@inheritDoc} @throws IllegalArgumentException if the nodes are not two dimensional
src/org/moeaframework/problem/tsplib/GeographicalDistance.java:63
Methoddistance
(int length, double[] position1, double[] position2)
src/org/moeaframework/problem/tsplib/ManhattanDistance.java:35
Methoddistance
{@inheritDoc} @throws IllegalArgumentException if the nodes are not two dimensional
src/org/moeaframework/problem/tsplib/PseudoEuclideanDistance.java:41
Methoddistance
Computes and returns the distance (or edge weight) between the two specified nodes. @param node1 the first node @param node2 the second node @return
src/org/moeaframework/problem/tsplib/DistanceFunction.java:46
Methoddistance
(int length, double[] position1, double[] position2)
src/org/moeaframework/problem/tsplib/EuclideanDistance.java:35
Methoddistance
(int length, double[] position1, double[] position2)
src/org/moeaframework/problem/tsplib/MaximumDistance.java:35
Methoddistance
(int length, double[] position1, double[] position2)
src/org/moeaframework/problem/tsplib/CeilingDistance.java:37
Methodevaluate
(Solution solution)
src/org/moeaframework/problem/tsplib/TSPExample.java:123
MethodfreeInstances
()
test/org/moeaframework/problem/tsplib/TestTSP.java:156
MethodfreeInstances
()
test/org/moeaframework/problem/tsplib/TestSOP.java:88
MethodfreeInstances
()
test/org/moeaframework/problem/tsplib/TestATSP.java:65
MethodfreeInstances
()
test/org/moeaframework/problem/tsplib/TestHCP.java:54
MethodfreeInstances
()
test/org/moeaframework/problem/tsplib/TestVRP.java:62
MethodgetCapacity
Returns the truck capacity in CVRP problem instances. The return value is undefined if the data type is not {@code CVRP}. @return the truck capacity
src/org/moeaframework/problem/tsplib/TSPInstance.java:326
MethodgetComment
Returns any comments about this problem instance. @return any comments about this problem instance
src/org/moeaframework/problem/tsplib/TSPInstance.java:307
MethodgetDemand
Returns the demand at the specified node. @param id the identifier of the node @return the demand at the specified node @throws IllegalArgumentExcept
src/org/moeaframework/problem/tsplib/VehicleRoutingTable.java:114
next →1–100 of 163, ranked by callers