-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
When testing the ModelAnalyzer.jl in a medium-sized case study in Tulipa, we found Numerical analysis found 79309 issues, but we know now what to do 😅 and the package will help us to improve the case study and input data (see TulipaEnergy/Tulipa-OBZ-CaseStudy#38).
During the process, we have the following feedback on the package:
- The verbose keyword is not working as expected. Either true or false throws several lines in the REPL.
- The following commands that are in the docs threw errors:
- https://github.com/jump-dev/ModelAnalyzer.jl/blob/eb324011051aa3be61e539976e169efdc1700fb8/docs/src/index.md?plain=1#L121
ERROR: MethodError: no method matching summarize(::ModelAnalyzer.Numerical.Data, ::Type{ModelAnalyzer.Numerical.VariableBoundAsConstraint}) - https://github.com/jump-dev/ModelAnalyzer.jl/blob/eb324011051aa3be61e539976e169efdc1700fb8/docs/src/index.md?plain=1#L127
ERROR: MethodError: no method matching summarize(::ModelAnalyzer.Numerical.Data, ::Vector{ModelAnalyzer.Numerical.VariableBoundAsConstraint}) - https://github.com/jump-dev/ModelAnalyzer.jl/blob/eb324011051aa3be61e539976e169efdc1700fb8/docs/src/index.md?plain=1#L130
ERROR: MethodError: no method matching summarize(::ModelAnalyzer.Numerical.Data, ::ModelAnalyzer.Numerical.VariableBoundAsConstraint)
- https://github.com/jump-dev/ModelAnalyzer.jl/blob/eb324011051aa3be61e539976e169efdc1700fb8/docs/src/index.md?plain=1#L121
This is the full report my_report.txt
Here is the LP file for reproducibility: https://filesender.surf.nl/?s=download&token=3ef84db3-7bfd-4101-a8b4-5af77b4761a2
Julia code:
using JuMP
using ModelAnalyzer
using HiGHS
# Create a JuMP model from lp file from OBZ case study
model = read_from_file("tulipa-obz-model-10rp.lp")
set_optimizer(model, HiGHS.Optimizer)
optimize!(model)
# Perform a numerical analysis of the model
data = ModelAnalyzer.analyze(ModelAnalyzer.Numerical.Analyzer(), model)
# print report
ModelAnalyzer.summarize(data; verbose=false)Julia environment:
(TestModelAnalyzer) pkg> st
Status `C:\Users\tejadaarangoda\OneDrive - TNO\00_Sandbox\TestModelAnalyzer\Project.toml`
[87dc4568] HiGHS v1.16.0
[4076af6c] JuMP v1.25.0
[d1179b25] ModelAnalyzer v0.1.0 `https://github.com/jump-dev/ModelAnalyzer.jl#main`I hope this information helps
Metadata
Metadata
Assignees
Labels
No labels