From a2a3ed410bf16483da92acf78ddd3c9e861d9d80 Mon Sep 17 00:00:00 2001 From: joaquimg Date: Wed, 23 Jul 2025 08:44:40 -0300 Subject: [PATCH] Small docs changes --- docs/src/index.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/src/index.md b/docs/src/index.md index 6560131..b0e0371 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -39,7 +39,7 @@ run: ```julia using Pkg -Pkg.add(url = "https://github.com/jump-dev/MathOptAnalyzer.jl") +Pkg.add("MathOptAnalyzer") ``` ## Usage @@ -134,12 +134,20 @@ MathOptAnalyzer.summarize(issues[1]) If you don't have a JuMP (or MOI) model, you can still use this package reading from a file. +Given a file that could have been generated by JuMP or not, such as: ```julia model = Model(); @variable(model, x >= 0); @objective(model, Min, 2 * x + 1); filename = joinpath(mktempdir(), "model.mps"); write_to_file(model, filename; generic_names = true) -new_model = read_from_file(filename; use_nlp_block = false) +``` + +We can read it with JuMP: +```julia +filename = joinpath(mktempdir(), "model.mps"); +new_model = read_from_file(filename) print(new_model) ``` + +And then proceed with the analysis described above.