We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get the following error
no method matching sparse(::Float64)
when I use the following code
jacobian = CustomGradFunction(calc_sse, calc_der) model = Model(jacobian) addvar!(model, zeros(540), zeros(540).+500, init = x0) alg = NLoptAlg(:LD_MMA) options = NLoptOptions(ftol_rel = 1e-6) @time result = optimize(model, alg, x0, options = options)
The functions calc_sse and calc_der work fine as is.
The text was updated successfully, but these errors were encountered:
Make sure calc_der returns a vector. If there is only 1 variable, it should be a vector of length 1.
calc_der
Sorry, something went wrong.
It should be a vector of length 540 in this case it seems.
No branches or pull requests
I get the following error
no method matching sparse(::Float64)
when I use the following code
The functions calc_sse and calc_der work fine as is.
The text was updated successfully, but these errors were encountered: