This PR fixes the issue in creating QuadraticModel{Float32, Vector{Float32}, Matrix{Float32}, Matrix{Float32}}, QuadraticModel{Float32, CuArray{Float32, 1, CUDA.Mem.DeviceBuffer}, CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}, CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}}, etc. Currently, running the following code throws an error
using QuadraticModels, LinearAlgebra
c = randn(Float32,10)
H = randn(Float32,10,10); H = H*H'+I
qm = QuadraticModel(c,H)
The issue is caused by not specifying the parameters for the NLPModelMeta constructor. With this change, running the same code returns the model correctly
This PR fixes the issue in creating
QuadraticModel{Float32, Vector{Float32}, Matrix{Float32}, Matrix{Float32}}
,QuadraticModel{Float32, CuArray{Float32, 1, CUDA.Mem.DeviceBuffer}, CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}, CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}}
, etc. Currently, running the following code throws an errorThe issue is caused by not specifying the parameters for the
NLPModelMeta
constructor. With this change, running the same code returns the model correctly