Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed error occuring when no parameter changes are generated.
Sometimes NR (or perhaps other methods) won't actually generate any parameter changes. If it's due to cutoffs, this may be the intended effect. If it's not due to cutoffs, you may want to reconsider what parameters you're optimizing, what methods you're using, etc. For example, if you're trying to optimize a parameter that has no effect on the objective function, then NR won't generate changes. You don't want to include parameters that have no affect on the penalty function! Anyway, if a method doesn't actually generate any parameter changes, an error would occur when the function "cleanup" would attempt to iterate over the changes. Now, it checks that changes exist before attempting to iterate.
- Loading branch information