Comments (5)
Note that the entries of the cost values are integers in TSPLIB, OPLIB...
Make sure you are using the ATT
distance function, it is a bit different from the EUC_2D
distance function.
ATT
xd = x[i] - x[j];
yd = y[i] - y[j];
rij = sqrt( (xd*xd + yd*yd) / 10.0 );
tij = dtrunc( rij );
if ( tij < rij )
dij = tij + 1;
else
dij = tij;
EUC_2D
xd = x[i] - x[j];
yd = y[i] - y[j];
dij = (int) (sqrt( xd*xd + yd*yd) + 0.5);
from op-solver.
There must be something wrong when updating the best known solution.
The output says Visited nodes: 14
. However, the objective value is 13
.
- Total nodes: 48
- Visited nodes: 14
- Objetive value: 13.000000
- Cycle length: 2611.000000
- Cycle: 0 14 23 11 15 45 43 18 7 27 35 32 12 13
@ssinad thank you very much for reporting this issue!
from op-solver.
There must be something wrong when updating the best known solution.
The output says
Visited nodes: 14
. However, the objective value is13
.- Total nodes: 48 - Visited nodes: 14 - Objetive value: 13.000000 - Cycle length: 2611.000000 - Cycle: 0 14 23 11 15 45 43 18 7 27 35 32 12 13
@ssinad thank you very much for reporting this issue!
Oh! That's not the issue. In this dataset, node 1 has a reward of zero. What we found has 15 visited nodes.
from op-solver.
You are right, 1 has reward zero, let me check what is going on.
from op-solver.
The solution you provided is infeasible in that instance, it has length 2661.
CP solution:
- Total nodes: 48
- Visited nodes: 15
- Objetive value: 14.000000
- Cycle length: 2661.000000
- Cycle: 0 13 46 20 35 27 7 18 43 45 15 12 11 23 14
I will include an example of how to check the feasibility of a solution.
from op-solver.
Related Issues (9)
- Build the heuristic algorithm regardless of the external LP solver
- op-solver doesn't return
- could you send me the source code about the B&C code for "Solving the orienteering problem through branch-and-cut" HOT 1
- Getting error on Make HOT 7
- Program crashes when using "Full_matrix" edge weight type HOT 10
- Docker Image for the op-solver HOT 3
- Heuristic only build fails to link HOT 3
- Make error with exact algorithm HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from op-solver.