Skip to content

Commit 39681a0

Browse files
authored
Update model.jl
1 parent a822321 commit 39681a0

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/model.jl

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,16 @@ mutable struct CUTEstModel{T} <: AbstractNLPModel{T, Vector{T}}
1515
workspace_nvar::Vector{T}
1616
workspace_ncon::Vector{T}
1717

18-
# Preallocated coordinate format vectors
19-
jac_coord_rows::Vector{Cint} # nnzj elements for Jacobian row indices
20-
jac_coord_cols::Vector{Cint} # nnzj elements for Jacobian column indices
21-
jac_coord_vals::Vector{T} # nnzj elements for Jacobian values
22-
hess_coord_vals::Vector{T} # nnzh elements for Hessian values
18+
jac_coord_rows::Vector{Cint}
19+
jac_coord_cols::Vector{Cint}
20+
jac_coord_vals::Vector{T}
21+
hess_coord_vals::Vector{T}
2322

24-
# Preallocated constraint evaluation vectors
25-
cons_vals::Vector{T} # ncon elements for constraint values
26-
cons_nln_vals::Vector{T} # nnln elements for nonlinear constraints subset
23+
cons_vals::Vector{T}
24+
cons_nln_vals::Vector{T}
2725

28-
# Type conversion workspace vectors
29-
input_workspace::Vector{T} # nvar elements for input conversion
30-
output_workspace::Vector{T} # max(nvar, ncon) elements for output conversion
26+
input_workspace::Vector{T}
27+
output_workspace::Vector{T}
3128

3229
Jval::Vector{T}
3330
Jvar::Vector{Cint}

0 commit comments

Comments
 (0)