Skip to content

Add some lacking status#32

Merged
lovasoa merged 2 commits intorust-or:mainfrom
TeXitoi:add_some_lacking_status
Nov 12, 2025
Merged

Add some lacking status#32
lovasoa merged 2 commits intorust-or:mainfrom
TeXitoi:add_some_lacking_status

Conversation

@TeXitoi
Copy link
Contributor

@TeXitoi TeXitoi commented Nov 10, 2025

These modifications are needed if you configure HiGHS to stop before the end of the optimization.

The added enum variant to HighsModelStatus and the added #[non_exhaustive] to it are breaking changes.

fixes #26
depends on rust-or/highs-sys#37

TeXitoi added a commit to TeXitoi/good_lp that referenced this pull request Nov 10, 2025
If you put a stopping option as `.set_option("mip_max_nodes", 10)`, the solver
might stop without finding a feasible solution. This modification handles this
case by checking that a feasible solution is available, returning
`Err(ResolutionError::Other("NoSolutionFound"))` if not.

depends on rust-or/highs#32
TeXitoi added a commit to TeXitoi/good_lp that referenced this pull request Nov 10, 2025
If you put a stopping option as `.set_option("mip_max_nodes", 10)`, the solver
might stop without finding a feasible solution. This modification handles this
case by checking that a feasible solution is available, returning
`Err(ResolutionError::Other("NoSolutionFound"))` if not.

depends on rust-or/highs#32
@TeXitoi TeXitoi force-pushed the add_some_lacking_status branch from 4f18c70 to 941bf52 Compare November 10, 2025 14:05
TeXitoi added a commit to TeXitoi/good_lp that referenced this pull request Nov 10, 2025
If you put a stopping option as `.set_option("mip_max_nodes", 10)`, the solver
might stop without finding a feasible solution. This modification handles this
case by checking that a feasible solution is available, returning
`Err(ResolutionError::Other("NoSolutionFound"))` if not.

depends on rust-or/highs#32
TeXitoi added a commit to TeXitoi/good_lp that referenced this pull request Nov 10, 2025
If you put a stopping option as `.set_option("mip_max_nodes", 10)`, the solver
might stop without finding a feasible solution. This modification handles this
case by checking that a feasible solution is available, returning
`Err(ResolutionError::Other("NoSolutionFound"))` if not.

depends on rust-or/highs#32
@TeXitoi TeXitoi force-pushed the add_some_lacking_status branch from 941bf52 to 4a972f3 Compare November 10, 2025 16:38
Copy link
Contributor

@lovasoa lovasoa left a comment

Choose a reason for hiding this comment

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

I think it's ok to make a new major version

…al_solution_status

These modifications are needed if you configure HiGHS to stop before the end of
the optimization.

The added enum variant to HighsModelStatus and the added `#[non_exhaustive]` to it are
breaking changes.

fixes rust-or#26
depends on rust-or/highs-sys#37
@TeXitoi TeXitoi force-pushed the add_some_lacking_status branch from 4a972f3 to 522c507 Compare November 12, 2025 09:30
@TeXitoi
Copy link
Contributor Author

TeXitoi commented Nov 12, 2025

I’ve added the #[non_exhaustive] and updated the version to v2.0.0.

@TeXitoi
Copy link
Contributor Author

TeXitoi commented Nov 12, 2025

I didn’t remove the Unknown variant, as it explicitly exists in HiGHS and I’m not sure that’s a "useless" error.

@lovasoa lovasoa merged commit fa8a4eb into rust-or:main Nov 12, 2025
2 checks passed
@TeXitoi
Copy link
Contributor Author

TeXitoi commented Nov 12, 2025

Wow, that was fast! Thanks.

@lovasoa
Copy link
Contributor

lovasoa commented Nov 12, 2025

Thanks for your work @TeXitoi ! It's now live on crates.io

TeXitoi added a commit to TeXitoi/good_lp that referenced this pull request Nov 12, 2025
If you put a stopping option as `.set_option("mip_max_nodes", 10)`, the solver
might stop without finding a feasible solution. This modification handles this
case by checking that a feasible solution is available, returning
`Err(ResolutionError::Other("NoSolutionFound"))` if not.

depends on rust-or/highs#32
TeXitoi added a commit to TeXitoi/good_lp that referenced this pull request Nov 12, 2025
If you put a stopping option as `.set_option("mip_max_nodes", 10)`, the solver
might stop without finding a feasible solution. This modification handles this
case by checking that a feasible solution is available, returning
`Err(ResolutionError::Other("NoSolutionFound"))` if not.

depends on rust-or/highs#32
lovasoa pushed a commit to rust-or/good_lp that referenced this pull request Nov 12, 2025
If you put a stopping option as `.set_option("mip_max_nodes", 10)`, the solver
might stop without finding a feasible solution. This modification handles this
case by checking that a feasible solution is available, returning
`Err(ResolutionError::Other("NoSolutionFound"))` if not.

depends on rust-or/highs#32
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.

Missing model status

2 participants