scipy icon indicating copy to clipboard operation
scipy copied to clipboard

DOC: optimize: add tutorial for milp

Open AtsushiSakai opened this issue 1 year ago • 3 comments

Reference issue

N/A

What does this implement/fix?

From v1.9.0, the mixed integer linear programing solver optimize.milp is added. This solver can be used for many kinds of applications, so I think it would be great to add a tutorial for milp.

In this PR, I added a tutorial section "Mixed integer linear programming" and added a simple tutorial to solve the Knapsack problem. And I added a tutorial link in the milp Examples doc.

Additional information

AtsushiSakai avatar Aug 06 '22 06:08 AtsushiSakai

Oops, @mckib2 has been working on one. Perhaps this can be added as another example.

mdhaber avatar Aug 06 '22 14:08 mdhaber

Oops, @mckib2 has been working on one. Perhaps this can be added as another example.

Yes, I am working on one. No reason this one can't go in first if it's ready? It would be nicer to have each tutorial split into its own file, but fine to kick that down the road until there are multiple tutorials here

mckib2 avatar Aug 10 '22 03:08 mckib2

@mckib2 I'm sorry I didn't know you were already working on it. Either is fine for me, merging this PR first or waiting for your PR to be merged if your tutorial does not have a knapsack problem example.

AtsushiSakai avatar Aug 10 '22 12:08 AtsushiSakai

Merging main + re-building docs so I can review.

mdhaber avatar Sep 06 '22 22:09 mdhaber

@AtsushiSakai this is great! I made suggestions in https://github.com/AtsushiSakai/scipy/pull/3. Please consider merging that (with commit comment [skip azp] [skip actions], perhaps), and then I think this is ready to merge!

mdhaber avatar Sep 07 '22 05:09 mdhaber

Thanks @AtsushiSakai!

mdhaber avatar Sep 07 '22 14:09 mdhaber