Skip to content

Commit

Permalink
Fix error handling for parameter dimension check
Browse files Browse the repository at this point in the history
  • Loading branch information
lassepe committed Sep 1, 2023
1 parent 8231426 commit 47b9796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function solve(
length(initial_guess) == get_problem_size(problem) ||
throw(ArgumentError("initial guess must have length $(get_problem_size(problem))"))
length(θ) == get_parameter_dimension(problem) ||
throw(ArgumentError("θ must have length $(get_parameter_size(problem))"))
throw(ArgumentError("θ must have length $(get_parameter_dimension(problem))"))

(; f!, jacobian_z!, lower_bounds, upper_bounds) = problem

Expand Down

0 comments on commit 47b9796

Please sign in to comment.