#include <Opt.h>
Inheritance diagram for OPTPP::OptimizeClass:

Public Member Functions | |
| OptimizeClass () | |
| OptimizeClass (int n) | |
| OptimizeClass (TOLS t) | |
| OptimizeClass (int n, TOLS t) | |
| virtual | ~OptimizeClass () |
| void | cleanup () |
| void | setMesg (const char *s) |
| Set message. | |
| void | setMethod (const char *s) |
| Set method of choice. | |
| void | setMaxStep (real x) |
| Set maximum steplength. | |
| void | setMinStep (real x) |
| Set minimum steplength. | |
| void | setStepTol (real x) |
| Set step tolerance. | |
| void | setFcnTol (real x) |
| Set function tolerance. | |
| void | setConTol (real x) |
| Set constraint tolerance. | |
| void | setGradTol (real x) |
| Set gradient tolerance. | |
| void | setLineSearchTol (real x) |
| Set linesearch tolerance. | |
| void | setMaxIter (int k) |
| Set maximum outer iterations. | |
| void | setMaxBacktrackIter (int k) |
| Set maximum backtrack iterations. | |
| void | setMaxFeval (int k) |
| Set maximum fcn evaluations. | |
| void | setUpdateModel (UPDATEFCN u) |
| Set update model. | |
| void | setXScale (NEWMAT::ColumnVector x) |
| Set step scale. | |
| void | setFcnScale (NEWMAT::ColumnVector x) |
| Set function scale. | |
| void | setFcnScale (NEWMAT::Real x) |
| Set function scale. | |
| void | setReturnCode (int val) |
| Set return code. | |
| int | getDim () const |
| int | getIter () const |
| int | getReturnCode () const |
| NEWMAT::ColumnVector | getXPrev () const |
| NEWMAT::ColumnVector | getXScale () const |
| NEWMAT::ColumnVector | getFcnScale () const |
| ostream * | getOutputFile () |
| int | setOutputFile (const char *filename, int append) |
| int | setOutputFile (int FileDescriptor) |
| int | setOutputFile (ostream &fout) |
| void | setDebug () |
| Set debug flag to true. | |
| bool | Debug () |
| virtual void | acceptStep (int, int)=0 |
| virtual int | checkConvg ()=0 |
| virtual NEWMAT::ColumnVector | computeSearch (NEWMAT::SymmetricMatrix &)=0 |
| virtual void | optimize ()=0 |
| virtual void | reset ()=0 |
| virtual void | readOptInput ()=0 |
| virtual void | printStatus (char *)=0 |
| virtual void | updateModel (int, int, NEWMAT::ColumnVector)=0 |
Protected Member Functions | |
| virtual real | stepTolNorm () const |
| virtual void | defaultReset (int n) |
| virtual void | defaultAcceptStep (int, int) |
| virtual void | defaultUpdateModel (int k, int ndim, NEWMAT::ColumnVector x) |
| void | copyright () |
Protected Attributes | |
| int | dim |
| Dimension of the problem. | |
| TOLS | tol |
| Various tolerances assoc. with the problem. | |
| NEWMAT::ColumnVector | sx |
| Diagonal Scaling Matrix for x. | |
| NEWMAT::ColumnVector | sfx |
| Diagonal Scaling Matrix for f. | |
| NEWMAT::ColumnVector | xprev |
| Previous iterate. | |
| real | fprev |
| Objective function value at xprev. | |
| NEWMAT::ColumnVector | mem_step |
| Current step direction. | |
| real | step_length |
| Length of step direction. | |
| char | method [80] |
| What method is being used. | |
| char | mesg [80] |
| Optional message. | |
| int | ret_code |
| Return code from Optimization class. | |
| int | iter_taken |
| Number of iterations taken. | |
| int | fcn_evals |
| Number of function evaluations taken. | |
| int | backtracks |
| Number of bactracks in linesearch. | |
| bool | debug_ |
| Print debug statements. | |
| int | trace |
| double | iter_time |
| Compute time per iteration. | |
| double | total_time |
| Total compute time. | |
| UPDATEFCN | update_fcn |
| User defined function to call after each nonlinear iteration. | |
| filebuf | file_buffer |
| ostream * | optout |
| Output file. | |
| int | optout_fd |
| Output file success. | |
Private Attributes | |
| int | x_optout_fd |
|
|
Default Constructor |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
Implemented in OPTPP::OptBaNewton, OPTPP::OptBaQNewton, OPTPP::OptBCEllipsoid, OPTPP::OptBCNewtonLike, OPTPP::OptCGLike, OPTPP::OptCG, OPTPP::OptConstrNewtonLike, OPTPP::OptGSS, OPTPP::OptLBFGSLike, OPTPP::OptLBFGS, OPTPP::OptNewtonLike, OPTPP::OptNPSOL, OPTPP::OptDirect, and OPTPP::OptPDS. |
|
|
|
|
|
|
|
Write copyright information to the screen |
|
|
|
|
||||||||||||
|
Provide default implementation of AcceptStep Reimplemented in OPTPP::OptBCNewtonLike, OPTPP::OptConstrNewtonLike, and OPTPP::OptNewtonLike. |
|
|
Provide default implementation of reset |
|
||||||||||||||||
|
Provide default implementation of UpdateModel |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set constraint tolerance.
|
|
|
Set debug flag to true.
|
|
|
Set function scale.
|
|
|
Set function scale.
|
|
|
Set function tolerance.
|
|
|
Set gradient tolerance.
|
|
|
Set linesearch tolerance.
|
|
|
Set maximum backtrack iterations.
|
|
|
Set maximum fcn evaluations.
|
|
|
Set maximum outer iterations.
Reimplemented in OPTPP::OptGSS. |
|
|
Set maximum steplength.
|
|
|
Set message.
|
|
|
Set method of choice.
|
|
|
Set minimum steplength.
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
Set return code.
|
|
|
Set step tolerance.
|
|
|
Set update model.
|
|
|
Set step scale.
|
|
|
Reimplemented in OPTPP::OptBCNewton, OPTPP::OptBCQNewton, OPTPP::OptCG, OPTPP::OptConstrNewton, OPTPP::OptLBFGS, and OPTPP::OptNewton. |
|
||||||||||||||||
|
|
Number of bactracks in linesearch.
|
|
|
Print debug statements.
|
|
|
Dimension of the problem.
|
|
|
Number of function evaluations taken.
|
|
|
|
|
|
Objective function value at xprev.
Reimplemented in OPTPP::OptGSS. |
|
|
Number of iterations taken.
Reimplemented in OPTPP::OptNPSOL. |
|
|
Compute time per iteration.
|
|
|
Current step direction.
|
|
|
Optional message.
|
|
|
What method is being used.
|
|
|
Output file.
|
|
|
Output file success.
|
|
|
Return code from Optimization class.
Reimplemented in OPTPP::OptNPSOL. |
|
|
Diagonal Scaling Matrix for f.
|
|
|
Length of step direction.
|
|
|
Diagonal Scaling Matrix for x.
|
|
|
Various tolerances assoc. with the problem.
|
|
|
Total compute time.
|
|
|
|
|
|
User defined function to call after each nonlinear iteration.
|
|
|
|
|
|
Previous iterate.
|