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.
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.