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

MixedIntegerLinearProgram: New generator method 'variables' #31749

Open
mkoeppe opened this issue Apr 28, 2021 · 3 comments
Open

MixedIntegerLinearProgram: New generator method 'variables' #31749

mkoeppe opened this issue Apr 28, 2021 · 3 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 28, 2021

We modify MixedIntegerLinearProgram.new_variable so that it remembers the variables.

To avoid reintroducing reference loops eliminated in #12616, we modify MIPVariable so that it no longer stores a reference to the MIP but rather to the backend, the base_ring, and the linear_functions_parent.

A new method M.variables() yields all MIPVariable instances that have been created using M.new_variable() in the order of their creation.

Depends on #20656

CC: @yuan-zhou @sagetrac-tmonteil @tscrim

Component: linear programming

Branch: u/mkoeppe/mixedintegerlinearprogram__new_generator_method__variables_

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

@mkoeppe mkoeppe added this to the sage-9.4 milestone Apr 28, 2021
@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 29, 2021

Dependencies: #20656

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 29, 2021

@mkoeppe mkoeppe modified the milestones: sage-9.4, sage-9.5 Jul 19, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.5, sage-9.6 Dec 14, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.6, sage-9.7 Mar 5, 2022
@mkoeppe mkoeppe modified the milestones: sage-9.7, sage-9.8 Aug 31, 2022
@mkoeppe mkoeppe modified the milestones: sage-9.8, sage-9.9 Jan 7, 2023
@mkoeppe mkoeppe removed this from the sage-10.0 milestone Mar 16, 2023
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

1 participant