COPASI API  4.40.278
CTruncatedNewton.cpp File Reference
#include <cmath>
#include <sstream>
#include "copasi/copasi.h"
#include "CTruncatedNewton.h"
#include "COptLog.h"
#include "copasi/lapack/blaswrap.h"
#include "copasi/lapack/lapackwrap.h"

Macros

#define FALSE_   (0)
 
#define subscr_1   (mpsubscr_->_1)
 
#define subscr_2   (mpsubscr_->_2)
 
#define subscr_3   (mpsubscr_->_3)
 
#define TRUE_   (1)
 

Functions

int chkucp_ (C_INT *, C_INT *, C_INT *, C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *)
 
int cnvtst_ (C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_INT *, C_INT *, C_FLOAT64 *)
 
int crash_ (C_INT *, C_FLOAT64 *, C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_INT *)
 
int dxpy_ (C_INT *, C_FLOAT64 *, C_INT *, C_FLOAT64 *, C_INT *)
 
int initp3_ (C_FLOAT64 *, C_FLOAT64 *, C_INT *, C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_INT *, C_INT *)
 
int lsout_ (C_INT *, C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *)
 
int lsout_ (C_INT *iloc, C_INT *itest, C_FLOAT64 *xmin, C_FLOAT64 *fmin, C_FLOAT64 *gmin, C_FLOAT64 *xw, C_FLOAT64 *fw, C_FLOAT64 *gw, C_FLOAT64 *u, C_FLOAT64 *a, C_FLOAT64 *b, C_FLOAT64 *tol, C_FLOAT64 *eps, C_FLOAT64 *scxbd, C_FLOAT64 *xlamda, COptLog *log)
 
C_FLOAT64 mchpr1_ (void)
 
int modz_ (C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *)
 
int monit_ (C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_INT *, C_INT *, C_INT *, C_INT *, C_INT *, COptLog *)
 
int mslv_ (C_FLOAT64 *, C_FLOAT64 *, C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_INT *, C_INT *)
 
int ndia3_ (C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_INT *)
 
int negvec_ (C_INT *, C_FLOAT64 *)
 
C_FLOAT64 pow_dd (C_FLOAT64 *ap, C_FLOAT64 *bp)
 
int ssbfgs_ (C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *)
 
C_FLOAT64 step1_ (C_FLOAT64 *fnew, C_FLOAT64 *fm, C_FLOAT64 *gtp, C_FLOAT64 *smax)
 
int stpmax_ (C_FLOAT64 *, C_FLOAT64 *, C_FLOAT64 *, C_INT *, C_FLOAT64 *, C_FLOAT64 *, C_INT *, C_FLOAT64 *, C_FLOAT64 *)
 
int ztime_ (C_INT *, C_FLOAT64 *, C_INT *)
 

Macro Definition Documentation

◆ FALSE_

#define FALSE_   (0)

◆ subscr_1

#define subscr_1   (mpsubscr_->_1)

◆ subscr_2

#define subscr_2   (mpsubscr_->_2)

◆ subscr_3

#define subscr_3   (mpsubscr_->_3)

◆ TRUE_

#define TRUE_   (1)

Function Documentation

◆ chkucp_()

int chkucp_ ( C_INT lwtest,
C_INT maxfun,
C_INT nwhy,
C_INT n,
C_FLOAT64 alpha,
C_FLOAT64 epsmch,
C_FLOAT64 eta,
C_FLOAT64 peps,
C_FLOAT64 rteps,
C_FLOAT64 rtol,
C_FLOAT64 rtolsq,
C_FLOAT64 stepmx,
C_FLOAT64 test,
C_FLOAT64 xtol,
C_FLOAT64 xnorm,
C_FLOAT64 x,
C_INT lw,
C_FLOAT64 small,
C_FLOAT64 tiny,
C_FLOAT64 accrcy 
)

◆ cnvtst_()

int cnvtst_ ( C_INT conv,
C_FLOAT64 alpha,
C_FLOAT64 pnorm,
C_FLOAT64 toleps,
C_FLOAT64 xnorm,
C_FLOAT64 difnew,
C_FLOAT64 rtleps,
C_FLOAT64 ftest,
C_FLOAT64 gtg,
C_FLOAT64 peps,
C_FLOAT64 ,
C_FLOAT64 gtpnew,
C_FLOAT64 fnew,
C_FLOAT64 flast,
C_FLOAT64 g,
C_INT ipivot,
C_INT n,
C_FLOAT64 accrcy 
)

References C_FLOAT64, C_INT, FALSE_, and TRUE_.

◆ crash_()

int crash_ ( C_INT n,
C_FLOAT64 x,
C_INT ipivot,
C_FLOAT64 low,
C_FLOAT64 up,
C_INT ier 
)

References C_INT.

Referenced by CTruncatedNewton::lmqnbc_().

◆ dxpy_()

