fuglede / numberpartitioning

Pure Python solver for the multi-way partition problem
MIT License
19 stars 4 forks source link

Suggested contributions #2

Open erelsgl opened 3 years ago

erelsgl commented 3 years ago

Hi, are you still working on this project?

I have some code for k-way number partitioning, as well as for some related problems such as bin-packing and bin-covering. Will you be interested in adding them?

fuglede commented 3 years ago

Yep, it's active. And I think there's room for more functionality.

erelsgl commented 3 years ago

OK. I sent a PR that finds an exact solution using integer linear programming. One advantage of this approach is that it can be easily generalized, for example, to finding a partition with the smallest sum of the two largest parts; adding multiplicity constraints; etc.

I asked at the binpacking project and it seems they are not interested in contributions.

fuglede commented 3 years ago

Thanks, looks solid! I'm bit preoccupied these days but I'll make sure to dig in once time permits.