Solving the Cutting Stock Problem via implementing Simulated Annealing.
Just define your function and call Problem class with your parametrs, and then train it.
solve = Problem(T = 1
, coolingRate = 0.9
, stockLength = stockLength
, markovLength = 3
, orders = req
, stopCriterion = 1000)
rolls, ans = solve.train()
Pull requests are welcome.