|
Public Member Functions |
| | OptConstrNewtonLike () |
| | OptConstrNewtonLike (int n) |
| | OptConstrNewtonLike (int n, UPDATEFCN u) |
| | OptConstrNewtonLike (int n, TOLS t) |
| virtual | ~OptConstrNewtonLike () |
| virtual void | acceptStep (int k, int step_type) |
| | Accept this step and update the nonlinear model.
|
| virtual NEWMAT::ColumnVector | computeSearch (NEWMAT::SymmetricMatrix &H) |
| | Solve for the Newton direction.
|
| virtual void | updateModel (int k, int ndim, NEWMAT::ColumnVector x) |
| virtual void | reset () |
| virtual int | checkConvg () |
| | Check to see if algorithm satisfies the convergence criterion.
|
| virtual int | checkDeriv () |
| | Compare the analytic gradient with the finite-difference approximation.
|
| virtual int | computeStep (NEWMAT::ColumnVector sk) |
| | Compute the steplength along the search direction. If an acceptable step not found, returns an error code = -1.
|
| virtual real | computeMaxStep (NEWMAT::ColumnVector sk) |
| virtual void | initOpt () |
| | Initialize algorithmic parameters.
|
| virtual void | initHessian () |
| | Compute the Hessian or its approximation at the initial point.
|
| virtual double | initTrustRegionSize () const |
| | Initialize the radius of the trust-region.
|
| virtual void | optimize () |
| | Invoke a constrained Newton's method.
|
| virtual void | readOptInput () |
| | Read user-specified input options from a file.
|
| int | checkAnalyticFDGrad () |
| | Check finite difference approximation with analytic derivatives.
|
| int | getFevals () const |
| int | getGevals () const |
| real | getTRSize () const |
| void | setTRSize (real delta) |
| | Set radius of trust-region.
|
| real | getGradMult () const |
| void | setGradMult (real tau) |
| | Set gradient multiplier which is used to compute radius of trust-region.
|
| int | getSearchSize () const |
| void | setSearchSize (int sss) |
| | Set number of points in search scheme for trustpds strategy.
|
| bool | getWarmStart () const |
| void | UseWarmStart (NEWMAT::SymmetricMatrix &H) |
| void | setSearchStrategy (SearchStrategy search) |
| SearchStrategy | getSearchStrategy () const |
| | Set globalization strategy for optimization algorithm.
|
| void | setDerivOption (DerivOption d) |
| DerivOption | getDerivOption () const |
| | Set type of finite difference approximation (forward, backward, or central).
|
| NEWMAT::ColumnVector | getEqualityMultiplier () const |
| void | setEqualityMultiplier (const NEWMAT::ColumnVector &ymult) |
| | Store the current Lagrangian multipliers corresponding to equality constraints.
|
| NEWMAT::ColumnVector | getInequalityMultiplier () const |
| void | setInequalityMultiplier (const NEWMAT::ColumnVector &zmult) |
| | Store the current Lagrangian multipliers corresponding to inequality constraints.
|
| NEWMAT::ColumnVector | getSlacks () const |
| void | setSlacks (const NEWMAT::ColumnVector &slackVar) |
| | Store the current slack vector.
|
| MeritFcn | getMeritFcn () const |
| virtual void | setMeritFcn (MeritFcn option) |
| | Specify the merit function to used in step acceptance test.
|
| NEWMAT::ColumnVector | getGradL () const |
| virtual void | setGradL (NEWMAT::ColumnVector gradl_value) |
| | Store the gradient of the Lagrangian at the current iteration.
|
| NEWMAT::ColumnVector | getGradLPrev () const |
| virtual void | setGradLPrev (NEWMAT::ColumnVector gradl_value) |
| | Store the gradient of the Lagrangian at the previous iteration.
|
| NEWMAT::ColumnVector | getConstraintResidual () const |
| virtual void | setConstraintResidual (const NEWMAT::ColumnVector &constraint_value) |
| | Store the residuals of the constraints at the current iteration.
|
| NEWMAT::Matrix | getConstraintGradient () const |
| virtual void | setConstraintGradient (const NEWMAT::Matrix &constraint_grad) |
| | Store the current gradients of the constraints.
|
| real | getCost () const |
| void | setCost (real value) |
| | Store current value of merit function.
|
| bool | getFeasibilityRecoveryFlag () const |
| void | setFeasibilityRecoveryFlag (bool flag) |
| | Set switch to turn on feasibility recovery method.
|
| int | getMaxFeasIter () const |
| void | setMaxFeasIter (int k) |
| | Set maximum number of iterations for feasibility recovery method of trust-region.
|
| NEWMAT::SymmetricMatrix | getHessian () const |
| void | setHessian (NEWMAT::SymmetricMatrix &H) |
| | Store current Hessian matrix.
|
| virtual NEWMAT::SymmetricMatrix | updateH (NEWMAT::SymmetricMatrix &H, int k)=0 |
| | Compute the Hessian of the Lagrangrian or its approximation at iteration k.
|
| NEWMAT::ColumnVector | computeFFK1Ind (const NEWMAT::ColumnVector &xc) |
| | Compute the active set according to Facchinei, Fischer, and Kanzow indicator.
|
| NEWMAT::ColumnVector | computeFFK2Ind (const NEWMAT::ColumnVector &xc) |
| | Compute the active set according to Facchinei, Fischer, and Kanzow indicator.
|
| NEWMAT::ColumnVector | computeTapiaInd (const NEWMAT::ColumnVector &step) |
| | Compute the Tapia indicators for the constrained problem.
|
| void | printStatus (char *) |
| | Print status of the constrained Newton's method.
|
| void | printMultipliers (char *) |
| | Output the Lagrangian multipliers to the screen.
|
| void | fPrintMultipliers (ostream *nlpout, char *) |
| | Print the Lagrangian multipliers to a file.
|
| void | fPrintSecSuff (ostream *nlpout, NEWMAT::ColumnVector &info) |
| | Print second order sufficiency information to a file.
|
Protected Member Functions |
| virtual NLP1 * | nlprob () const =0 |
| | returns an NLP1 pointer
|
| void | defaultAcceptStep (int, int) |
| NEWMAT::ColumnVector | defaultComputeSearch (NEWMAT::SymmetricMatrix &) |
Protected Attributes |
| int | me |
| | Number of equality constraints.
|
| int | mi |
| | Number of inequality constraints.
|
| int | grad_evals |
| | Number of gradient evaluations.
|
| NEWMAT::ColumnVector | gprev |
| | Gradient at previous iteration.
|
| NEWMAT::ColumnVector | z |
| | Lagrange mult. corr. to ineq constraints.
|
| NEWMAT::ColumnVector | y |
| | Lagrange mult. corr. to eq constraints.
|
| NEWMAT::ColumnVector | s |
| | Slack variables corr. to ineq. constraints.
|
| NEWMAT::ColumnVector | constrType |
| | Vector which contains the type of constraint.
|
| NEWMAT::ColumnVector | constraintResidual |
| | Constraint residual at xc.
|
| NEWMAT::ColumnVector | gradl |
| | Current gradient of the lagrangian.
|
| NEWMAT::ColumnVector | gradlprev |
| | Previous gradient of the lagrangian.
|
| NEWMAT::Matrix | constraintGradient |
| | Current constraint gradient.
|
| NEWMAT::Matrix | constraintGradientPrev |
| | Previous constraint gradient.
|
| NEWMAT::SymmetricMatrix | Hessian |
| | Current Hessian.
|
| NEWMAT::SymmetricMatrix | hessl |
| | Current Hessian of the lagrangian.
|
| SearchStrategy | strategy |
| | User-specified globalization strategy.
|
| DerivOption | finitediff |
| | User-specified derivative option.
|
| MeritFcn | mfcn |
| | Merit function option.
|
| real | TR_size |
| | Size of the trust region radius.
|
| real | gradMult |
| | Gradient multiplier to compute TR_size.
|
| int | searchSize |
| | Search pattern size for TRPDS.
|
| real | cost |
| | Value of the merit function.
|
| bool | WarmStart |
| bool | feas_flag |
| | Switch to turn on the feasibility recovery method.
|
| int | max_feas_iter |
| | Maximize number of iterations to achieve feasibility.
|
Friends |
| int | trustregion (NLP1 *, ostream *, NEWMAT::SymmetricMatrix &, NEWMAT::ColumnVector &, NEWMAT::ColumnVector &, real &, real &, real stpmax, real stpmin) |
| int | trustpds (NLP1 *, ostream *, NEWMAT::SymmetricMatrix &, NEWMAT::ColumnVector &, NEWMAT::ColumnVector &, real &, real &, real stpmax, real stpmin, int) |