Skip to content

Support empty objective#2316

Closed
sedefe wants to merge 1 commit intoERGO-Code:latestfrom
sedefe:master
Closed

Support empty objective#2316
sedefe wants to merge 1 commit intoERGO-Code:latestfrom
sedefe:master

Conversation

@sedefe
Copy link
Copy Markdown

@sedefe sedefe commented May 5, 2025

When a model has empty objective (e.g. generated in https://docs.gurobi.com/projects/examples/en/current/examples/python/sudoku.html ), it might not be as garbage as we suspect.

@jajhall
Copy link
Copy Markdown
Member

jajhall commented May 5, 2025

Thanks, well spotted

@jajhall jajhall changed the base branch from master to latest May 5, 2025 12:11
@jajhall jajhall changed the base branch from latest to test-2316 May 5, 2025 12:16
@jajhall jajhall changed the base branch from test-2316 to latest May 5, 2025 12:26
Copy link
Copy Markdown
Member

@jajhall jajhall left a comment

Choose a reason for hiding this comment

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

This works fine - in that num_objective_section = 0 doesn't seem to cause any downstream issues. Also tested with .lp file beginning

Maximize
Subject to

as well as one beginning

Subject to

@jajhall
Copy link
Copy Markdown
Member

jajhall commented May 5, 2025

This is implemented in #2319, but exposes code quality issue #2318

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.

2 participants