Skip to content

Commit 62dbb62

Browse files
committed
Type stable struct
1 parent c2bbcbe commit 62dbb62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/OptimizationMOI/src/nlp.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mutable struct MOIOptimizationNLPEvaluator{T, F <: OptimizationFunction, RC, LB, UB,
2-
I, S, CB} <:
2+
I, JT <: AbstractMatrix{T}, HT <: AbstractMatrix{T}, CHT <: AbstractMatrix{T}, S, CB} <:
33
MOI.AbstractNLPEvaluator
44
f::F
55
reinit_cache::RC
@@ -9,9 +9,9 @@ mutable struct MOIOptimizationNLPEvaluator{T, F <: OptimizationFunction, RC, LB,
99
lcons::Vector{T}
1010
ucons::Vector{T}
1111
sense::S
12-
J::AbstractMatrix{T}
13-
H::AbstractMatrix{T}
14-
cons_H::Vector{AbstractMatrix{T}}
12+
J::JT
13+
H::HT
14+
cons_H::Vector{CHT}
1515
callback::CB
1616
iteration::Int
1717
obj_expr::Union{Expr, Nothing}

0 commit comments

Comments
 (0)