ADMB Documentation  11.1.1894
 All Classes Files Functions Variables Typedefs Friends Defines
Defines | Functions | Variables
conjprod.cpp File Reference

(* $Id: conjprod.cpp 1893 2014-04-16 20:28:36Z johnoel $)

Description not yet available. More...

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

Go to the source code of this file.

Defines

#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.
void clrscr ()
double cubic_interpolation (const double &u, const double &v, const double &aa, const double &bb, double &ap, const double &bp)
 Description not yet available.
void derch (const double &f, const dvector &_x, const dvector &_gg, int n, const int &_ireturn)
 Description not yet available.
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.
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.
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
int onintr (int *k)
double Phi (const dvector &)

Variables

int ctlc_flag

Detailed Description

Description not yet available.

Definition in file conjprod.cpp.


Define Documentation

#define EPS   1.0e-10

Definition at line 139 of file conjprod.cpp.

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

Definition at line 140 of file conjprod.cpp.

#define getch   getchar

Definition at line 68 of file conjprod.cpp.

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

#define ITMAX   5000

Definition at line 138 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 848 of file conjprod.cpp.

Referenced by do_interpolate(), and mylinmin().

void clrscr ( )

Definition at line 79 of file conjprod.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 871 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 1013 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 805 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 641 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 511 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