ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
newfmin.cpp File Reference

(Last Changed on August 01, 2022 for git-revision c159956c7a1088d1ddf4d0b926b1fcb26294216a.)

Source code for quasi-Newton function minimizer. More...

#include <fvar.hpp>
#include <admodel.h>
#include <signal.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>

Go to the source code of this file.

Macros

#define getch   getchar
 

Functions

void check_for_params_on_bounds (ostream &os)
 check for active parameters near bounds More...
 
void clrscr ()
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
double dafsqrt (double x)
 Robust square root. More...
 
std::string get_elapsed_time (const std::chrono::time_point< std::chrono::system_clock > &from, const std::chrono::time_point< std::chrono::system_clock > &to)
 
int get_maxpar (const dvector &g)
 
adstring get_maxparname (const int index)
 
adstring_array get_param_names ()
 Get names of active parameters. More...
 
ofstream logstream ("fmin.log")
 
void onintr (int k)
 
void print_values (const double &f, const dvector &x, const dvector &g)
 Description not yet available. More...
 
void tracing_message (int _traceflag, const char *s)
 Description not yet available. More...
 
void tracing_message (int _traceflag, const char *s, int *pn)
 Description not yet available. More...
 
void tracing_message (int _traceflag, const char *s, double *pd)
 Description not yet available. More...
 
void tracing_message (int _traceflag, const char *s, double d)
 Description not yet available. More...
 

Variables

int ctlc_flag
 Description not yet available. More...
 
int log_values_switch =0
 
int * pointer_to_phase = 0
 
std::chrono::time_point
< std::chrono::system_clock > 
start_time
 
int traceflag
 

Detailed Description

Source code for quasi-Newton function minimizer.

Definition in file newfmin.cpp.

Macro Definition Documentation

#define getch   getchar

Definition at line 54 of file newfmin.cpp.

Referenced by fmm::fmin().

Function Documentation

void check_for_params_on_bounds ( ostream &  os)

check for active parameters near bounds

Parameters
os- ostream object to write results to

Definition at line 293 of file output_checks.cpp.

Referenced by fmm::fmin().

void clrscr ( )

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Definition at line 8 of file clrscr.cpp.

Referenced by fmm::fmin(), fmmt1::fmin(), and fmmc::fmin().

double dafsqrt ( double  x)

Robust square root.

Parameters
xDouble precision argument $x; x \ge 0$.
Returns
$\sqrt{x}$ for $x>0$, 0 otherwise.

Definition at line 1295 of file newfmin.cpp.

Referenced by fmm::fmin(), and fmmt1::fmin().

std::string get_elapsed_time ( const std::chrono::time_point< std::chrono::system_clock > &  from,
const std::chrono::time_point< std::chrono::system_clock > &  to 
)

Definition at line 41 of file mod_sd.cpp.

Referenced by function_minimizer::computations(), fmm::fmin(), and print_elapsed_time().

int get_maxpar ( const dvector g)

Definition at line 186 of file newfmin.cpp.

Referenced by fmm::fmin().

adstring get_maxparname ( const int  index)

Definition at line 173 of file newfmin.cpp.

Referenced by fmm::fmin().

adstring_array get_param_names ( )

Get names of active parameters.

Definition at line 239 of file output_checks.cpp.

Referenced by get_maxparname(), and function_minimizer::hess_step().

ofstream logstream ( "fmin.log"  )

Referenced by print_values().

void onintr ( int  k)

Definition at line 77 of file newfmin.cpp.

void print_values ( const double &  f,
const dvector x,
const dvector g 
)

Description not yet available.

Parameters

Definition at line 156 of file newfmin.cpp.

Referenced by fmm::fmin().

void tracing_message ( int  _traceflag,
const char *  s 
)

Description not yet available.

Parameters

Definition at line 94 of file newfmin.cpp.

Referenced by function_minimizer::computations(), function_minimizer::computations1(), fmm::fmin(), and function_minimizer::minimize().

void tracing_message ( int  _traceflag,
const char *  s,
int *  pn 
)

Description not yet available.

Parameters

Definition at line 109 of file newfmin.cpp.

void tracing_message ( int  _traceflag,
const char *  s,
double *  pd 
)

Description not yet available.

Parameters

Definition at line 124 of file newfmin.cpp.

void tracing_message ( int  _traceflag,
const char *  s,
double  d 
)

Description not yet available.

Parameters

Definition at line 139 of file newfmin.cpp.

Variable Documentation

int ctlc_flag

Description not yet available.

Parameters

Definition at line 68 of file gradstrc.cpp.

int log_values_switch =0

Definition at line 149 of file newfmin.cpp.

Referenced by fmm::fmin().

int* pointer_to_phase = 0

Definition at line 86 of file newfmin.cpp.

Referenced by fmm::fmin(), and initial_params::initial_params().

std::chrono::time_point<std::chrono::system_clock> start_time

Definition at line 171 of file newfmin.cpp.

Referenced by function_minimizer::computations(), and fmm::fmin().

int traceflag

Definition at line 18 of file fvar1.cpp.