int dxpy_ ( C_INT n,
C_FLOAT64 dx,
C_INT incx,
C_FLOAT64 dy,
C_INT incy 
)

References C_INT.

◆ initp3_()

int initp3_ ( C_FLOAT64 diagb,
C_FLOAT64 emat,
C_INT n,
C_INT lreset,
C_FLOAT64 yksk,
C_FLOAT64 yrsr,
C_FLOAT64 bsk,
C_FLOAT64 sk,
C_FLOAT64 yk,
C_FLOAT64 sr,
C_FLOAT64 yr,
C_INT modet,
C_INT upd1 
)

References C_FLOAT64, C_INT, and ddot_().

Referenced by CTruncatedNewton::initpc_().

◆ lsout_() [1/2]

int lsout_ ( C_INT ,
C_INT ,
C_FLOAT64 ,
C_FLOAT64 ,
C_FLOAT64 ,
C_FLOAT64 ,
C_FLOAT64 ,
C_FLOAT64 ,
C_FLOAT64 ,
C_FLOAT64 ,
C_FLOAT64 ,
C_FLOAT64 ,
C_FLOAT64 ,
C_FLOAT64 ,
C_FLOAT64  
)

◆ lsout_() [2/2]

int lsout_ ( C_INT iloc,
C_INT itest,
C_FLOAT64 xmin,
C_FLOAT64 fmin,
C_FLOAT64 gmin,
C_FLOAT64 xw,
C_FLOAT64 fw,
C_FLOAT64 gw,
C_FLOAT64 u,
C_FLOAT64 a,
C_FLOAT64 b,
C_FLOAT64 tol,
C_FLOAT64 eps,
C_FLOAT64 scxbd,
C_FLOAT64 xlamda,
COptLog log 
)

◆ mchpr1_()

C_FLOAT64 mchpr1_ ( void  )

◆ modz_()

int modz_ ( C_INT n,
C_FLOAT64 x,
C_FLOAT64 p,
C_INT ipivot,
C_FLOAT64 epsmch,
C_FLOAT64 low,
C_FLOAT64 up,
C_FLOAT64 flast,
C_FLOAT64 fnew 
)

References C_FLOAT64, and C_INT.

◆ monit_()

int monit_ ( C_INT n,
C_FLOAT64 x,
C_FLOAT64 f,
C_FLOAT64 g,
C_INT niter,
C_INT nftotl,
C_INT nfeval,
C_INT ireset,
C_INT ipivot,
COptLog log 
)

◆ mslv_()

int mslv_ ( C_FLOAT64 g,
C_FLOAT64 y,
C_INT n,
C_FLOAT64 sk,
C_FLOAT64 yk,
C_FLOAT64 diagb,
C_FLOAT64 sr,
C_FLOAT64 yr,
C_FLOAT64 hyr,
C_FLOAT64 hg,
C_FLOAT64 hyk,
C_INT upd1,
C_FLOAT64 yksk,
C_FLOAT64 gsk,
C_FLOAT64 yrsr,
C_INT lreset,
C_INT first 
)

References C_FLOAT64, C_INT, and ddot_().

Referenced by CTruncatedNewton::msolve_().

◆ ndia3_()

int ndia3_ ( C_INT n,
C_FLOAT64 e,
C_FLOAT64 v,
C_FLOAT64 gv,
C_FLOAT64 r__,
C_FLOAT64 vgv,
C_INT modet 
)

References C_FLOAT64, C_INT, and ddot_().

◆ negvec_()

int negvec_ ( C_INT n,
C_FLOAT64 v 
)

References C_INT.

◆ pow_dd()

C_FLOAT64 pow_dd ( C_FLOAT64 ap,
C_FLOAT64 bp 
)

◆ ssbfgs_()

int ssbfgs_ ( C_INT n,
C_FLOAT64 gamma,
C_FLOAT64 sj,
C_FLOAT64 yj,
C_FLOAT64 hjv,
C_FLOAT64 hjyj,
C_FLOAT64 yjsj,
C_FLOAT64 yjhyj,
C_FLOAT64 vsj,
C_FLOAT64 vhyj,
C_FLOAT64 hjp1v 
)

References C_FLOAT64, and C_INT.

◆ step1_()

C_FLOAT64 step1_ ( C_FLOAT64 fnew,
C_FLOAT64 fm,
C_FLOAT64 gtp,
C_FLOAT64 smax 
)

References C_FLOAT64, and mchpr1_().

◆ stpmax_()

int stpmax_ ( C_FLOAT64 stepmx,
C_FLOAT64 pe,
C_FLOAT64 spe,
C_INT n,
C_FLOAT64 x,
C_FLOAT64 p,
C_INT ipivot,
C_FLOAT64 low,
C_FLOAT64 up 
)

References C_FLOAT64, and C_INT.

◆ ztime_()

int ztime_ ( C_INT n,
C_FLOAT64 x,
C_INT ipivot 
)