LSST Applications g063fba187b+cac8b7c890,g0f08755f38+6aee506743,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+b4475c5878,g1dcb35cd9c+8f9bc1652e,g20f6ffc8e0+6aee506743,g217e2c1bcf+73dee94bd0,g28da252d5a+1f19c529b9,g2bbee38e9b+3f2625acfc,g2bc492864f+3f2625acfc,g3156d2b45e+6e55a43351,g32e5bea42b+1bb94961c2,g347aa1857d+3f2625acfc,g35bb328faa+a8ce1bb630,g3a166c0a6a+3f2625acfc,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+8a9e676b2a,g7af13505b9+809c143d88,g80478fca09+6ef8b1810f,g82479be7b0+f568feb641,g858d7b2824+6aee506743,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+2903d499ea,gb58c049af0+d64f4d3760,gc28159a63d+3f2625acfc,gcab2d0539d+b12535109e,gcf0d15dbbd+46a3f46ba9,gda6a2b7d83+46a3f46ba9,gdaeeff99f8+1711a396fd,ge79ae78c31+3f2625acfc,gef2f8181fd+0a71e47438,gf0baf85859+c1f95f4921,gfa517265be+6aee506743,gfa999e8aa5+17cd334064,w.2024.51
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lsst::meas::modelfit::OptimizerControl Class Reference

Configuration object for Optimizer. More...

#include <optimizer.h>

Public Member Functions

 OptimizerControl ()
 

Public Attributes

bool noSR1Term
 "If true, ignore the SR1 update term in the Hessian, resulting in a Levenberg-Marquardt-like method" ;
 
double skipSR1UpdateThreshold
 "Skip the SR1 update if |v||s| / (|v||s|) is less than this threshold" ;
 
double minTrustRadiusThreshold
 "If the trust radius falls below this threshold, consider the algorithm converged" ;
 
double gradientThreshold
 "If the maximum of the gradient falls below this threshold, consider the algorithm converged" ;
 
double numDiffRelStep
 "relative step size used for numerical derivatives (added to other steps)" ;
 
double numDiffAbsStep
 "absolute step size used for numerical derivatives (added to other steps)" ;
 
double numDiffTrustRadiusStep
 "step size (in units of trust radius) used for numerical derivatives (added to relative step)" ;
 
double stepAcceptThreshold
 "steps with reduction ratio greater than this are accepted" ;
 
double trustRegionInitialSize
 "the initial trust region will be set to this value" ;
 
double trustRegionGrowReductionRatio
 "steps with reduction radio greater than this may increase the trust radius" ;
 
double trustRegionGrowStepFraction
 "steps with length this fraction of the trust radius may increase the trust radius" ;
 
double trustRegionGrowFactor
 "when increase the trust region size, multiply the radius by this factor" ;
 
double trustRegionShrinkReductionRatio
 "steps with reduction radio less than this will decrease the trust radius" ;
 
double trustRegionShrinkFactor
 "when reducing the trust region size, multiply the radius by this factor" ;
 
double trustRegionSolverTolerance
 "value passed as the tolerance to solveTrustRegion" ;
 
int maxInnerIterations
 "maximum number of iterations (i.e. function evaluations and trust region subproblems) per step" ;
 
int maxOuterIterations
 "maximum number of steps" ;
 
bool doSaveIterations
 "whether to save all iterations for debugging purposes" ;
 

Detailed Description

Configuration object for Optimizer.

Many of these configuration options pertain to how the trust region is updated. It's easiest to understand these together rather than separately. At each iteration, a quadratic model of the objective function is formed. We can use this model to predict how we expect the objective function to behave over a step, and compare it to how the actual objective function behaves. To do this, we'll use the ratio of the actual reduction in the objective function to the predicted reduction in the objective function, and call this \(\rho\). Then,

Definition at line 187 of file optimizer.h.

Constructor & Destructor Documentation

◆ OptimizerControl()

lsst::meas::modelfit::OptimizerControl::OptimizerControl ( )
inline

Definition at line 279 of file optimizer.h.

279 :
280 noSR1Term(false), skipSR1UpdateThreshold(1E-8),
282 gradientThreshold(1E-5),
294 doSaveIterations(false)
295 {}
double trustRegionGrowStepFraction
"steps with length this fraction of the trust radius may increase the trust radius" ;
Definition optimizer.h:242
bool noSR1Term
"If true, ignore the SR1 update term in the Hessian, resulting in a Levenberg-Marquardt-like method" ...
Definition optimizer.h:192
double trustRegionShrinkFactor
"when reducing the trust region size, multiply the radius by this factor" ;
Definition optimizer.h:257
double trustRegionShrinkReductionRatio
"steps with reduction radio less than this will decrease the trust radius" ;
Definition optimizer.h:252
double numDiffAbsStep
"absolute step size used for numerical derivatives (added to other steps)" ;
Definition optimizer.h:217
double numDiffTrustRadiusStep
"step size (in units of trust radius) used for numerical derivatives (added to relative step)" ;
Definition optimizer.h:222
double gradientThreshold
"If the maximum of the gradient falls below this threshold, consider the algorithm converged" ;
Definition optimizer.h:207
double numDiffRelStep
"relative step size used for numerical derivatives (added to other steps)" ;
Definition optimizer.h:212
double trustRegionGrowReductionRatio
"steps with reduction radio greater than this may increase the trust radius" ;
Definition optimizer.h:237
double trustRegionGrowFactor
"when increase the trust region size, multiply the radius by this factor" ;
Definition optimizer.h:247
int maxInnerIterations
"maximum number of iterations (i.e. function evaluations and trust region subproblems) per step" ;
Definition optimizer.h:267
double skipSR1UpdateThreshold
"Skip the SR1 update if |v||s| / (|v||s|) is less than this threshold" ;
Definition optimizer.h:197
double minTrustRadiusThreshold
"If the trust radius falls below this threshold, consider the algorithm converged" ;
Definition optimizer.h:202
bool doSaveIterations
"whether to save all iterations for debugging purposes" ;
Definition optimizer.h:277
double stepAcceptThreshold
"steps with reduction ratio greater than this are accepted" ;
Definition optimizer.h:227
int maxOuterIterations
"maximum number of steps" ;
Definition optimizer.h:272
double trustRegionInitialSize
"the initial trust region will be set to this value" ;
Definition optimizer.h:232
double trustRegionSolverTolerance
"value passed as the tolerance to solveTrustRegion" ;
Definition optimizer.h:262

