Skip to main content
1 vote
1 answer
122 views

I coded a Genetic Algorithm in Python using the DEAP library to solve a modified TSP problem, where the evaluation function is: def evaluate(self, individual: list[int]) -> float: ...
lovethefrogs's user avatar
1 vote
0 answers
43 views

I’m currently solving on the optimizing route in Capacitated Vehicle Routing Problem where initially with 125 (orignal data), the Nearest Neighbor Approach provided optimal solution of 23.51km. ...
user27818224's user avatar
0 votes
1 answer
100 views

I have a "small-scale" TSP problem where exact solution can be trivially computed as follows. I am trying to get this to work by spitting out "all source" TSP paths. I don't have ...
Gopala's user avatar
  • 10.6k
1 vote
1 answer
220 views

I am working on a simple version of the VRP. The problem is very similar to the simplest example of the VRP found on the Google OR-Tools page; the only difference is that while in the example the ...
Andrea Nucci's user avatar
1 vote
1 answer
93 views

I’m working on a rather simple version of the VRP. To the example provided on the OR-Tools website, I’ve added just one constraint. Specifically, there are 3 vehicles: A, B, and C, and 16 locations. ...
Andrea Nucci's user avatar
0 votes
1 answer
130 views

import random as r class Node: def __init__(self): self.out = [] self.is_on_path = False self.path_out = None self.is_source = True self.label = 0 ...
Yousufakhan's user avatar
-1 votes
1 answer
73 views

I have a use case where I want to assign a salesperson to a list of appointments. Now, these salespeople have to travel from one point to another to reach the appointment location. I am using ...
Vinod Chaudhari's user avatar
0 votes
0 answers
203 views

We are attempting to integrate the Concorde TSP solver in our Windows x64 C++ Visual Studio project. We have tried for two days now. Without luck. We don't understand how to do it, or if it is even ...
Smile's user avatar
  • 33
1 vote
1 answer
102 views

Is it possible to solve a linear problem using the pulp library to create decision variables and write fitness functions and penalties using the Pypi genetic algorithm library? I have done this, but ...
sina's user avatar
  • 11
0 votes
1 answer
125 views

I am a student starting with the basics of optimization. Basically when I run my TSP model in MiniZinc (IDE 2.8.5, Gecode 6.3.0), I got two "optimal" paths, but it should be only one, right? ...
Marcus J S Pereira's user avatar
0 votes
1 answer
150 views

Using A star algorithm, it is easy to calculate the shortest path from the source point to target point. What if we add the constraint of necessary points? How to solve it ? necessary points is a set ...
Hee's user avatar
  • 9
1 vote
1 answer
90 views

I have written a code which generates 10 random graphs and solve the traveling salesman problem using NetworkX. I am getting KeyError: 1. Following is my code. import networkx as nx import matplotlib....
Omar Shehab's user avatar
  • 1,144
0 votes
0 answers
84 views

How could I gather data for an experiment solving the traveling salesman problem by comparing ant colony optimization to genetic algorithms in terms of efficiency? Are there any recommended tools? My ...
Zahra Zams's user avatar
0 votes
1 answer
277 views

I'm trying to implement a particular TSP (VRP with only one vehicle). I've used the standard distance matrix provided in the examples of the VRP on Google OR-Tools page (which has a total of 16 ...
Andrea Nucci's user avatar
0 votes
0 answers
53 views

I'm trying to implement A* search algorithm to solve TSP problem. Here's the code I've written so far: import heapq #def kruskal_mst(graph):... def mst_heuristic(graph, current_city, unvisited_cities):...
artinasd's user avatar

15 30 50 per page
1
2 3 4 5
50