Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/OptimizationMOI/src/OptimizationMOI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ using LinearAlgebra

const MOI = MathOptInterface

const DenseOrSparse{T} = Union{Matrix{T}, SparseMatrixCSC{T}}

function SciMLBase.requiresgradient(opt::Union{
MOI.AbstractOptimizer, MOI.OptimizerWithAttributes})
true
Expand Down
10 changes: 4 additions & 6 deletions lib/OptimizationMOI/src/nlp.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
mutable struct MOIOptimizationNLPEvaluator{T, F <: OptimizationFunction, RC, LB, UB,
I,
JT <: DenseOrSparse{T}, HT <: DenseOrSparse{T},
CHT <: DenseOrSparse{T}, S, CB} <:
I, S, CB} <:
MOI.AbstractNLPEvaluator
f::F
reinit_cache::RC
Expand All @@ -11,9 +9,9 @@ mutable struct MOIOptimizationNLPEvaluator{T, F <: OptimizationFunction, RC, LB,
lcons::Vector{T}
ucons::Vector{T}
sense::S
J::JT
H::HT
cons_H::Vector{CHT}
J::AbstractMatrix{T}
H::AbstractMatrix{T}
cons_H::Vector{AbstractMatrix{T}}
callback::CB
iteration::Int
obj_expr::Union{Expr, Nothing}
Expand Down
Loading