From 95f85d538b3799731243d89843711ca12e79411f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Sat, 24 May 2025 07:53:15 +0200 Subject: [PATCH 1/3] [README] How to get the number of iterations --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 6241e2a..fa40dbc 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,17 @@ julia> objective_value(model) 18.00000016028532 ``` +> [!TIP] +> Note that you can obtain the number of iterations as follows: +> ```julia-repl +> julia> get_attribute(model, "majiter") +> 10.0 +> +> julia> get_attribute(model, "iter") +> 37.0 +> ``` +> The other attributes are `lambdaupdate`, `CG`, `curr_CG` totaltime` (same as `JuMP.solve_time`), `sigma` and `overallsc`. + We can see below that the factorization `F` is of rank 3: ```julia-repl From 4755071d944923a9442134da7d9007b7577c9d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Sat, 24 May 2025 07:55:06 +0200 Subject: [PATCH 2/3] Fix --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fa40dbc..6e2e32f 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,8 @@ julia> objective_value(model) ``` > [!TIP] -> Note that you can obtain the number of iterations as follows: +> You can obtain the number of iterations that you see displayed in a +> progammatic way as follows: > ```julia-repl > julia> get_attribute(model, "majiter") > 10.0 From 97270b789e996f9dad54847282adc10be1c5fa7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Sat, 24 May 2025 07:55:45 +0200 Subject: [PATCH 3/3] Fix --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6e2e32f..4e8a1cc 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ julia> objective_value(model) > [!TIP] > You can obtain the number of iterations that you see displayed in a -> progammatic way as follows: +> programmatic way as follows: > ```julia-repl > julia> get_attribute(model, "majiter") > 10.0 @@ -124,7 +124,7 @@ julia> objective_value(model) > julia> get_attribute(model, "iter") > 37.0 > ``` -> The other attributes are `lambdaupdate`, `CG`, `curr_CG` totaltime` (same as `JuMP.solve_time`), `sigma` and `overallsc`. +> The other attributes are `lambdaupdate`, `CG`, `curr_CG`, `totaltime` (same as `JuMP.solve_time`), `sigma` and `overallsc`. We can see below that the factorization `F` is of rank 3: