Skip to content

Commit ed42075

Browse files
committed
feasibility almost ready
1 parent 9c83751 commit ed42075

File tree

10 files changed

+975
-562
lines changed

10 files changed

+975
-562
lines changed

Project.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ version = "0.1.0"
44

55
[deps]
66
Dualization = "191a621a-6537-11e9-281d-650236a99e60"
7-
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
87
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
98
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
109
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1110

11+
[weakdeps]
12+
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
13+
14+
[extensions]
15+
ModelAnalyzerJuMPExt = "JuMP"
16+
1217
[compat]
13-
Dualization = "0.5.9"
18+
Dualization = "0.6.0"
1419
JuMP = "1.24.0"
1520
MathOptInterface = "1.37.0"

docs/Project.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3-
ModelAnalyzer = "d1179b25-476b-425c-b826-c7787f0fff83"
3+
ModelAnalyzer = "d1179b25-476b-425c-b826-c7787f0fff83"
4+
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
5+
6+
[compat]
7+
JuMP = "1.24.0"

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Documenter, ModelAnalyzer
1+
using Documenter, ModelAnalyzer, JuMP
22

33
makedocs(; sitename = "ModelAnalyzer.jl documentation")
44

docs/src/feasibility.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Specifically, the possible issues are:
1717

1818
```@docs
1919
ModelAnalyzer.Feasibility.PrimalViolation
20-
ModelAnalyzer.Feasibility.DualViolation
20+
ModelAnalyzer.Feasibility.DualConstraintViolation
21+
ModelAnalyzer.Feasibility.DualConstrainedVariableViolation
2122
ModelAnalyzer.Feasibility.ComplemetarityViolation
2223
ModelAnalyzer.Feasibility.DualObjectiveMismatch
2324
ModelAnalyzer.Feasibility.PrimalObjectiveMismatch

src/jump.jl renamed to ext/ModelAnalyzerJuMPExt/ModelAnalyzerJuMPExt.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
# Use of this source code is governed by an MIT-style license that can be found
44
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
55

6+
module ModelAnalyzerJuMPExt
7+
8+
import ModelAnalyzer
69
import JuMP
10+
import MathOptInterface as MOI
711

812
function ModelAnalyzer.analyze(
913
analyzer::T,
@@ -74,3 +78,5 @@ function ModelAnalyzer.constraint(
7478
ref = ModelAnalyzer.constraint(issue)
7579
return JuMP.constraint_ref_with_index(model, ref)
7680
end
81+
82+
end # module ModelAnalyzerJuMPExt

src/ModelAnalyzer.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ function analyze end
3131
3232
Print a summary of the analysis results contained in `AbstractData` to the
3333
specified IO stream. If no IO stream is provided, it defaults to `stdout`.
34+
The model that led to the issue can be provided to `model`, it will be
35+
used to generate the name of variables and constraints in the issue summary.
3436
The `verbose` flag controls whether to print detailed information about each
3537
issue (if `true`) or a concise summary (if `false`). The `max_issues` argument
3638
controls the maximum number of issues to display in the summary. If there are
@@ -202,7 +204,6 @@ end
202204

203205
include("numerical.jl")
204206
include("feasibility.jl")
205-
include("infeasibility.jl")
207+
# include("infeasibility.jl")
206208

207-
include("jump.jl")
208-
end
209+
end # module ModelAnalyzer

0 commit comments

Comments
 (0)