
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.