Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
88 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
0 votes
1 answer
91 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.5k
1 vote
1 answer
67 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
-1 votes
1 answer
63 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
1 vote
1 answer
90 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
137 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
0 votes
0 answers
73 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
0 answers
45 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
0 votes
0 answers
338 views

I am currently attempting to implement the Travelling Salesman Problem via the Ant Colony Optimisation Algorithm. I cannot say that I have a good grasp of the algorithm on an intuitive level, but ...
a9302c's user avatar
  • 241
0 votes
1 answer
178 views

I'm implementing the Christofides algorithm for solving the Traveling Salesman Problem and have reached the step where I need to find an Eulerian cycle in a multigraph. I'm unsure how to proceed when ...
J.Doe's user avatar
  • 27
1 vote
1 answer
262 views

I have a C code that solves the Traveling Salesman Problem using a greedy algorithm. However, the current implementation is sequential, and I'd like to parallelize it using OpenMP to achieve better ...
Chounima's user avatar
2 votes
0 answers
205 views

I have a mathematical/computational problem that I think some of you might be able to help me with. It is a planning/scheduling problem involving states, tasks, and resources. For simplicity, let's ...
user's user avatar
  • 21
1 vote
1 answer
345 views

We've studied TSP and now we're tasked to extend it for multiple salespersons. Below code using PULP with my added logic which unfortunately does not work. It does not correctly identify the correct ...
Sys's user avatar
  • 413
0 votes
0 answers
105 views

For over 3 days I'm trying to solve Shortest Superstring problem and I still can't figure out how can I create resulting string when I know in what order should I use given words and how these words ...
Szyszka947's user avatar
  • 1,048
0 votes
1 answer
138 views

I need to solve a variation of TSP where nodes represent neighborhoods. Neighborhoods can be central or non-central. Starting from a non-central neighborhood I need to find the shortest path that ...
julio meza's user avatar
0 votes
1 answer
287 views

I am solving a TSP with CP-SAT as shown in https://github.com/google/or-tools/blob/master/examples/python/tsp_sat.py, but i have some constraints that i am not able to formulate: I have some "...
BRaabe99's user avatar
0 votes
0 answers
46 views

I'm trying to optimize a road trip across the U.S. in an iJulia notebook. I'm currently having issues with subtours. Instead of creating one fluid trip, the solution jumps around from place to place. ...
Liamilus's user avatar
0 votes
1 answer
401 views

I am trying to solve the Linear Programming formulation of the Traveling Salesman Problem (TSP) using scipy.optimize.linprog in Python. This document clearly defines the problem and, though I ...
NEWO-o's user avatar
  • 1
1 vote
0 answers
236 views

Can anyone provide assistance to the problem I'm facing? I'm working on implementing a delivery system algorithm. I have attempted to solve it using a graph, where addresses are represented as nodes ...
IlayAsayag's user avatar
1 vote
1 answer
64 views

I need to solve Traveling Salesman Problem in Python using PuLP. import pulp import numpy as np import matplotlib.pyplot as plt n = 50 np.random.seed(42) x = 1.5*np.random.rand(n) y = np.random.rand(...
john347231's user avatar
1 vote
0 answers
82 views

I am trying to solve MVRP problem using Google OR-Tools where I have 1000 points and 30 fleets(Vehicles). This seems to take indefinite amount of time but when I am reducing the fleets(vehicles) to 1 ...
Varun Singh's user avatar
1 vote
0 answers
38 views

We are attempting to create a routing (TSP) algorithm that loops through a data structure that holds our vehicles and our trip information. It all starts with an ASYNC function called acquireData that ...
acc_it's user avatar
  • 11
0 votes
1 answer
215 views

I have less experience in R and I need help tidying my plot as it looks messy. Also, my project is to find the best minimal route from Seoul to every city and back to Seoul. It is almost like ...
zwen hms's user avatar
1 vote
0 answers
132 views

I'm currently studying TSP formulations using Pulp in Python. Originally, I was using three different point sets with 29, 38 and 194 cities, and the code solved them pretty well and even got the ...
Gabriel Sanches da Silva's user avatar
0 votes
1 answer
452 views

I'm using Christofides algorithm to calculate a solution for a Traveling Salesman Problem. The implementation is the one integrated in networkx library for Python. The algorithm accepts an undirected ...
Hendrik Wiese's user avatar

1
2 3 4 5
15