File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ using NLPModels
8
8
9
9
include (" logger.jl" )
10
10
include (" stats.jl" )
11
+ include (" solver.jl" )
11
12
12
13
end
Original file line number Diff line number Diff line change
1
+ export AbstractSolver, solve!
2
+
1
3
" Abstract type from which JSO solvers derive."
2
4
abstract type AbstractSolver end
3
5
6
+ """
7
+ solve!(solver, model; kwargs...)
8
+ solve!(solver, model, stats; kwargs...)
9
+
10
+ Apply `solver` to `model`.
11
+
12
+ # Arguments
13
+
14
+ - `solver::AbstractSolver`: solver structure to hold all storage necessary for a solve
15
+ - `model::AbstractNLPModel`: the model solved, see `NLPModels.jl`
16
+ - `stats::GenericExecutionStats`: stats structure to hold solution information.
17
+
18
+ The first invocation allocates and returns a new `GenericExecutionStats`.
19
+ The second one fills out a preallocated stats structure and allows for efficient re-solves.
20
+
21
+ The `kwargs` are passed to the solver.
22
+ """
4
23
function solve! (solver:: AbstractSolver , model:: AbstractNLPModel ; kwargs... )
5
24
stats = GenericExecutionStats (:unknown , model)
6
25
solve! (solver, model, stats; kwargs... )
You can’t perform that action at this time.
0 commit comments