![]() |
Rosetta Core
2014.35
|
#include <SimAnnealerBase.hh>
Public Types | |
typedef rotamer_set::RotamerSetsBaseCOP | RotamerSetsBaseCOP |
Protected Member Functions | |
Size | num_rots_to_pack () const |
void | num_rots_to_pack (Size setting) |
ObjexxFCL::FArray1D_int & | bestrotamer_at_seqpos () |
ObjexxFCL::FArray1D_int const & | bestrotamer_at_seqpos () const |
core::PackerEnergy & | bestenergy () |
bool | start_with_current () const |
ObjexxFCL::FArray1_int & | current_rot_index () |
ObjexxFCL::FArray1_int const & | current_rot_index () const |
bool & | calc_rot_freq () |
bool | calc_rot_freq () const |
ObjexxFCL::FArray1D < core::PackerEnergy > & | rot_freq () |
ObjexxFCL::FArray1D < core::PackerEnergy > const & | rot_freq () const |
core::PackerEnergy | get_hightemp () const |
core::PackerEnergy | get_lowtemp () const |
void | clear () |
Static Protected Attributes | |
static const core::PackerEnergy | hightemp = 100.0 |
static const core::PackerEnergy | lowtemp = 0.3 |
static const int | maxouteriterations = 500 |
static const core::PackerEnergy | calc_freq_temp = 1.0 |
Private Member Functions | |
SimAnnealerBase (const SimAnnealerBase &rhs) | |
Private Attributes | |
Size | num_rots_to_pack_ |
ObjexxFCL::FArray1D_int & | bestrotamer_at_seqpos_ |
core::PackerEnergy & | bestenergy_ |
bool | start_with_current_ |
ObjexxFCL::FArray1_int & | current_rot_index_ |
bool | calc_rot_freq_ |
ObjexxFCL::FArray1D < core::PackerEnergy > & | rot_freq_ |
int | outeriterations_ |
int | inneriterations_ |
bool | quench_ |
core::PackerEnergy | hightemp_ |
core::PackerEnergy | lowtemp_ |
core::PackerEnergy | temperature_ |
int | jump_ |
core::PackerEnergy | outeriterations_scaling_ |
core::PackerEnergy | inneriterations_scaling_ |
bool const | low_temp_annealing_ |
bool | disallow_quench_ |
core::pack::annealer::SimAnnealerBase::SimAnnealerBase | ( | int | num_rots_to_pack, |
ObjexxFCL::FArray1D_int & | bestrotamer_at_seqpos, | ||
core::PackerEnergy & | bestenergy, | ||
bool | start_with_current, | ||
ObjexxFCL::FArray1_int & | current_rot_index, | ||
bool | calc_rot_freq, | ||
ObjexxFCL::FArray1D< core::PackerEnergy > & | rot_freq | ||
) |
|
virtual |
virtual destructor
SimAnnealerBase::~SimAnnealerBase()
|
private |
|
protected |
References bestenergy_.
Referenced by core::pack::annealer::FASTERAnnealer::run(), core::pack::annealer::MultiCoolAnnealer::run(), core::pack::annealer::FixbbSimAnnealer::run(), core::pack::annealer::FixbbLinkingRotamerSimAnnealer::run(), and core::pack::annealer::FixbbCoupledRotamerSimAnnealer::run().
|
protected |
References bestrotamer_at_seqpos_.
Referenced by core::pack::annealer::FASTERAnnealer::finalize_output(), core::pack::annealer::FASTERAnnealer::run(), core::pack::annealer::DebuggingAnnealer::run(), core::pack::annealer::MultiCoolAnnealer::run(), core::pack::annealer::FixbbSimAnnealer::run(), core::pack::annealer::FixbbLinkingRotamerSimAnnealer::run(), and core::pack::annealer::FixbbCoupledRotamerSimAnnealer::run().
|
protected |
References bestrotamer_at_seqpos_.
|
protected |
References calc_rot_freq_.
Referenced by core::pack::annealer::FASTERAnnealer::run(), core::pack::annealer::FixbbSimAnnealer::run(), core::pack::annealer::FixbbLinkingRotamerSimAnnealer::run(), core::pack::annealer::FixbbCoupledRotamerSimAnnealer::run(), and core::pack::annealer::MultiCoolAnnealer::run_constant_temp_rotamer_substitutions().
|
protected |
References calc_rot_freq_.
|
protected |
References jump_.
|
protected |
References current_rot_index_.
Referenced by core::pack::annealer::RotamerAssigningAnnealer::pick_a_rotamer().
|
protected |
References current_rot_index_.
bool core::pack::annealer::SimAnnealerBase::get_calc_rot_freq | ( | ) | const |
References calc_rot_freq_.
|
inlineprotected |
References hightemp_.
int core::pack::annealer::SimAnnealerBase::get_inneriterations | ( | ) | const |
SimAnnealerBase::get_inneriterations()
References get_temperature(), inneriterations_, inneriterations_scaling_, and low_temp_annealing_.
Referenced by core::pack::annealer::MultiCoolAnnealer::run(), core::pack::annealer::FixbbSimAnnealer::run(), core::pack::annealer::FixbbLinkingRotamerSimAnnealer::run(), and core::pack::annealer::FixbbCoupledRotamerSimAnnealer::run().
|
inlineprotected |
References lowtemp_.
Referenced by core::pack::annealer::MultiCoolAnnealer::cool().
int core::pack::annealer::SimAnnealerBase::get_outeriterations | ( | ) | const |
get the iterations number for simulation
SimAnnealerBase::get_outeriterations()
References outeriterations_, and outeriterations_scaling_.
Referenced by core::pack::annealer::MultiCoolAnnealer::run(), core::pack::annealer::FixbbSimAnnealer::run(), core::pack::annealer::FixbbLinkingRotamerSimAnnealer::run(), core::pack::annealer::FixbbCoupledRotamerSimAnnealer::run(), and setup_temperature().
bool core::pack::annealer::SimAnnealerBase::get_start_with_current | ( | ) | const |
References start_with_current_.
Referenced by core::pack::annealer::RotamerAssigningAnnealer::pick_a_rotamer().
core::PackerEnergy core::pack::annealer::SimAnnealerBase::get_temperature | ( | ) | const |
References temperature_.
Referenced by core::pack::annealer::MultiCoolAnnealer::cool(), get_inneriterations(), core::pack::annealer::FixbbSimAnnealer::run(), core::pack::annealer::FixbbLinkingRotamerSimAnnealer::run(), core::pack::annealer::FixbbCoupledRotamerSimAnnealer::run(), and core::pack::annealer::MultiCoolAnnealer::run_constant_temp_rotamer_substitutions().
|
inlineprotected |
References num_rots_to_pack_.
Referenced by core::pack::annealer::RotamerAssigningAnnealer::pick_a_rotamer(), core::pack::annealer::DebuggingAnnealer::run(), core::pack::annealer::MultiCoolAnnealer::run(), core::pack::annealer::FixbbSimAnnealer::run(), core::pack::annealer::FixbbLinkingRotamerSimAnnealer::run(), core::pack::annealer::FixbbCoupledRotamerSimAnnealer::run(), and core::pack::annealer::MultiCoolAnnealer::run_constant_temp_rotamer_substitutions().
|
protected |
References num_rots_to_pack_.
bool core::pack::annealer::SimAnnealerBase::pass_metropolis | ( | core::PackerEnergy | delta_energy | ) | const |
accept or reject movement based on Metropolis criterion if this is the first movement, accept by default.
SimAnnealerBase::pass_metropolis
Referenced by core::pack::annealer::FixbbSimAnnealer::run(), core::pack::annealer::FixbbLinkingRotamerSimAnnealer::run(), core::pack::annealer::FixbbCoupledRotamerSimAnnealer::run(), and core::pack::annealer::MultiCoolAnnealer::run_constant_temp_rotamer_substitutions().
bool core::pack::annealer::SimAnnealerBase::pass_metropolis | ( | core::PackerEnergy | previous_energy, |
core::PackerEnergy | delta_energy | ||
) | const |
References beta, quench_, sab_RG, temperature_, and numeric::random::RandomGenerator::uniform().
bool core::pack::annealer::SimAnnealerBase::quench | ( | ) | const |
References quench_.
Referenced by core::pack::annealer::RotamerAssigningAnnealer::pick_a_rotamer(), core::pack::annealer::FixbbSimAnnealer::run(), core::pack::annealer::FixbbLinkingRotamerSimAnnealer::run(), core::pack::annealer::FixbbCoupledRotamerSimAnnealer::run(), and core::pack::annealer::MultiCoolAnnealer::run_constant_temp_rotamer_substitutions().
|
protected |
References rot_freq_.
Referenced by core::pack::annealer::FASTERAnnealer::run().
|
protected |
References rot_freq_.
|
pure virtual |
|
inline |
References inneriterations_scaling_.
Referenced by core::pack::annealer::FASTERAnnealer::run().
|
inline |
References outeriterations_scaling_.
void core::pack::annealer::SimAnnealerBase::set_disallow_quench | ( | bool const & | setting | ) |
References disallow_quench_.
void core::pack::annealer::SimAnnealerBase::set_hightemp | ( | core::PackerEnergy | high | ) |
References hightemp_.
void core::pack::annealer::SimAnnealerBase::set_lowtemp | ( | core::PackerEnergy | low | ) |
References lowtemp_.
Referenced by core::pack::annealer::MultiCoolAnnealer::run().
void core::pack::annealer::SimAnnealerBase::set_not_to_quench | ( | ) |
References quench_.
Referenced by core::pack::annealer::FASTERAnnealer::run_quench_cycles().
void core::pack::annealer::SimAnnealerBase::set_temperature | ( | core::PackerEnergy | new_temperature | ) |
References temperature_.
Referenced by core::pack::annealer::MultiCoolAnnealer::cool(), and core::pack::annealer::MultiCoolAnnealer::run().
void core::pack::annealer::SimAnnealerBase::set_to_quench | ( | ) |
References quench_.
Referenced by core::pack::annealer::FASTERAnnealer::run_quench_cycles(), and setup_temperature().
void core::pack::annealer::SimAnnealerBase::setup_iterations | ( | ) |
SimAnnealerBase::setup_iterations(bool start_with_current)
References num_rots_to_pack_.
Referenced by core::pack::annealer::DebuggingAnnealer::run(), core::pack::annealer::MultiCoolAnnealer::run(), core::pack::annealer::FixbbSimAnnealer::run(), core::pack::annealer::FixbbLinkingRotamerSimAnnealer::run(), and core::pack::annealer::FixbbCoupledRotamerSimAnnealer::run().
void core::pack::annealer::SimAnnealerBase::setup_iterations | ( | const int & | num_of_state_changes | ) |
References current_rot_index_, inneriterations_, low_temp_annealing_, outeriterations_, and start_with_current_.
void core::pack::annealer::SimAnnealerBase::setup_temperature | ( | const int & | nn | ) |
References disallow_quench_, get_outeriterations(), hightemp_, jump_, lowtemp_, set_to_quench(), and temperature_.
Referenced by core::pack::annealer::FixbbSimAnnealer::run(), core::pack::annealer::FixbbLinkingRotamerSimAnnealer::run(), and core::pack::annealer::FixbbCoupledRotamerSimAnnealer::run().
void core::pack::annealer::SimAnnealerBase::setup_temperature | ( | const ObjexxFCL::FArray1D< core::PackerEnergy > & | loopenergy, |
int | nn | ||
) |
|
protected |
References start_with_current_.
|
private |
Referenced by bestenergy().
|
private |
Referenced by bestrotamer_at_seqpos().
|
staticprotected |
|
private |
Referenced by calc_rot_freq(), and get_calc_rot_freq().
|
private |
Referenced by current_rot_index(), and setup_iterations().
|
private |
Referenced by set_disallow_quench(), and setup_temperature().
|
staticprotected |
|
private |
Referenced by get_hightemp(), set_hightemp(), and setup_temperature().
|
private |
Referenced by get_inneriterations(), and setup_iterations().
|
private |
Referenced by get_inneriterations(), and scale_inneriterations().
|
private |
Referenced by clear(), and setup_temperature().
|
private |
Referenced by get_inneriterations(), and setup_iterations().
|
staticprotected |
|
private |
Referenced by get_lowtemp(), set_lowtemp(), and setup_temperature().
|
staticprotected |
|
private |
Referenced by num_rots_to_pack(), and setup_iterations().
|
private |
Referenced by get_outeriterations(), and setup_iterations().
|
private |
Referenced by get_outeriterations(), and scale_outeriterations().
|
private |
Referenced by pass_metropolis(), quench(), set_not_to_quench(), and set_to_quench().
|
private |
Referenced by rot_freq().
|
private |
Referenced by get_start_with_current(), setup_iterations(), and start_with_current().
|
private |
Referenced by get_temperature(), pass_metropolis(), set_temperature(), and setup_temperature().