Member Data Documentation

◆ doSaveIterations

bool lsst::meas::modelfit::OptimizerControl::doSaveIterations

"whether to save all iterations for debugging purposes" ;

Definition at line 277 of file optimizer.h.

◆ gradientThreshold

double lsst::meas::modelfit::OptimizerControl::gradientThreshold

"If the maximum of the gradient falls below this threshold, consider the algorithm converged" ;

Definition at line 207 of file optimizer.h.

◆ maxInnerIterations

int lsst::meas::modelfit::OptimizerControl::maxInnerIterations

"maximum number of iterations (i.e. function evaluations and trust region subproblems) per step" ;

Definition at line 267 of file optimizer.h.

◆ maxOuterIterations

int lsst::meas::modelfit::OptimizerControl::maxOuterIterations

"maximum number of steps" ;

Definition at line 272 of file optimizer.h.

◆ minTrustRadiusThreshold

double lsst::meas::modelfit::OptimizerControl::minTrustRadiusThreshold

"If the trust radius falls below this threshold, consider the algorithm converged" ;

Definition at line 202 of file optimizer.h.

◆ noSR1Term

bool lsst::meas::modelfit::OptimizerControl::noSR1Term

"If true, ignore the SR1 update term in the Hessian, resulting in a Levenberg-Marquardt-like method" ;

Definition at line 192 of file optimizer.h.

◆ numDiffAbsStep

double lsst::meas::modelfit::OptimizerControl::numDiffAbsStep

"absolute step size used for numerical derivatives (added to other steps)" ;

Definition at line 217 of file optimizer.h.

◆ numDiffRelStep

double lsst::meas::modelfit::OptimizerControl::numDiffRelStep

"relative step size used for numerical derivatives (added to other steps)" ;

Definition at line 212 of file optimizer.h.

◆ numDiffTrustRadiusStep

double lsst::meas::modelfit::OptimizerControl::numDiffTrustRadiusStep

"step size (in units of trust radius) used for numerical derivatives (added to relative step)" ;

Definition at line 222 of file optimizer.h.

◆ skipSR1UpdateThreshold

double lsst::meas::modelfit::OptimizerControl::skipSR1UpdateThreshold

"Skip the SR1 update if |v||s| / (|v||s|) is less than this threshold" ;

Definition at line 197 of file optimizer.h.

◆ stepAcceptThreshold

double lsst::meas::modelfit::OptimizerControl::stepAcceptThreshold

"steps with reduction ratio greater than this are accepted" ;

Definition at line 227 of file optimizer.h.

◆ trustRegionGrowFactor

double lsst::meas::modelfit::OptimizerControl::trustRegionGrowFactor

"when increase the trust region size, multiply the radius by this factor" ;

Definition at line 247 of file optimizer.h.

◆ trustRegionGrowReductionRatio

double lsst::meas::modelfit::OptimizerControl::trustRegionGrowReductionRatio

"steps with reduction radio greater than this may increase the trust radius" ;

Definition at line 237 of file optimizer.h.

◆ trustRegionGrowStepFraction

double lsst::meas::modelfit::OptimizerControl::trustRegionGrowStepFraction

"steps with length this fraction of the trust radius may increase the trust radius" ;

Definition at line 242 of file optimizer.h.

◆ trustRegionInitialSize

double lsst::meas::modelfit::OptimizerControl::trustRegionInitialSize

"the initial trust region will be set to this value" ;

Definition at line 232 of file optimizer.h.

◆ trustRegionShrinkFactor

double lsst::meas::modelfit::OptimizerControl::trustRegionShrinkFactor

"when reducing the trust region size, multiply the radius by this factor" ;

Definition at line 257 of file optimizer.h.

◆ trustRegionShrinkReductionRatio

double lsst::meas::modelfit::OptimizerControl::trustRegionShrinkReductionRatio

"steps with reduction radio less than this will decrease the trust radius" ;

Definition at line 252 of file optimizer.h.

◆ trustRegionSolverTolerance

double lsst::meas::modelfit::OptimizerControl::trustRegionSolverTolerance

"value passed as the tolerance to solveTrustRegion" ;

Definition at line 262 of file optimizer.h.


The documentation for this class was generated from the following file: