PHP Classes

What input

Recommend this page to a friend!

      Bin packing  >  All threads  >  What input  >  (Un) Subscribe thread alerts  
Subject:What input
Summary:What do these functions expect for input?
Messages:2
Author:TK Newhook
Date:2013-09-12 13:57:53
Update:2013-10-12 17:45:07
 

  1. What input   Reply   Report abuse  
Picture of TK Newhook TK Newhook - 2013-09-12 13:57:53
I'm new to PHP, and I'm not sure what input this program wants - how to call it, and what parameters to send it. I'm trying to solve the cutting problem, with the only goal being to minimize waste - there is a set number of sizes to cut from the main piece, but no limit on how many of each size. Bigger sizes are preferable, but no specific rule.

  2. Re: What input   Reply   Report abuse  
Picture of Chi H. Chi H. - 2013-10-12 17:45:07 - In reply to message 1 from TK Newhook
Hello,

sorry, the php class needs some work. At the meantime you can try var ElementsCopy=array ( 0.1, 0.5, 1, 3, 4, 5, 7, 8, 1, 3, 4, 5, 7, 8, 5, 6, 4, 3, 8, 5). Note this isn't solve the 2d cutting stock. This is a 1d bin-packer. It has a guarantee to be 2/3 within the optimum. You can also try a brute-force or a dynamic solution.