Skip to content

Commit 6e5e330

Browse files
Merge pull request #1025 from ErikQQY/qqy/ipoptcache
Relax Matrix type in IpoptCache
2 parents d4b022b + dc902c7 commit 6e5e330

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/OptimizationIpopt/src/OptimizationIpopt.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ using SymbolicIndexingInterface
99

1010
export IpoptOptimizer
1111

12-
const DenseOrSparse{T} = Union{Matrix{T}, SparseMatrixCSC{T}}
13-
1412
"""
1513
IpoptOptimizer(; kwargs...)
1614

lib/OptimizationIpopt/src/cache.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mutable struct IpoptCache{T, F <: OptimizationFunction, RC, LB, UB, I, S,
2-
JT <: DenseOrSparse{T}, HT <: DenseOrSparse{T},
3-
CHT <: DenseOrSparse{T}, CB, O} <: SciMLBase.AbstractOptimizationCache
2+
JT <: AbstractMatrix{T}, HT <: AbstractMatrix{T},
3+
CHT <: AbstractMatrix{T}, CB, O} <: SciMLBase.AbstractOptimizationCache
44
const f::F
55
const n::Int
66
const num_cons::Int

0 commit comments

Comments
 (0)