Skip to content

Number of solutions #257

Answered by sebheger
ErikLambrechts asked this question in Q&A
Discussion options

You must be logged in to vote

@ErikLambrechts. Best to my knowledge python-mip doesn't provide you with an efficient way. You can try two approaches (without guarantee):

  1. Perform runs with different artificially generated target functions to see whether you can find a different solution. This approach might "fail" if there is only one feasible solution or you do not find the required target function to produce different output.
  2. If we are talking to integer programming, you can try to add an additional constraint that exactly forbids your feasible (integral) solution. If the new model has no integral solution, you know that there is only one. Otherwise, you get the other one. Depending on your problem if/how this const…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sebheger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #247 on March 23, 2022 17:48.