PHP Classes

PHP Vehicle Routing Problem: Compute routes of trucks delivering client orders

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 877 All time: 4,002 This week: 213Up
Version License PHP version Categories
ocvrp 0.1BSD License3.0Algorithms, Geography


This class can compute routes of trucks delivering client orders.

It takes the geographic coordinates of a depot and the locations clients with orders to be delivered by a fleet of trucks.

The class uses a 2-phase algorithm for solving the open capacitated vehicle routing problem.

It tries to minimize the total route cost by trying all possible combinations. The trucks are not required to return to the depot.


What is the best PHP vehicle tracking system class?
Getting distance to calculate fuel used and cost from map

Vehicle routing problem
Vehicle routing problem using the branch and bound algorithm

Innovation Award
PHP Programming Innovation award winner
July 2014

Prize: PhpStorm IDE personal permanent license
Some businesses need to deliver products to their customers using cargo transportation vehicles.

To reduce the costs it is necessary to optimize the routes that the vehicles take to deliver the products.

This class implements an alternative vehicle routing solution that is very accurate, as it computes the euclidean distance between client sites.

Manuel Lemos
Picture of Chi H.
  Performance   Level  
Name: Chi H. <contact>
Classes: 28 packages by
Country: France France
Age: 38
All time rank: 34622 in France France
Week rank: 118 Up7 in France France Up
Innovation award
Innovation award
Nominee: 22x

Winner: 3x

  • screenshot.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example example
Plain text file hilbert.php Class helper class
Plain text file mercator.php Class helper class
Plain text file ocvr.php Class main class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,002
This week:213Up
User Comments (1)