PHP wrote function for cutting stock

We need a PHP function that can take 2 variables.

Scope: Cutting stock problem, examples:

[login to view URL]

[login to view URL]

[login to view URL]

Cutting-stock problem is the problem of cutting standard-sized pieces of stock material, such as metal pipes, into pieces of specified sizes while minimising material wasted. It is an optimisation problem in mathematics that arises from applications in industry.

function optimisation($material,$requirements) { ... }

We provide $material and $requirements as 2 dimensions array.

in $material we provide number of pipes and length for each one. eg:






in $requirements we provide number of pipes that we want to cut from $material and length for each one. eg:





Function should:

1) return the best way we can cut into pipes provided in $material minimising material wasted and getting $requirements pipes.

2) return each pipe from $material and what cut pipes resulted after cutting it and what waste was generated after the cut

3) if $material is not enough for $requirements specify what pipes from $requirements were not cut

4) if $material is more than enough for $requirements specify what pipes from $material were not cut

5) if no cut is possible, return message "no cut is possible"


One single milestone, no partial delivery. In order to confirm delivery you need to provide a working environment/webpage/phpfiddle where I can run tests on the script.

Skills: PHP, Matlab and Mathematica, Algorithm, Mathematics

See more: php crawler image title link script, free php travel booking engine form script, install virtual stock script india, edit zen cart stock script, php ajax free file upload script, php soap implementation getting stock quotes, php limit post per day script, php product stock script, php mysql registration email confirmation script, php mysql random fact image script, php curl search engine submit script, php login signup forgot password script, asp php football manager coach online script, php mysql ajax job board script, php upload picture rename resize script, php fusion game server status script, php server side form post script validation, php warehouse stock script, cutting stock optimization php

About the Employer:
( 14 reviews ) Bucuresti, Romania

Project ID: #29025276

2 freelancers are bidding on average $63 for this job


hello, i can help you make this function. can you send to me example data and return result from example?

$25 USD in 1 day
(409 Reviews)

Hey [login to view URL] you in good health. I have read your project description I have expertise at statics,dynamics,mechanics of materials,design of machines, structures,mechanical vibrations,heat and mass transfer,thermody More

$100 USD in 1 day
(39 Reviews)