Login   Register  
PHP Classes
elePHPant
Icontem

PHP Clarke and Wright Algorithm: Solve a truck routing problem with Clarke & Wright

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-09-04 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 257 All time: 6,922 This week: 1,387Up
Version License PHP version Categories  
matrix-cw 1.0GNU General Public Lice...5.3Algorithms
Description Author  

This class can solve a truck routing problem with the Clarke and Wright algorithm.

It attempts to solve the problem of determining the routes of a given number of trucks with different weight and volume capacity will be dispatching deliveries to a certain number of clients distributed geographically within certain time windows.

The class takes as parameters the nodes of positions of each client, the demands of each client, a matrix of distance between nodes and the capacity of each truck.

It computes the route for each truck, as well the time and distance to drive to each customer, and the volume and weight to transport.

Innovation Award  
PHP Programming Innovation award nominee
July 2013
Number 7


Prize: One copy of DWebPro Standard License
The problem of a distribution business that needs to deliver packages to multiple customers in different locations is classic.

This class provides an optimized solution to calculate routes of trucks to deliver packages.

Manuel Lemos
Picture of Benjamin Vatter
Name: Benjamin Vatter <contact>
Classes: 1 package by
Country: Chile Chile
Age: 24
All time rank: 350613 in Chile Chile
Week rank: 1721 Up6 in Chile Chile Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imageexample (12 files)
Accessible without login Plain text file further_development.txt Doc. for further development
Accessible without login Plain text file readme.txt Doc. general readme

  Files folder image Files  /  example  
File Role Description
  Accessible without login Plain text file clientes.csv Data client data
  Accessible without login Plain text file data.php Aux. data load
  Accessible without login Plain text file distance1.csv Data distance matrix part 1
  Accessible without login Plain text file distance2.csv Data distance matrix part 2
  Plain text file matrix.php Class auxiliary class
  Plain text file matrixcw.php Class main class
  Accessible without login Plain text file matrixpararun.php Example parametric run of the class
  Accessible without login Plain text file matrixrun.php Example normal run of the class
  Accessible without login Plain text file readme.txt Doc. read before executing
  Accessible without login Plain text file trucks.csv Data truck data
  Accessible without login Plain text file trucksn.csv Data trucks data
  Accessible without login Plain text file trucksn.php Data data of the trucks

 Version Control Unique User Downloads Download Rankings  
 0%Total:257All time:6,922
 This week:0This week:1,387Up
 User Comments (1)