#include <optimize.h>
|
| phymir_state () |
|
void | clear () |
|
void | init_minmax (const X[], const X[], int) |
|
void | init_state_file_name (const char *) |
|
void | init_strings (const string &, const string &, const char *) |
|
void | initial_run (Y(*)(const X[], int), int, const X[], const X[], X, int, phymir_mode, int) |
|
void | continue_from_state (Y(*)(const X[], int), int, const char *, X, int, phymir_mode, int) |
|
void | optimize () |
|
void | optimize_with_restart () |
|
bool | lgMaxIterExceeded () const |
|
bool | lgInitialized () const |
|
bool | lgConverged () const |
|
bool | lgConvergedRestart () const |
|
X | xval (int i) const |
|
X | xmin (int i) const |
|
X | xmax (int i) const |
|
Y | yval () const |
|
int32 | noptim () const |
|
◆ phymir_state()
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ clear()
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ continue_from_state()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::continue_from_state |
( |
Y(* | func )(const X[], int), |
|
|
int | nvar, |
|
|
const char * | fnam, |
|
|
X | toler, |
|
|
int | maxiter, |
|
|
phymir_mode | mode, |
|
|
int | maxcpu ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fp_equal(), p_dim, p_func, p_maxcpu, p_maxiter, p_mode, p_nvar, p_rd_state(), p_sdim, p_toler, p_vers, and VRSNEW.
Referenced by optimize_phymir().
◆ init_minmax()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::init_minmax |
( |
const X | pmin[], |
|
|
const X | pmax[], |
|
|
int | nvar ) |
◆ init_state_file_name()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::init_state_file_name |
( |
const char * | fnam | ) |
|
◆ init_strings()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::init_strings |
( |
const string & | date, |
|
|
const string & | version, |
|
|
const char * | host_name ) |
◆ initial_run()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::initial_run |
( |
Y(* | func )(const X[], int), |
|
|
int | nvar, |
|
|
const X | start[], |
|
|
const X | del[], |
|
|
X | toler, |
|
|
int | maxiter, |
|
|
phymir_mode | mode, |
|
|
int | maxcpu ) |
References ASSERT, DEBUG_ENTRY, max(), min(), p_barrier(), p_c1, p_c2, p_chState, p_dmax, p_dold, p_execute_job(), p_func, p_jmin, p_maxcpu, p_maxiter, p_mode, p_noptim, p_nvar, p_reset_transformation_matrix(), p_toler, p_varmax, p_varmin, p_wr_state(), p_xc, p_xcold, p_xp, p_ymin, p_yp, and start().
Referenced by optimize_phymir().
◆ lgConverged()
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ lgConvergedRestart()
template<class X, class Y, int NP, int NSTR>
bool phymir_state< X, Y, NP, NSTR >::lgConvergedRestart |
( |
| ) |
const |
◆ lgInitialized()
template<class X, class Y = X, int NP = 32, int NSTR = 32>
bool phymir_state< X, Y, NP, NSTR >::lgInitialized |
( |
| ) |
const |
|
inline |
◆ lgMaxIterExceeded()
template<class X, class Y = X, int NP = 32, int NSTR = 32>
bool phymir_state< X, Y, NP, NSTR >::lgMaxIterExceeded |
( |
| ) |
const |
|
inline |
◆ noptim()
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ optimize()
template<class X, class Y, int NP, int NSTR>
◆ optimize_with_restart()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::optimize_with_restart |
( |
| ) |
|
◆ p_barrier()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::p_barrier |
( |
int | jlo, |
|
|
int | jhi ) |
|
private |
References DEBUG_ENTRY, MPI_Barrier, MPI_Bcast, NULL, p_curcpu, p_mode, p_process_output(), p_yp, PHYMIR_FORK, PHYMIR_MPI, PHYMIR_SEQ, TotalInsanity(), and wait.
Referenced by initial_run(), and p_evaluate_hyperblock().
◆ p_clear1()
template<class X, class Y, int NP, int NSTR>
References DEBUG_ENTRY, NULL, p_a2, p_absmax, p_absmin, p_c1, p_c2, p_chState, p_chStr1, p_chStr2, p_chStr3, p_curcpu, p_dim, p_dmax, p_dold, p_func, p_jmin, p_maxcpu, p_maxiter, p_mode, p_noptim, p_nvar, p_sdim, p_toler, p_varmax, p_varmin, p_vers, p_xc, p_xcold, p_xmax, p_xp, p_ymax, p_ymin, p_yp, PHYMIR_ILL, and VRSNEW.
Referenced by clear(), and phymir_state().
◆ p_delta()
template<class X, class Y = X, int NP = 32, int NSTR = 32>
X phymir_state< X, Y, NP, NSTR >::p_delta |
( |
int | i, |
|
|
int | j ) const |
|
inlineprivate |
◆ p_evaluate_hyperblock()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::p_evaluate_hyperblock |
( |
| ) |
|
|
private |
References DEBUG_ENTRY, lgMaxIterExceeded(), max(), min(), p_a2, p_barrier(), p_c2, p_dmax, p_execute_job(), p_noptim, p_nvar, p_varmax, p_varmin, p_xc, p_xp, and p_yp.
Referenced by optimize().
◆ p_execute_job()
template<class X, class Y, int NP, int NSTR>
Y phymir_state< X, Y, NP, NSTR >::p_execute_job |
( |
const X | x[], |
|
|
int | jj, |
|
|
int | runNr ) |
|
private |
References cdEXIT, cpu, DEBUG_ENTRY, EXIT_FAILURE, EXIT_SUCCESS, fork, fprintf(), ioQQQ, NULL, p_curcpu, p_execute_job_parallel(), p_func, p_lgLimitExceeded(), p_maxcpu, p_mode, p_noptim, p_ymax, PHYMIR_FORK, PHYMIR_MPI, PHYMIR_SEQ, pid_t, ran, TotalInsanity(), and wait.
Referenced by initial_run(), and p_evaluate_hyperblock().
◆ p_execute_job_parallel()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::p_execute_job_parallel |
( |
const X | x[], |
|
|
int | jj, |
|
|
int | runNr ) const |
|
private |
◆ p_lgLimitExceeded()
template<class X, class Y, int NP, int NSTR>
bool phymir_state< X, Y, NP, NSTR >::p_lgLimitExceeded |
( |
const X | x[] | ) |
const |
|
private |
◆ p_phygrm()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::p_phygrm |
( |
X | a[][NP], |
|
|
int | n ) |
|
private |
◆ p_process_output()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::p_process_output |
( |
int | jlo, |
|
|
int | jhi ) |
|
private |
◆ p_rd_state()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::p_rd_state |
( |
const char * | fnam | ) |
|
|
private |
References AS_LOCAL_ONLY, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, open_data(), p_a2, p_absmax, p_absmin, p_c1, p_c2, p_chState, p_chStr1, p_chStr2, p_chStr3, p_curcpu, p_dim, p_dmax, p_dold, p_jmin, p_maxcpu, p_maxiter, p_mode, p_noptim, p_nvar, p_sdim, p_toler, p_varmax, p_varmin, p_vers, p_xc, p_xcold, p_xmax, p_xp, p_ymax, p_ymin, p_yp, and RD_ITEM().
Referenced by continue_from_state().
◆ p_reset_hyperblock()
template<class X, class Y, int NP, int NSTR>
◆ p_reset_transformation_matrix()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::p_reset_transformation_matrix |
( |
| ) |
|
|
private |
◆ p_setup_next_hyperblock()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::p_setup_next_hyperblock |
( |
| ) |
|
|
private |
References DEBUG_ENTRY, F1, F2, max(), min(), MIN2, p_a2, p_c1, p_c2, p_delta(), p_dmax, p_dold, p_jmin, p_nvar, p_phygrm(), p_xc, p_xp, p_ymin, p_yp, and pow2.
Referenced by optimize().
◆ p_wr_state()
template<class X, class Y, int NP, int NSTR>
void phymir_state< X, Y, NP, NSTR >::p_wr_state |
( |
const char * | fnam | ) |
const |
|
private |
References AS_TRY, cpu, DEBUG_ENTRY, NULL, open_data(), p_a2, p_absmax, p_absmin, p_c1, p_c2, p_chState, p_chStr1, p_chStr2, p_chStr3, p_curcpu, p_dim, p_dmax, p_dold, p_jmin, p_maxcpu, p_maxiter, p_mode, p_noptim, p_nvar, p_sdim, p_toler, p_varmax, p_varmin, p_vers, p_xc, p_xcold, p_xmax, p_xp, p_ymax, p_ymin, p_yp, and WR_ITEM().
Referenced by initial_run(), and optimize().
◆ xmax()
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ xmin()
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ xval()
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ yval()
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_a2
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_absmax
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_absmin
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_c1
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_c2
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_chState
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_chStr1
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_chStr2
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_chStr3
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_curcpu
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_dim
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_dmax
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_dold
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_func
template<class X, class Y = X, int NP = 32, int NSTR = 32>
Y(* phymir_state< X, Y, NP, NSTR >::p_func) (const X[], int) |
|
private |
◆ p_jmin
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_maxcpu
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_maxiter
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_mode
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_noptim
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_nvar
template<class X, class Y = X, int NP = 32, int NSTR = 32>
Referenced by continue_from_state(), initial_run(), lgConvergedRestart(), lgInitialized(), p_clear1(), p_evaluate_hyperblock(), p_lgLimitExceeded(), p_rd_state(), p_reset_hyperblock(), p_reset_transformation_matrix(), p_setup_next_hyperblock(), and p_wr_state().
◆ p_sdim
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_toler
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_varmax
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_varmin
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_vers
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_xc
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_xcold
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_xmax
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_xp
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_ymax
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_ymin
template<class X, class Y = X, int NP = 32, int NSTR = 32>
◆ p_yp
template<class X, class Y = X, int NP = 32, int NSTR = 32>
The documentation for this class was generated from the following files: