File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 39
39
40
40
``` julia
41
41
using Pkg
42
- Pkg. add (url = " https://github.com/jump-dev/ MathOptAnalyzer.jl " )
42
+ Pkg. add (" MathOptAnalyzer" )
43
43
```
44
44
45
45
## Usage
@@ -134,12 +134,20 @@ MathOptAnalyzer.summarize(issues[1])
134
134
135
135
If you don't have a JuMP (or MOI) model, you can still use this package reading from a file.
136
136
137
+ Given a file that could have been generated by JuMP or not, such as:
137
138
``` julia
138
139
model = Model ();
139
140
@variable (model, x >= 0 );
140
141
@objective (model, Min, 2 * x + 1 );
141
142
filename = joinpath (mktempdir (), " model.mps" );
142
143
write_to_file (model, filename; generic_names = true )
143
- new_model = read_from_file (filename; use_nlp_block = false )
144
+ ```
145
+
146
+ We can read it with JuMP:
147
+ ``` julia
148
+ filename = joinpath (mktempdir (), " model.mps" );
149
+ new_model = read_from_file (filename)
144
150
print (new_model)
145
151
```
152
+
153
+ And then proceed with the analysis described above.
You can’t perform that action at this time.
0 commit comments