Skip to content

Commit 1001fcb

Browse files
committed
abstract solver type and behavior
1 parent a1c9dbc commit 1001fcb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/solver.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"Abstract type from which JSO solvers derive."
2+
abstract type AbstractSolver end
3+
4+
function solve!(solver::AbstractSolver, model::AbstractNLPModel; kwargs...)
5+
stats = GenericExecutionStats(:unknown, model)
6+
solve!(solver, model, stats; kwargs...)
7+
end
8+
9+
function solve!(::AbstractSolver, ::AbstractNLPModel, ::GenericExecutionStats; kwargs...) end

0 commit comments

Comments
 (0)