epid / acotsp Goto Github PK
View Code? Open in Web Editor NEWAnt Colony Optimization for the Travelling Salesman Problem
Ant Colony Optimization for the Travelling Salesman Problem
The version forked here causes core dumps on Linux when compiled gcc 7. These critical issues have been fixed in the latest version of the ACOTSP available from http://www.aco-metaheuristic.org/aco-code/
A long int array is allocated as ints, not long ints, causing out of bound writes.
From ls.c
long int *r;
r = malloc(n * sizeof(int));
for ( i = 0 ; i < n; i++)
r[i] = i;
On executing make file lot of redefinition of variables
gcc -ansi acotsp.o TSP.o utilities.o ants.o InOut.o timer.o parse.o ls.o -o acotsp -O -lm
/usr/bin/ld: TSP.o:(.bss+0x100): multiple definition of n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: TSP.o:(.bss+0xf8): multiple definition of
distance'; acotsp.o:(.bss+0x0): first defined here
/usr/bin/ld: utilities.o:(.bss+0x0): multiple definition of distance'; acotsp.o:(.bss+0x0): first defined here /usr/bin/ld: utilities.o:(.bss+0x8): multiple definition of
n'; acotsp.o:(.bss+0x8): first defined here
/usr/bin/ld: ants.o:(.bss+0xc8): multiple definition of n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: ants.o:(.bss+0xc0): multiple definition of
distance'; acotsp.o:(.bss+0x0): first defined here
/usr/bin/ld: InOut.o:(.bss+0x160): multiple definition of n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: InOut.o:(.bss+0x158): multiple definition of
distance'; acotsp.o:(.bss+0x0): first defined here
/usr/bin/ld: ls.o:(.bss+0x18): multiple definition of n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: ls.o:(.bss+0x10): multiple definition of
distance'; acotsp.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:3: acotsp] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.