Skip to content

Commit ead2a9e

Browse files
authored
Update model.jl
1 parent 0da7b47 commit ead2a9e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/model.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,18 +308,15 @@ function CUTEstModel{T}(
308308
workspace_nvar = Vector{T}(undef, nvar)
309309
workspace_ncon = Vector{T}(undef, ncon)
310310

311-
# Preallocate new coordinate format vectors (Issue #392)
312311
jac_coord_rows = Vector{Cint}(undef, nnzj)
313312
jac_coord_cols = Vector{Cint}(undef, nnzj)
314313
jac_coord_vals = Vector{T}(undef, nnzj)
315314
hess_coord_vals = Vector{T}(undef, nnzh)
316315

317-
# Preallocate constraint evaluation vectors
318316
cons_vals = Vector{T}(undef, ncon)
319-
nnln = count(.!linear) # Number of nonlinear constraints
317+
nnln = count(.!linear)
320318
cons_nln_vals = Vector{T}(undef, nnln)
321319

322-
# Preallocate type conversion workspace vectors
323320
input_workspace = Vector{T}(undef, nvar)
324321
output_workspace = Vector{T}(undef, max(nvar, ncon))
325322

0 commit comments

Comments
 (0)