timefold-quickstarts icon indicating copy to clipboard operation
timefold-quickstarts copied to clipboard

knapsack example for python

Open alex-cornejo opened this issue 1 year ago • 1 comments

Description of the change

Contains a simple example of the knapsack problem in python.

alex-cornejo avatar Sep 21 '24 22:09 alex-cornejo

Hello @alex-cornejo!

First of all, thank you for taking the time to provide this PR, and my apologies for responding with such delay.

Unfortunately, I cannot accept your PR as is - the knapsack problem is an academic one, and we only provide Quickstarts for problems applied to a particular domain, with domain-specific constraints. (Much like we don't give a TSP Quickstart and instead provide a VRP with time windows.) Also, since Java is the primary language of Timefold Solver, we would also ask you to provide a Java equivalent of the Quickstart.

One way of going forward would be for you to adapt the Quickstart to any of the domains where the knapsack problem is typically used. Use terminology from that domain, use constraints that would reasonably be expected in that domain. And finally supply a Java version as well.

Understanding that this may take more time than you can offer, there is also another option. Take this Quickstart and publish it on your own, perhaps write a social media post about it. We will be happy to share your content on our socials as well, and give you some credit that way.

Do let me know what you've decided to do if anything, and have a good day!

triceo avatar Oct 01 '24 06:10 triceo

Closing the PR as explained.

triceo avatar Oct 28 '24 07:10 triceo