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 3939
4040``` julia
4141using Pkg
42- Pkg. add (url = " https://github.com/jump-dev/ MathOptAnalyzer.jl " )
42+ Pkg. add (" MathOptAnalyzer" )
4343```
4444
4545## Usage
@@ -134,12 +134,20 @@ MathOptAnalyzer.summarize(issues[1])
134134
135135If you don't have a JuMP (or MOI) model, you can still use this package reading from a file.
136136
137+ Given a file that could have been generated by JuMP or not, such as:
137138``` julia
138139model = Model ();
139140@variable (model, x >= 0 );
140141@objective (model, Min, 2 * x + 1 );
141142filename = joinpath (mktempdir (), " model.mps" );
142143write_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)
144150print (new_model)
145151```
152+
153+ And then proceed with the analysis described above.
You can’t perform that action at this time.
0 commit comments