Expose write_to_file
and compute_iis
#61
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is linked to (depends on) this core PR.
This fixes #60.
This pull request includes several updates and improvements across multiple files. The changes focus on enhancing functionality, fixing bugs, and updating dependencies. Below are the most important changes:
Enhancements:
Added a new section in the documentation to explain how to force a solver executable version by explicitly adding the corresponding
_jll
as a dependency (docs/pages/manual/python/configuration.md
).Introduced a new method
write_to_file
in theModel
class to write the model to a file, with detailed documentation and examples (src/iesopt/model.py
).Added a new method
compute_iis
in theModel
class to compute and print the Irreducible Infeasible Set (IIS) of the model, including optional file output and examples (src/iesopt/model.py
).Dependency Updates:
Updated the
IESOPT_CORE
,IESOPT_JUMP
, andIESOPT_SOLVER_HIGHS
versions in theConfig
class (src/iesopt/config.py
).Bumped the project version from
2.2.1
to2.3.0
inpyproject.toml
.Bug Fixes:
Fixed the key transformation logic in the
init
method of theConfig
class to handle keys starting withIESOPT_PKG_
correctly (src/iesopt/config.py
).Enhanced error logging in the
jl_safe_seval
function to include exception details (src/iesopt/julia/util.py
).Improved the
setup_julia
function to handle exceptions when importing and adding custom Julia packages (src/iesopt/julia/setup.py
).