Code covered by the BSD License  

Highlights from
Cross Entropy TSP Solver

3.8

3.8 | 5 ratings Rate this file 11 Downloads (last 30 days) File Size: 68.69 KB File ID: #4821
image thumbnail

Cross Entropy TSP Solver

by Sebastien Paris

 

27 Apr 2004 (Updated 23 Jul 2008)

Solve TSP problem with a CE method.

| Watch this File

File Information
Description

TSP toy problem solved by Cross-Entropy Method (stochastic optimization procedure) based on generation of multiple random paths.

MATLAB release MATLAB 7.5 (R2007b)
Other requirements C compiler
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (11)
05 May 2004 Carlos Alcántara  
25 Jul 2005 allamul wafa

please send me the TSP solver where the input is coordinat

10 May 2006 nino nona  
19 Oct 2006 Ye Ning  
08 May 2007 Mats Ahlgren

does not work; even example in "help TSP_CE" does not work; demo file doesn't work either; all give same error:

??? Error using ==> generation_TSP
Too many input arguments.

Error in ==> TSP_CE at 152
X = generation_TSP(Pt , option.N , X1);

13 May 2007 Sébastien Paris

You have to recompile both mex files if your are not using a win32 system.

01 Nov 2007 Zdravko B.

very useful and well written. Thanks for sharing

23 Jul 2008 liudaohai liudaohai

file demo_TSP_CE does not work,after recompile both mex files

23 Jul 2008 liudaohai liudaohai

??? Undefined command/function 'cost_TSP'.

Error in ==> TSP_CE at 155
[S , indice] = sort(cost_TSP(L , X));

Error in ==> demo_TSP_CE at 33
[X_opt , S_opt , Pt , T] = TSP_CE(L , X1 , option);

23 Jul 2008 Sébastien Paris

Update with missing file (cost_tsp) coming soon. Thx for reporting this.

25 Jul 2008 liudaohai liudaohai

Thank you very much!!

Please login to add a comment or rating.
Updates
20 Jul 2004

- Add ULONG_NORM definition in generation_TSP.c
- 10% faster
- Smaller code
- Less Memory consuming
- Add view of the state transition probabilities matrix during update

09 Sep 2004

- Add ULONG_NORM definition in generation_TSP.c
V.1.1: 10% faster, Smaller code, Less Memory consuming, Added view of state transition probabilities matrix during update

V.1.2: Small fixes, 4% faster, Smaller code, Less Memory consuming

27 Dec 2004

v.1.3 : - Add random seed initialization procedure
          - Add two Uniform generator - Smaller code - Hudge Speed improuvement (Over 1000% for large n)

09 May 2005

v.1.4 : - Another trick leads to a O(n

28 Jul 2005

v 1.5 : -add two mex files improving speed computation
        -clean up the main CE_TSP function

07 Nov 2007

-add a small procedure to detect two way path

07 Nov 2007

-add missing files

23 Jul 2008

Missing cost_tsp.c file

Tag Activity for this File
Tag Applied By Date/Time
optimization Sebastien Paris 22 Oct 2008 07:18:36
cross entropy Sebastien Paris 22 Oct 2008 07:18:36
tsp Sebastien Paris 22 Oct 2008 07:18:36
stochastic optimization Sebastien Paris 22 Oct 2008 07:18:36
stochastic optimization hugo troche 16 Sep 2011 16:19:31
optimization hugo troche 16 Sep 2011 16:19:33
cross entropy hugo troche 16 Sep 2011 16:19:36
cross entropy ilyaflash borovikov 06 Feb 2012 15:25:46

Contact us at files@mathworks.com