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

PPL mip solver runs out of memory for trivial 3-variable IP #24146

Open
mkoeppe opened this issue Nov 3, 2017 · 4 comments
Open

PPL mip solver runs out of memory for trivial 3-variable IP #24146

mkoeppe opened this issue Nov 3, 2017 · 4 comments

Comments

@mkoeppe
Copy link
Member

mkoeppe commented Nov 3, 2017

sage: ip = MixedIntegerLinearProgram(maximization=True, solver='ppl')
sage: x = ip.new_variable(integer=True)
sage: ip.set_objective(-4*x[0]) 
sage: ip.add_constraint(-2*x[0] + x[1] <= -2)
sage: ip.add_constraint(-12*x[0] + x[2] <= -12)
sage: ip.add_constraint(-8*x[0] - 2*x[1] - x[2] <= -11)
sage: ip.solve()

CC: @yuan-zhou @dimpase @jdemeyer

Component: numerical

Issue created by migration from https://trac.sagemath.org/ticket/24146

@mkoeppe mkoeppe added this to the sage-8.1 milestone Nov 3, 2017
@dimpase
Copy link
Member

dimpase commented Nov 3, 2017

comment:1

ppl does not do integer LPs, if I recall right.

@mkoeppe
Copy link
Member Author

mkoeppe commented Nov 3, 2017

comment:2

Is this the real Dima?

Ppl does have a MIP solver. Some time back I added the missing parts to the Sage ppl interface. Your recollection is probably based on the state of things before that.

@dimpase
Copy link
Member

dimpase commented Nov 3, 2017

comment:3

Right. That's me, as you can see from a characteristic memory lapse. :-)

@tscrim
Copy link
Collaborator

tscrim commented Nov 27, 2017

comment:4

It is also bad that this is not interruptible, but that is a separate issue. However, isn't this a problem with upstream (i.e. PPL) rather than Sage? At least, using the GLPK solver, I get -8.0.

@mkoeppe mkoeppe removed this from the sage-8.1 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants