Skip to content

Commit

Permalink
Merge pull request #2592 from markdewing/print_param_deriv
Browse files Browse the repository at this point in the history
Add code to help test parameter derivatives
  • Loading branch information
ye-luo committed Jul 23, 2020
2 parents 29debaa + 7fbf707 commit 83e7898
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 469 deletions.
2 changes: 2 additions & 0 deletions src/Optimize/OptimizeBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ class CostFunctionBase

virtual Return_t Params(int i) const = 0;

virtual std::string getParamName(int i) const = 0;

virtual Return_rt Cost(bool needGrad = true) = 0;

virtual void GradCost(std::vector<Return_rt>& PGradient, const std::vector<Return_rt>& PM, Return_rt FiniteDiff = 0) = 0;
Expand Down

0 comments on commit 83e7898

Please sign in to comment.