Active learning method to solve bin packing problems