Skip to content

Improve MIP print formatting, etc. #40488

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

Merged
merged 2 commits into from
Aug 2, 2025

Conversation

user202729
Copy link
Contributor

@user202729 user202729 commented Jul 27, 2025

Just some minor improvements in mixed linear integer programming logic.

In particular, previously, the line after Maximization: or Minutization: is always printed even if cothe coefficients are zero. Now in that case it is no longer printed. Besides, if it is printed, the trailing space is no longer there.

Also add documentation for how to add a linear program already in standard form.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

@dcoudert
Copy link
Contributor

a failing doctest in src/sage/combinat/matrices/dancing_links.pyx

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Thanks.

@vbraun vbraun merged commit bf6be13 into sagemath:develop Aug 2, 2025
17 of 24 checks passed
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

Successfully merging this pull request may close these issues.

3 participants