Skip to content

Commit 23d5070

Browse files
Merge pull request #938 from ErikQQY/qqy/MOI_NLP
Relax type in MOI NLP evaluator
2 parents ca06e9a + 62dbb62 commit 23d5070

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/OptimizationMOI/src/OptimizationMOI.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ using LinearAlgebra
1515

1616
const MOI = MathOptInterface
1717

18-
const DenseOrSparse{T} = Union{Matrix{T}, SparseMatrixCSC{T}}
19-
2018
function SciMLBase.requiresgradient(opt::Union{
2119
MOI.AbstractOptimizer, MOI.OptimizerWithAttributes})
2220
true

lib/OptimizationMOI/src/nlp.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
mutable struct MOIOptimizationNLPEvaluator{T, F <: OptimizationFunction, RC, LB, UB,
2-
I,
3-
JT <: DenseOrSparse{T}, HT <: DenseOrSparse{T},
4-
CHT <: DenseOrSparse{T}, S, CB} <:
2+
I, JT <: AbstractMatrix{T}, HT <: AbstractMatrix{T}, CHT <: AbstractMatrix{T}, S, CB} <:
53
MOI.AbstractNLPEvaluator
64
f::F
75
reinit_cache::RC

0 commit comments

Comments
 (0)