PHP Classes

The Challenge of Sequencing: Optimize task schedules based on earliest due date

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 74%Total: 172 All time: 8,774 This week: 190Up
Version License PHP version Categories
tcos 1.0.1Proprietary Licen...5Algorithms, PHP 5


This is a simple class that can optimize task schedules based on earliest due date.

It takes an array with values of tasks to be executed such as the time each task takes to execute and delivery time.

The class processes the tasks schedules to minimize the number of late tasks and displays several metrics about the scheduled tasks, such as the total flow time, average flow time, average delay time, backlog time, maximum delay, average time delay.

Innovation Award
PHP Programming Innovation award nominee
February 2016
Number 9

Prize: 1 year subscription to the Basic Plan of an API product of choice
When you need to manage many concurrent tasks, you need to rearrange their schedules, so they can be completed as soon as possible and at the same time avoid that they run late considering the desired finishing time limit.

This class can perform the necessary calculations with a set of scheduled tasks minimizing the number of tasks that may run late.

Manuel Lemos
Picture of Roberto Aleman
  Performance   Level  
Name: Roberto Aleman <contact>
Classes: 19 packages by
Country: Venezuela Venezuela
Age: 49
All time rank: 1391 in Venezuela Venezuela
Week rank: 703 Down3 in Venezuela Venezuela Down
Innovation award
Innovation award
Nominee: 10x

Winner: 1x

In job scheduling on a machine can implement different policies or rules of priority in particular seek to improve the performance of the programming in a particular indicator (minimize the amount of backlog, minimizing the average delay, minimize the maximum delay, minimize time average flow, etc.), however, the makespan or time required to complete the work will be independent identical to the priority rule. There are many rules of priority but the most used is the rule according to the prioritization by time of delivery, or EDD. This sequence in increasing order of their dates of upcoming delivery. Priority is given to tasks or products shorter earliest delivery or delivery. It is used as an initial solution to sequence minimizing the number of late tasks (Moore algorithm). Management methods and recursive functions are used to sort and process the base matrix and the resulting vectors The following data shows the process: Total flow time Average flow time average delay Number of backlog Maximum delay Average Time Delay How to use it: You must send as a parameter an array of N x 3, where N is the number of processes to be sequenced, Nx1 time column is the process (typically for machines expressed in days, but can be a relative time unit) is Nx2 the delivery date column which is expressed in the same unit as Nx1, in this case days.
  Files folder image Files  
File Role Description
Plain text file readme.txt Doc. readme file
Plain text file testedd.php Example example
Plain text file The_challenge_of_sequencing.php Class main class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,774
This week:190Up
 User Ratings  
 All time