Skip to content

Commit a978323

Browse files
authored
Refactor JuMP.jl, moving methods into their related files (#3188)
The previous content of JuMP.jl was confusing. It wasn't ordered, and it contained a mix of methods that are better off living in other files.
1 parent df2c129 commit a978323

File tree

8 files changed

+751
-738
lines changed

8 files changed

+751
-738
lines changed

docs/src/manual/solutions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ If you are iteratively querying solution information and modifying a model,
305305
query all the results first, then modify the problem.
306306

307307
For example, instead of:
308-
```jldoctest; filter = r"\@ JuMP.+/src/JuMP.jl:[0-9]+"
308+
```jldoctest; filter = r"\@ JuMP.+/src/optimizer_interface.jl:[0-9]+"
309309
julia> model = Model(HiGHS.Optimizer);
310310
311311
julia> set_silent(model)
@@ -321,7 +321,7 @@ julia> set_upper_bound(x, 1)
321321
322322
julia> x_val = value(x)
323323
┌ Warning: The model has been modified since the last call to `optimize!` (or `optimize!` has not been called yet). If you are iteratively querying solution information and modifying a model, query all the results first, then modify the model.
324-
└ @ JuMP ~/work/JuMP.jl/JuMP.jl/src/JuMP.jl:1247
324+
└ @ JuMP ~/work/JuMP.jl/JuMP.jl/src/optimizer_interface.jl:712
325325
ERROR: OptimizeNotCalled()
326326
Stacktrace:
327327
[...]

docs/styles/Vocab/JuMP-Vocab/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ README
5050
recurse
5151
reimplemented
5252
src
53+
Stacktrace
5354
subexpression(?s)
5455
TODO
5556
transpiled

0 commit comments

Comments
 (0)