Skip to content

Commit

Permalink
Fix scalable (#294)
Browse files Browse the repository at this point in the history
* Add test to check if scalable problems are indeed

* Fix misclassified problems
  • Loading branch information
tmigot authored Jul 21, 2023
1 parent 549764c commit 4b4e683
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Meta/bard.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bard_meta = Dict(
:nvar => 3,
:variable_nvar => true,
:variable_nvar => false,
:ncon => 0,
:variable_ncon => false,
:minimize => true,
Expand Down
2 changes: 1 addition & 1 deletion src/Meta/gulf.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gulf_meta = Dict(
:nvar => 3,
:variable_nvar => true,
:variable_nvar => false,
:ncon => 0,
:variable_ncon => false,
:minimize => true,
Expand Down
2 changes: 1 addition & 1 deletion src/Meta/watson.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
watson_meta = Dict(
:nvar => 31,
:variable_nvar => true,
:variable_nvar => false,
:ncon => 0,
:variable_ncon => false,
:minimize => true,
Expand Down
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,8 @@ adproblems11 = (
@test pb[:nvar] == nlp.meta.nvar
n11 = OptimizationProblems.eval(Symbol(:get_, pb[:name], :_nvar))(n = 13 * ndef)
@test n11 == nlp11.meta.nvar

# test that the problem is actually scalable
@test n11 != pb[:nvar]
end
end

0 comments on commit 4b4e683

Please sign in to comment.