Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request -- Retrieving multiple optimal solutions #629

Open
d-saikrishna opened this issue Jan 1, 2024 · 0 comments
Open

Feature Request -- Retrieving multiple optimal solutions #629

d-saikrishna opened this issue Jan 1, 2024 · 0 comments

Comments

@d-saikrishna
Copy link

Here is my problem

Lp_prob = p.LpProblem('Problem', sense = p.LpMinimize)  

x = p.LpVariable("x1", lowBound = 0)   # Create a variable x 
y = p.LpVariable("x2", lowBound = 0)

# Objective Function 
Lp_prob += x+y
# Constraints: 
Lp_prob += x+y==3

The solver gave me an answer of (3,0), whcich is true.

But since this problem has multiple optimal solutions, I have following requests:

  1. Status: A new status instead of Optimal to show the presence of multiple optimal solutions.
  2. A way to retrieve all multiple optimal solutions (in steps, which can be user defined)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant