Skip to content

Commit bf45f53

Browse files
up compat solvercore 0.3 (#109)
1 parent 19c84c1 commit bf45f53

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LinearOperators = "2.2.2, 2.3"
1818
NLPModels = "0.18, 0.19"
1919
NLPModelsModifiers = "0.6"
2020
Requires = "0.3, 0.4, 0.5, 1.0"
21-
SolverCore = "0.2.2"
21+
SolverCore = "0.3"
2222
SparseMatricesCOO = "0.1.1, 0.2"
2323
julia = "^1.0.0"
2424

src/presolve/presolve.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,17 +301,17 @@ function presolve(
301301

302302
if qmp.unbounded
303303
return GenericExecutionStats(
304-
:unbounded,
305304
qm,
305+
status = :unbounded,
306306
solution = qmp.xps,
307307
iter = 0,
308308
elapsed_time = time() - start_time,
309309
solver_specific = Dict(:presolvedQM => nothing),
310310
)
311311
elseif infeasible
312312
return GenericExecutionStats(
313-
:infeasible,
314313
qm,
314+
status = :infeasible,
315315
solution = qmp.xps,
316316
iter = 0,
317317
elapsed_time = time() - start_time,
@@ -321,8 +321,8 @@ function presolve(
321321
feasible = all(qm.meta.lcon .<= qm.data.A * qmp.xps .<= qm.meta.ucon)
322322
s = qm.data.c .+ Symmetric(qm.data.H, :L) * qmp.xps
323323
return GenericExecutionStats(
324-
feasible ? :first_order : :infeasible,
325324
qm,
325+
status = feasible ? :first_order : :infeasible,
326326
solution = qmp.xps,
327327
objective = obj(qm, qmp.xps),
328328
multipliers = zeros(T, ncon),
@@ -364,8 +364,8 @@ function presolve(
364364
)
365365
ps = PresolvedQuadraticModel(psmeta, Counters(), psdata, psd)
366366
return GenericExecutionStats(
367-
:unknown,
368367
ps,
368+
status = :unknown,
369369
iter = 0,
370370
elapsed_time = time() - start_time,
371371
solver_specific = Dict(:presolvedQM => ps, :psoperations => operations),

0 commit comments

Comments
 (0)