MCPcopy Create free account

hub / github.com/OlittleRer/Code / functions

Functions71 in github.com/OlittleRer/Code

↓ 7 callersMethodget_route_distance
Description: function to calculate total distance of a route. evaluate function. parameters: route : list return : total d
2020-11/2020-11-13-TabuSearch/tabu_tsp.py:17
↓ 7 callersMethodoneD_Matrix_Multiplication
(double[] originD1, double[] originD2)
2020-12/2020-12-2_simplex method_java/src/simplex_method/MatrixOperation.java:231
↓ 5 callersMethodget_Matrix_Col
(double [][] origin, int r)
2020-12/2020-12-2_simplex method_java/src/simplex_method/MatrixOperation.java:217
↓ 3 callersMethodget_euclidean_distance_matrix
Creates callback to return distance between locations.
2020-11/2020-11-13-TabuSearch/GetData.py:28
↓ 3 callersMethodmatrix_Det
(double[][] origin)
2020-12/2020-12-2_simplex method_java/src/simplex_method/MatrixOperation.java:91
↓ 3 callersMethodmatrix_Inverse
(double[][] origin)
2020-12/2020-12-2_simplex method_java/src/simplex_method/MatrixOperation.java:11
↓ 3 callersMethodmatrix_Multiplication
(double[][] origin1, double[][] origin2)
2020-12/2020-12-2_simplex method_java/src/simplex_method/MatrixOperation.java:146
↓ 2 callersMethodgenerate_locations
generate number of locations randomly in a block unit default TSP : num_vehicles=1,depot=0
2020-11/2020-11-13-TabuSearch/GetData.py:14
↓ 2 callersMethodget_Matrix_Row
(double [][] origin, int r)
2020-12/2020-12-2_simplex method_java/src/simplex_method/MatrixOperation.java:203
↓ 2 callersMethodget_Minus_Min
(double[] origin)
2020-12/2020-12-2_simplex method_java/src/simplex_method/AlgorithmProcess.java:333
↓ 2 callersMethodisSource
()
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/transportation_node.java:21
↓ 2 callersMethodmatrix_Minor
(double[][] origin,int[] ser)
2020-12/2020-12-2_simplex method_java/src/simplex_method/MatrixOperation.java:56
↓ 2 callersMethodmatrix_Transposed
(double[][] origin)
2020-12/2020-12-2_simplex method_java/src/simplex_method/MatrixOperation.java:125
↓ 2 callersMethodplot_route
function to plot locations and route
2020-11/2020-11-13-TabuSearch/GetData.py:86
↓ 1 callersMethodCreatConstraints
This method is to add constraints @throws IloException
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/model_transportation.java:65
↓ 1 callersMethodCreatDecisionVariab
This method is to create decision variables @throws IloException
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/model_transportation.java:46
↓ 1 callersMethodCreatObjFunc
This method is to create objective function @throws IloException
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/model_transportation.java:58
↓ 1 callersFunctionDijkstra
(Graph, org, des)
2020-12/2020-12-8_Dijkstra/Dijkstra_solomon.py:154
↓ 1 callersMethodSolve
This method is to solve model @return values of objective function and decision variables @throws IloException
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/model_transportation.java:86
↓ 1 callersMethodbulidModel
This method is to bulidModel @param transportation_problem's data @return transportation_problem's model @throws IloException
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/model_transportation.java:28
↓ 1 callersFunctioncomputeDegree
(graph)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_subtour_elimination_callback.py:162
↓ 1 callersMethodexchange
function to Swap positions of two elements in an arr Args: int,int,list s1 : target 1 s2 : target 2
2020-11/2020-11-13-TabuSearch/tabu_tsp.py:31
↓ 1 callersFunctionfindEdges
(graph)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_subtour_elimination_callback.py:173
↓ 1 callersMethodgenerate_initial_solution
function to get the initial solution,there two different way to generate route_init. Args: num : int
2020-11/2020-11-13-TabuSearch/tabu_tsp.py:46
↓ 1 callersFunctiongetRoute
input: x_value的矩阵 output:一条路径,[0, 4, 3, 7, 1, 2, 5, 8, 9, 6, 0],像这样
2020-12/2020-12-05 gurobi求解最短路/shortestpath.py:33
↓ 1 callersFunctiongetRoute
input: x_value�ľ��� output:һ��·����[0, 4, 3, 7, 1, 2, 5, 8, 9, 6, 0]��������
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_MTZ_formulation.py:89
↓ 1 callersMethodgetSolution
(self, data, model)
2020-11/2020-11-10_FSTSP/FSTSP.py:118
↓ 1 callersFunctiongetValue
(var_dict, nodeNum)
2020-12/2020-12-05 gurobi求解最短路/shortestpath.py:23
↓ 1 callersFunctiongetValue
(var_dict, nodeNum)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_MTZ_formulation.py:80
↓ 1 callersFunctiongetValue
(var_dict, nodeNum)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_subtour_elimination_callback.py:73
↓ 1 callersMethodget_Positive_Min
(double[] origin)
2020-12/2020-12-2_simplex method_java/src/simplex_method/AlgorithmProcess.java:351
↓ 1 callersMethodget_Re_Minus_Min
(double[] origin,int[] index)
2020-12/2020-12-2_simplex method_java/src/simplex_method/AlgorithmProcess.java:408
↓ 1 callersMethodget_Re_Positive_Min
(double[] origin,int[] index)
2020-12/2020-12-2_simplex method_java/src/simplex_method/AlgorithmProcess.java:384
↓ 1 callersMethodjud_If_Endless
(double[] enter, double[] exit)
2020-12/2020-12-2_simplex method_java/src/simplex_method/AlgorithmProcess.java:450
↓ 1 callersMethodjud_If_Inf
(double[] enter)
2020-12/2020-12-2_simplex method_java/src/simplex_method/AlgorithmProcess.java:426
↓ 1 callersMethodplot_nodes
Description: function to plot
2020-12/2020-12-8_Dijkstra/Dijkstra_solomon.py:74
↓ 1 callersMethodplot_nodes
function to plot locations
2020-11/2020-11-13-TabuSearch/GetData.py:76
↓ 1 callersMethodplot_route
(self, route, color='k')
2020-12/2020-12-8_Dijkstra/Dijkstra_solomon.py:88
↓ 1 callersMethodpow
(int x, int y)
2020-12/2020-12-2_simplex method_java/src/simplex_method/MatrixOperation.java:249
↓ 1 callersFunctionprintData
(disMatrix)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_MTZ_formulation.py:62
↓ 1 callersFunctionprintData
(disMatrix)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_subtour_elimination_callback.py:55
↓ 1 callersFunctionprintData
(data, customerNum)
2020-11/2020-11-29:Optimization_Teach you to use Python to call Gurobi to solve VRPTW/VRPTW.py:63
↓ 1 callersFunctionprintData
(data, customerNum)
2020-11/2020-11-10_FSTSP/FSTSP.py:77
↓ 1 callersFunctionreadData
(path, nodeNum)
2020-12/2020-12-8_Dijkstra/Dijkstra_solomon.py:113
↓ 1 callersFunctionreadData
(path, nodeNum)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_MTZ_formulation.py:30
↓ 1 callersFunctionreadData
(path, nodeNum)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_subtour_elimination_callback.py:23
↓ 1 callersFunctionreadData
(data, path, customerNum)
2020-11/2020-11-29:Optimization_Teach you to use Python to call Gurobi to solve VRPTW/VRPTW.py:17
↓ 1 callersFunctionreadData
(data, path, customerNum)
2020-11/2020-11-10_FSTSP/FSTSP.py:26
↓ 1 callersMethodread_data
function to read solomom data from .txt files, notice that it must be solomon dataset INPUT @ data : class Data
2020-12/2020-12-8_Dijkstra/Dijkstra_solomon.py:35
↓ 1 callersMethodread_solomon
Description: load solomon dataset
2020-11/2020-11-13-TabuSearch/GetData.py:44
↓ 1 callersMethodreadtransportation_node
(String path)
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/Readfile.java:23
↓ 1 callersFunctionsubtour
(graph)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_subtour_elimination_callback.py:185
↓ 1 callersMethodtabu_search
tabu search
2020-11/2020-11-13-TabuSearch/tabu_tsp.py:75
↓ 1 callersMethodtransportation_relation
(String path)
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/Readfile.java:41
MethodReadfile
(String path1,String path2)
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/Readfile.java:17
Method__init__
(self)
2020-12/2020-12-8_Dijkstra/Dijkstra_solomon.py:22
Method__init__
(self)
2020-11/2020-11-13-TabuSearch/GetData.py:22
Method__init__
(self)
2020-11/2020-11-13-TabuSearch/GetData.py:65
Method__init__
parameters definition
2020-11/2020-11-13-TabuSearch/tabu_tsp.py:10
FunctiongetRoute
(x_value)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_subtour_elimination_callback.py:82
Methodget_Ser
(int[] seq)
2020-12/2020-12-2_simplex method_java/src/simplex_method/MatrixOperation.java:256
Methodmain
(String[] args)
2020-12/2020-12-2_simplex method_java/src/simplex_method/AlgorithmProcess.java:14
Methodmain
(String[] args)
2020-12/2020-12-2_simplex method_java/src/com/company/Main.java:5
Methodmain
(String[] args)
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/Main.java:8
FunctionprintData
(disMatrix)
2020-12/2020-12-8_Dijkstra/Dijkstra_solomon.py:141
FunctionreportMIP
(model, Routes)
2020-12/2020-12-05 gurobi求解最短路/shortestpath.py:13
FunctionreportMIP
(model, Routes)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_MTZ_formulation.py:71
FunctionreportMIP
(model, Routes)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_subtour_elimination_callback.py:64
Functionsubtourelim
(model, where)
2020-11/2020-11-16-TSP_subtour_elimination_callback/TSP_subtour_elimination_callback.py:112
Methodtransportation_node
(String NodeName,int quantity,int isSource,int id)
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/transportation_node.java:14
Methodtransportation_relation
(int[] distance)
2020-11/2020-11-23:Java calls cplex to solve transportation problems/transportation_problem/src/transportation_problem/transportation_relation.java:11