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

(Last Changed on June 29, 2022 for git-revision be1526a357a87937cf302cae3cdbcf78712362c7.)

Description not yet available. More...

#include <unistd.h>
#include <fvar.hpp>
#include <ctype.h>
#include <string.h>
#include <iostream>
#include <signal.h>
#include <math.h>

Go to the source code of this file.

Macros

#define EPS   1.0e-10
 
#define FREEALL   free_vector(xi,1,n);free_vector(h,1,n);free_vector(g,1,n);
 
#define getch   getchar
 
#define ITMAX   5000
 

Functions

void bracket_report (const dvector &theta, const double &left_bracket, double &right_bracket, const dvector &d)
 Description not yet available. More...
 
void clrscr ()
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
double cubic_interpolation (const double &u, const double &v, const double &aa, const double &bb, double &ap, const double &bp)
 Description not yet available. More...
 
void derch (const double &_f, const dvector &_x, const dvector &_gg, int n, const int &_ireturn)
 Description not yet available. More...
 
void do_extrapolate (const double &_left_bracket, const double &_left_bracket_value, dvector &left_bracket_gradient, const double &_right_bracket, double &right_bracket_value, const dvector &_right_bracket_gradient, const dvector &theta, dvector &d, const int &_J, const double &rho_0, long int &ifn, const int &_ifnex, int &ext_flag, const double &_rho_1, const double &rf, const dvector &g1)
 Description not yet available. More...
 
double do_interpolate (const double &_fret, const double &_left_bracket, double &left_bracket_value, const dvector &_left_bracket_gradient, double &right_bracket, const double &_right_bracket_value, dvector &right_bracket_gradient, const dvector &theta, const dvector &d, const int &_J, long int &ifn, const double &crit1, int &int_flag, const double &_rho_1, const double &Psi_2, const dvector &g1)
 Description not yet available. More...
 
double max (const double &, const double &)
 
double min (const double &, const double &)
 
double mylinmin (const double &fret, const double &Phi_i, const dvector &theta1, const dvector &q_i, fmmc &cs)
 version of mylinmin which uses the deviative to help bracket the minimum More...
 
int onintr (int *k)
 
double Phi (const dvector &)
 

Variables

int ctlc_flag
 

Detailed Description

Description not yet available.

Definition in file conjprod.cpp.

Macro Definition Documentation

#define EPS   1.0e-10

Definition at line 137 of file conjprod.cpp.

#define FREEALL   free_vector(xi,1,n);free_vector(h,1,n);free_vector(g,1,n);

Definition at line 138 of file conjprod.cpp.

#define getch   getchar

Definition at line 66 of file conjprod.cpp.

Referenced by derch(), and fmmc::fmin().

#define ITMAX   5000

Definition at line 136 of file conjprod.cpp.

Function Documentation

void bracket_report ( const dvector theta,
const double &  left_bracket,
double &  right_bracket,
const dvector d 
)

Description not yet available.

Parameters

Definition at line 847 of file conjprod.cpp.

Referenced by do_interpolate(), and mylinmin().

void clrscr ( )

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

Definition at line 8 of file clrscr.cpp.

double cubic_interpolation ( const double &  u,
const double &  v,
const double &  aa,
const double &  bb,
double &  ap,
const double &  bp 
)

Description not yet available.

Parameters

Definition at line 867 of file conjprod.cpp.

Referenced by do_interpolate().

void derch ( const double &  _f,
const dvector _x,
const dvector _gg,
int  n,
const int &  _ireturn 
)

Description not yet available.

Parameters

Definition at line 1008 of file conjprod.cpp.

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

void do_extrapolate ( const double &  _left_bracket,
const double &  _left_bracket_value,
dvector left_bracket_gradient,
const double &  _right_bracket,
double &  right_bracket_value,
const dvector _right_bracket_gradient,
const dvector theta,
dvector d,
const int &  _J,
const double &  rho_0,
long int &  ifn,
const int &  _ifnex,
int &  ext_flag,
const double &  _rho_1,
const double &  rf,
const dvector g1 
)

Description not yet available.

Parameters

Definition at line 796 of file conjprod.cpp.

Referenced by mylinmin().

double do_interpolate ( const double &  _fret,
const double &  _left_bracket,
double &  left_bracket_value,
const dvector _left_bracket_gradient,
double &  right_bracket,
const double &  _right_bracket_value,
dvector right_bracket_gradient,
const dvector theta,
const dvector d,
const int &  _J,
long int &  ifn,
const double &  crit1,
int &  int_flag,
const double &  _rho_1,
const double &  Psi_2,
const dvector g1 
)

Description not yet available.

Parameters

Definition at line 622 of file conjprod.cpp.

Referenced by mylinmin().

double max ( const double &  ,
const double &   
)
double min ( const double &  ,
const double &   
)
double mylinmin ( const double &  fret,
const double &  Phi_i,
const dvector theta1,
const dvector q_i,
fmmc cs 
)

version of mylinmin which uses the deviative to help bracket the minimum

Parameters

Definition at line 491 of file conjprod.cpp.

Referenced by fmmc::fmin().

int onintr ( int *  k)

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

double Phi ( const dvector )

Variable Documentation

int ctlc_flag