Rosetta 3.5
|
#include <GenericMonteCarloMover.hh>
Public Member Functions | |
GenericMonteCarloMover () | |
default constructor More... | |
GenericMonteCarloMover (Size const maxtrials, Size const task_scaling, MoverOP const &mover, Real const temperature=0.0, String const sample_type="low", bool const drift=true) | |
value constructor without score function More... | |
GenericMonteCarloMover (Size const maxtrials, Size const task_scaling, MoverOP const &mover, TaskFactoryOP factory_in, Real const temperature=0.0, String const sample_type="low", bool const drift=true) | |
value constructor with score function More... | |
~GenericMonteCarloMover () | |
destructor More... | |
virtual MoverOP | clone () const |
create copy constructor More... | |
virtual MoverOP | fresh_instance () const |
create this type of objectt More... | |
void | initialize () |
initialize object used in constructor More... | |
virtual void | apply (Pose &pose) |
apply GenericMonteCarloMover (Mover) More... | |
virtual String | get_name () const |
Each derived class must specify its name. The class name. More... | |
void | reset (Pose &pose) |
reset MC iterations, with pose used for the last & best structures More... | |
void | recover_low (Pose &pose) |
return the simulation state to the lowest energy structure we've seen More... | |
bool | boltzmann (Pose &pose) |
core of MC More... | |
Size | num_designable (Pose &pose, PackerTaskOP &task) |
PoseOP | last_accepted_pose () const |
return the last accepted pose More... | |
Real | last_accepted_score () const |
return the last accepted score More... | |
PoseOP | lowest_score_pose () const |
return the lowest score pose More... | |
Real | lowest_score () const |
return the lowest score More... | |
Real | current_score () const |
return the lowest score More... | |
MCA | mc_accpeted () const |
return mc_accepted More... | |
ScoreFunctionOP | score_function () const |
Return the score function in use. More... | |
Size | add_trigger (const GenericMonteCarloMoverTrigger &trigger) |
Adds a new trigger, returning its id. More... | |
Size | num_triggers () const |
Returns the number of triggers. More... | |
void | remove_trigger (Size trigger_id) |
Removes the trigger with the specified id. More... | |
void | set_maxtrials (Size const ntrial) |
set max trials of MC trials More... | |
void | set_task_scaling (Size const scaling) |
set task multiplier to calculate trials from task More... | |
void | set_mover (MoverOP const &mover) |
set mover More... | |
void | set_scorefxn (ScoreFunctionOP const &sfxn) |
Pose is evaluated by ScoreFunctionOP during MC trials. More... | |
void | set_temperature (Real const temp) |
set temperature More... | |
void | set_sampletype (String const &type) |
set sample type, max or min when sample_type == max, sample pose which have higher score when sample_type == min, sample pose which have lower score More... | |
void | set_drift (bool const drift) |
if drift=false, the pose is set back to the initial pose at each MC trial Of course, this is not MC sampling. More... | |
void | set_preapply (bool const preapply=false) |
if preapply=true, auto-accept the first application of the submover, ignoring boltzman criteria. More... | |
void | set_recover_low (bool const recover_low) |
if recover_low=true, after apply() the structure is the lowest energy structure, rather than the last accepted structure. More... | |
void | set_boltz_rank (bool const boltz_rank) |
if boltz_rank=true, rank structures by the temperature-weighted sum of scores, rather than a single filter More... | |
void | show_scores (std::ostream &out) const |
show scores of last_accepted_score and "best_score" ( = flip_sign_ * lowest_score ) More... | |
void | show_counters (std::ostream &out) const |
show counters of ntrial and acceptance ratio More... | |
virtual void | parse_my_tag (TagPtr const tag, DataMap &data, Filters_map const &filters, Movers_map const &movers, Pose const &) |
parse xml file More... | |
virtual void | parse_task_operations (TagPtr const, DataMap const &, Filters_map const &, Movers_map const &) |
parse "task_operations" XML option (can be employed virtually by derived Packing movers) More... | |
void | add_filter (FilterOP filter, bool const adaptive, Real const temp, String const sample_type, bool rank_by=false) |
set filter Pose is evaluated by FilterOP which can do report_sm() or ScoreFunctionOP during MC trials You can choose either way FilterOP or ScoreFunction. More... | |
void | stopping_condition (protocols::filters::FilterOP filter) |
protocols::filters::FilterOP | stopping_condition () const |
void | adaptive_movers (bool const a) |
bool | adaptive_movers () const |
void | adaptation_period (core::Size const a) |
core::Size | adaptation_period () const |
std::string | saved_accept_file_name () const |
void | saved_accept_file_name (std::string const ) |
std::string | saved_trial_number_file () const |
void | saved_trial_number_file (std::string const ) |
core::Size | load_trial_number_from_checkpoint (core::pose::Pose &) |
void | save_trial_number_to_checkpoint (core::Size const i) const |
void | reset_baselines (bool const r) |
bool | reset_baselines () const |
![]() | |
Mover () | |
virtual | ~Mover () |
virtual MoverSP | create () |
virtual void | apply (core::io::serialization::PipeMap &pmap) |
virtual void | parse_state (SerializableState const &state) |
virtual void | parse_def (utility::lua::LuaObject const &def, utility::lua::LuaObject const &score_fxns, utility::lua::LuaObject const &tasks, MoverCacheSP cache) |
virtual void | save_state (SerializableState &state) |
Mover (std::string const &type_name) | |
sets the type for a mover; name_ has been removed (2010/05/14) More... | |
Mover (Mover const &other) | |
Mover & | operator= (Mover const &other) |
assignment operator More... | |
virtual core::Real | last_proposal_density_ratio () |
std::string const & | type () const |
std::string | get_current_tag () const |
A tag is a unique identifier used to identify structures produced by this Mover. get_current_tag() returns the tag, and set_current_tag( std::string tag ) sets the tag. This functionality is not intended for use with the 2008 job distributor. More... | |
void | set_current_tag (std::string const &new_tag) |
virtual void | set_input_pose (PoseCOP pose) |
setter for poses contained for rms More... | |
virtual void | set_native_pose (PoseCOP pose) |
setter for native poses contained for rms -— we should get rid of this method? it is widely used, but a bit unsafe More... | |
PoseCOP | get_input_pose () const |
PoseCOP | get_native_pose () const |
virtual void | test_move (Pose &pose) |
: Unit test support function. Apply one move to a given pose. Allows extra test specific functions to be called before applying More... | |
void | type (const std::string &type_in) |
std::string | get_type () const |
MoverStatus | get_last_move_status () const |
end parser interface, start Job Distributor interface///////////// More... | |
void | reset_status () |
resets status to SUCCESS, meant to be used before an apply(). The job distributor (august 08 vintage) uses this to ensure non-accumulation of status across apply()s. More... | |
virtual core::pose::PoseOP | get_additional_output () |
Mechanism by which a mover may return multiple output poses from a single input pose. More... | |
virtual void | clear_info () |
Strings container can be used to return miscellaneous info (as std::string) from a mover, such as notes about the results of apply(). The job distributor (Apr 09 vintage) will check this function to see if your protocol wants to add string info to the Job that ran this mover. One way this can be useful is that later, a JobOutputter may include/append this info to an output file. More... | |
virtual Strings & | info () |
non-const accessor More... | |
virtual Strings const & | info () const |
const accessor More... | |
virtual bool | reinitialize_for_each_job () const |
this function informs the job distributor (august 08 vintage) whether this object needs to be freshly regenerated on each use. More... | |
virtual bool | reinitialize_for_new_input () const |
this function informs the job distributor (august 08 vintage) whether this object needs to be regenerated when the input pose is about to change (for example, if the mover has special code on the first apply() that is only valid for that one input pose). More... | |
void | set_current_job (protocols::jobdist::BasicJobCOP job) |
jobdist::BasicJobCOP | get_current_job () const |
Private Member Functions | |
Real | scoring (Pose &pose) |
evalute pose by ScoreFunctionOP or FilterOP More... | |
void | fire_all_triggers (Size cycle, Size num_cycles, const Pose &pose, ScoreFunctionOP scoring) |
Executes all triggers. The order of trigger execution is undefined. Do not assume, depend, or in any way rely on a particular ordering. More... | |
void | task_factory (core::pack::task::TaskFactoryOP tf) |
setter More... | |
Private Attributes | |
Size | maxtrials_ |
max number of MC trials More... | |
Size | number_designable_ |
number of designable positions More... | |
Size | task_scaling_ |
multiply the number_designable_ by task_scaling to get the number of trials More... | |
MoverOP | mover_ |
mover More... | |
PackerTaskOP | task_ |
task More... | |
TaskFactoryOP | factory_ |
task factory More... | |
utility::vector1< FilterOP > | filters_ |
Pose is evaluated by FilterOP which can do report_sm() during MC trials. More... | |
utility::vector1< bool > | adaptive_ |
utility::vector1< Real > | temperatures_ |
acceptance criterion temperature More... | |
utility::vector1< String > | sample_types_ |
utility::vector1< Real > | last_accepted_scores_ |
utility::vector1< core::Size > | num_rejections_ |
Count the number of rejections each filter resulted in. More... | |
ScoreFunctionOP | scorefxn_ |
Pose is evaluated by ScoreFunctionOP during MC trials. More... | |
Real | temperature_ |
acceptance criterion temperature More... | |
String | sample_type_ |
set sample type, max or min when sample_type == max, sample pose which have higher score when sample_type == min, sample pose which have lower score More... | |
bool | drift_ |
if drift=false, the pose is set back to the initial pose at each MC trial Of course, this is not MC sampling. More... | |
bool | preapply_ |
Should we apply (and accept) the first application of the mover regardless of boltzman criteria? (Defaults true for historical reasons.) More... | |
bool | recover_low_ |
At the end of application, is the structure the last accepted structure (recover_low_==false) or is it the lowest energy structure (recover_low_=true) More... | |
Size | rank_by_filter_ |
By which filter (by index) are poses ranked by for non-Boltzman purposes (e.g. recover_low()) More... | |
bool | boltz_rank_ |
If boltz_rank_=true, instead of ranking by a single filter, rank by the temperature-weighted sum of all scores. More... | |
Real | current_score_ |
current score More... | |
Real | last_accepted_score_ |
accepted structure More... | |
Real | lowest_score_ |
lowest energy structure we've seen More... | |
PoseOP | last_accepted_pose_ |
accepted structure More... | |
PoseOP | lowest_score_pose_ |
lowest energy structure we've seen More... | |
MCA | mc_accepted_ |
result of the last call to boltzmann More... | |
Real | flip_sign_ |
to change the sing of calculated "score" More... | |
int | trial_counter_ |
diagnostics More... | |
int | accept_counter_ |
Real | energy_gap_counter_ |
Size | next_trigger_id_ |
Next trigger identifier to be assigned. More... | |
boost::unordered_map< Size, GenericMonteCarloMoverTrigger > | triggers_ |
Collection of function callbacks. More... | |
protocols::filters::FilterOP | stopping_condition_ |
utility::pointer::owning_ptr < protocols::moves::DataMapObj < bool > > | mover_stopping_condition_ |
bool | adaptive_movers_ |
core::Size | adaptation_period_ |
std::string | saved_accept_file_name_ |
dflt max( 10, trials/10 ); only works with adaptive; how often should the run probabilities be adapted? More... | |
std::string | saved_trial_number_file_ |
utility::pointer::owning_ptr < protocols::moves::DataMapObj < std::string > > | mover_tag_ |
std::string | user_defined_mover_name_ |
dflt NULL; this is used by the called movers to set a certain tag. If saved_accept_file_name_ is set, then at exit the tag coming from the chosen mover is written to disk as, <saved_accept_file_name>.mover_tag. To work, mover_tag_ must be exposed to the movers being called. More... | |
bool | reset_baselines_ |
Additional Inherited Members | |
![]() | |
static std::string | name () |
static void | register_options () |
overload this static method if you access options within the mover. these options will end up in -help of your application if users of this mover call register_options. do this recursively! if you use movers within your mover, call their register_options in your register_options() method. More... | |
![]() | |
void | set_last_move_status (MoverStatus status) |
nonvirtual setter for MoverStatus last_status_. Protected means that only the mover itself will be able to change its own status. The job distributor (august 08 vintage) is aware of status set with this function and will do what the MoverStatus says. More... | |
typedef protocols::filters::Filters_map protocols::simple_moves::GenericMonteCarloMover::Filters_map |
typedef core::pack::task::PackerTaskCOP protocols::simple_moves::GenericMonteCarloMover::PackerTaskCOP |
typedef core::pack::task::PackerTaskOP protocols::simple_moves::GenericMonteCarloMover::PackerTaskOP |
typedef core::scoring::ScoreFunctionOP protocols::simple_moves::GenericMonteCarloMover::ScoreFunctionOP |
typedef std::string protocols::simple_moves::GenericMonteCarloMover::String |
typedef utility::tag::TagPtr protocols::simple_moves::GenericMonteCarloMover::TagPtr |
typedef core::pack::task::TaskFactoryOP protocols::simple_moves::GenericMonteCarloMover::TaskFactoryOP |
protocols::simple_moves::GenericMonteCarloMover::GenericMonteCarloMover | ( | ) |
protocols::simple_moves::GenericMonteCarloMover::GenericMonteCarloMover | ( | Size const | maxtrials, |
Size const | task_scaling, | ||
MoverOP const & | mover, | ||
Real const | temperature = 0.0 , |
||
String const | sample_type = "low" , |
||
bool const | drift = true |
||
) |
value constructor without score function
value constructor without a score function
References initialize().
protocols::simple_moves::GenericMonteCarloMover::GenericMonteCarloMover | ( | Size const | maxtrials, |
Size const | task_scaling, | ||
MoverOP const & | mover, | ||
TaskFactoryOP | factory_in, | ||
Real const | temperature = 0.0 , |
||
String const | sample_type = "low" , |
||
bool const | drift = true |
||
) |
value constructor with score function
value constructor with a TaskFactory
value constructor with task operation via TaskFactory
References initialize().
protocols::simple_moves::GenericMonteCarloMover::~GenericMonteCarloMover | ( | ) |
destructor
|
inline |
|
inline |
Referenced by apply(), and parse_my_tag().
|
inline |
|
inline |
Referenced by apply(), and parse_my_tag().
void protocols::simple_moves::GenericMonteCarloMover::add_filter | ( | FilterOP | filter, |
bool const | adaptive, | ||
Real const | temp, | ||
String const | sample_type, | ||
bool | rank_by = false |
||
) |
set filter Pose is evaluated by FilterOP which can do report_sm() or ScoreFunctionOP during MC trials You can choose either way FilterOP or ScoreFunction.
References adaptive_, filters_, last_accepted_scores_, num_rejections_, rank_by_filter_, sample_types_, scorefxn_, and temperatures_.
Referenced by parse_my_tag().
Size protocols::simple_moves::GenericMonteCarloMover::add_trigger | ( | const GenericMonteCarloMoverTrigger & | trigger) |
Adds a new trigger, returning its id.
Example: #include <boost/bind.hpp> #include <boost/function.hpp>
bool no_op(core::Size stage, core::Size num_stages, core::Size cycle, core::Size num_cycles, const core::pose::Pose&, core::scoring::ScoreFunctionOP) {}
Trigger callback = boost::bind(&no_op, STAGE, NUM_STAGES, _1, _2, _3, _4); Size trigger_id = add_trigger(callback);
The current stage and number of stages must be bound at creation time. This information provides the triggers with context about the current progress of the simulation as a whole.
If the trigger returns true, rescoring occurs.
References next_trigger_id_, and triggers_.
|
virtual |
apply GenericMonteCarloMover (Mover)
comment
Implements protocols::moves::Mover.
References protocols::hotspot_hashing::accept, adaptation_period(), adaptive_movers(), boltzmann(), drift_, core::pose::Pose::dump_pdb(), factory_, protocols::moves::FAIL_BAD_INPUT, protocols::moves::FAIL_DO_NOT_RETRY, protocols::moves::FAIL_RETRY, filters_, fire_all_triggers(), last_accepted_pose(), load_trial_number_from_checkpoint(), maxtrials_, mover_, mover_stopping_condition_, num_designable(), number_designable_, preapply_, recover_low(), recover_low_, protocols::hotspot_hashing::reject, reset(), save_trial_number_to_checkpoint(), saved_accept_file_name_, score_function(), scorefxn_, protocols::moves::Mover::set_last_move_status(), show_counters(), show_scores(), protocols::loops::stop, stopping_condition(), task_scaling_, and protocols::simple_moves::TR().
core of MC
References protocols::hotspot_hashing::accept, accept_counter_, adaptive_, core::pose::add_comment(), boltz_rank_, current_score_, core::pose::Pose::dump_pdb(), energy_gap_counter_, filters_, last_accepted_pose_, last_accepted_score(), last_accepted_score_, last_accepted_scores_, lowest_score(), lowest_score_, lowest_score_pose_, mc_accepted_, mc_RG(), protocols::moves::MCA_accepted_score_beat_last, protocols::moves::MCA_accepted_score_beat_low, protocols::moves::MCA_accepted_thermally, protocols::moves::MCA_rejected, mover_tag_, num_rejections_, rank_by_filter_, sample_types_, saved_accept_file_name_, scoring(), show_scores(), temperature_, temperatures_, protocols::simple_moves::TR(), TR_energies(), trial_counter_, and user_defined_mover_name_.
Referenced by apply().
|
virtual |
create copy constructor
clone this object
Reimplemented from protocols::moves::Mover.
References GenericMonteCarloMover().
Referenced by parse_my_tag().
GenericMonteCarloMover::Real protocols::simple_moves::GenericMonteCarloMover::current_score | ( | ) | const |
|
private |
Executes all triggers. The order of trigger execution is undefined. Do not assume, depend, or in any way rely on a particular ordering.
References last_accepted_pose_, last_accepted_score_, lowest_score_, lowest_score_pose_, core::scoring::hbonds::t(), and triggers_.
Referenced by apply().
|
virtual |
create this type of objectt
create this type of object
Reimplemented from protocols::moves::Mover.
References GenericMonteCarloMover().
|
virtual |
Each derived class must specify its name. The class name.
Implements protocols::moves::Mover.
References protocols::simple_moves::GenericMonteCarloMoverCreator::mover_name().
void protocols::simple_moves::GenericMonteCarloMover::initialize | ( | ) |
initialize object used in constructor
initialize
References accept_counter_, energy_gap_counter_, flip_sign_, last_accepted_scores_, next_trigger_id_, sample_type_, protocols::simple_moves::TR(), and trial_counter_.
Referenced by GenericMonteCarloMover(), and parse_my_tag().
GenericMonteCarloMover::PoseOP protocols::simple_moves::GenericMonteCarloMover::last_accepted_pose | ( | ) | const |
GenericMonteCarloMover::Real protocols::simple_moves::GenericMonteCarloMover::last_accepted_score | ( | ) | const |
return the last accepted score
References last_accepted_score_.
Referenced by boltzmann(), and show_scores().
core::Size protocols::simple_moves::GenericMonteCarloMover::load_trial_number_from_checkpoint | ( | core::pose::Pose & | pose) |
References core::sequence::end, filters_, mover_tag_, reset(), reset_baselines(), saved_trial_number_file_, and protocols::simple_moves::TR().
Referenced by apply().
GenericMonteCarloMover::Real protocols::simple_moves::GenericMonteCarloMover::lowest_score | ( | ) | const |
GenericMonteCarloMover::PoseOP protocols::simple_moves::GenericMonteCarloMover::lowest_score_pose | ( | ) | const |
return the lowest score pose
References lowest_score_pose_.
MCA protocols::simple_moves::GenericMonteCarloMover::mc_accpeted | ( | ) | const |
return mc_accepted
References mc_accepted_.
GenericMonteCarloMover::Size protocols::simple_moves::GenericMonteCarloMover::num_designable | ( | Pose & | pose, |
PackerTaskOP & | task | ||
) |
References core::pose::Pose::total_residue(), and protocols::simple_moves::TR().
Referenced by apply().
Size protocols::simple_moves::GenericMonteCarloMover::num_triggers | ( | ) | const |
Returns the number of triggers.
References triggers_.
|
virtual |
parse xml file
Reimplemented from protocols::moves::Mover.
References adaptation_period(), adaptive_movers(), add_filter(), boltz_rank_, clone(), drift_, filters_, protocols::moves::DataMap::get(), protocols::moves::get_set_from_datamap(), protocols::moves::DataMap::has(), initialize(), maxtrials_, mover_, mover_stopping_condition_, mover_tag_, protocols::rosetta_scripts::parse_filter(), parse_task_operations(), preapply_, rank_by_filter_, recover_low_, reset_baselines(), sample_type_, saved_accept_file_name_, saved_trial_number_file_, scorefxn_, stopping_condition(), task_scaling_, temperature_, protocols::simple_moves::TR(), and user_defined_mover_name_.
|
virtual |
parse "task_operations" XML option (can be employed virtually by derived Packing movers)
parse "task_operations" XML option
References protocols::rosetta_scripts::parse_task_operations(), task_factory(), and protocols::simple_moves::TR().
Referenced by parse_my_tag().
void protocols::simple_moves::GenericMonteCarloMover::recover_low | ( | Pose & | pose) |
return the simulation state to the lowest energy structure we've seen
References last_accepted_pose_, lowest_score_pose_, and protocols::simple_moves::TR().
Referenced by apply(), and set_recover_low().
void protocols::simple_moves::GenericMonteCarloMover::remove_trigger | ( | Size | trigger_id) |
Removes the trigger with the specified id.
References protocols::simple_moves::TR(), and triggers_.
void protocols::simple_moves::GenericMonteCarloMover::reset | ( | Pose & | pose) |
reset MC iterations, with pose used for the last & best structures
reset this GenericMonteCarloMover
References accept_counter_, energy_gap_counter_, filters_, last_accepted_pose_, last_accepted_score_, last_accepted_scores_, lowest_score_, lowest_score_pose_, num_rejections_, sample_types_, scoring(), protocols::simple_moves::TR(), and trial_counter_.
Referenced by apply(), and load_trial_number_from_checkpoint().
|
inline |
|
inline |
Referenced by load_trial_number_from_checkpoint(), and parse_my_tag().
void protocols::simple_moves::GenericMonteCarloMover::save_trial_number_to_checkpoint | ( | core::Size const | i) | const |
References saved_trial_number_file_.
Referenced by apply().
std::string protocols::simple_moves::GenericMonteCarloMover::saved_accept_file_name | ( | ) | const |
References saved_accept_file_name_.
void protocols::simple_moves::GenericMonteCarloMover::saved_accept_file_name | ( | std::string const | s) |
References saved_accept_file_name_.
std::string protocols::simple_moves::GenericMonteCarloMover::saved_trial_number_file | ( | ) | const |
References saved_trial_number_file_.
void protocols::simple_moves::GenericMonteCarloMover::saved_trial_number_file | ( | std::string const | s) |
References saved_trial_number_file_.
|
inline |
Return the score function in use.
Referenced by apply().
|
private |
evalute pose by ScoreFunctionOP or FilterOP
score pose based on filter or scorefxn
References flip_sign_, and scorefxn_.
Referenced by boltzmann(), and reset().
void protocols::simple_moves::GenericMonteCarloMover::set_boltz_rank | ( | bool const | boltz_rank) |
if boltz_rank=true, rank structures by the temperature-weighted sum of scores, rather than a single filter
References boltz_rank_.
void protocols::simple_moves::GenericMonteCarloMover::set_drift | ( | bool const | drift) |
if drift=false, the pose is set back to the initial pose at each MC trial Of course, this is not MC sampling.
if drift=false, the pose is set back to the initial pose Of course, this is not MC sampling.
References drift_.
void protocols::simple_moves::GenericMonteCarloMover::set_maxtrials | ( | Size const | ntrial) |
void protocols::simple_moves::GenericMonteCarloMover::set_mover | ( | MoverOP const & | mover) |
set mover
References mover_.
void protocols::simple_moves::GenericMonteCarloMover::set_preapply | ( | bool const | preapply = false ) |
if preapply=true, auto-accept the first application of the submover, ignoring boltzman criteria.
References preapply_.
void protocols::simple_moves::GenericMonteCarloMover::set_recover_low | ( | bool const | recover_low) |
if recover_low=true, after apply() the structure is the lowest energy structure, rather than the last accepted structure.
if recover_low=true, after apply() the returned is the lowest energy structure, rather than the last accepted structure.
References recover_low(), and recover_low_.
void protocols::simple_moves::GenericMonteCarloMover::set_sampletype | ( | String const & | type) |
set sample type, max or min when sample_type == max, sample pose which have higher score when sample_type == min, sample pose which have lower score
set sample type, high or low when sample_type == high, sample pose which have higher value of scorey when sample_type == low, sample pose which have lower value of score
References sample_type_, protocols::simple_moves::TR(), and protocols::moves::Mover::type().
void protocols::simple_moves::GenericMonteCarloMover::set_scorefxn | ( | ScoreFunctionOP const & | sfxn) |
void protocols::simple_moves::GenericMonteCarloMover::set_task_scaling | ( | Size const | scaling) |
set task multiplier to calculate trials from task
References task_scaling_.
void protocols::simple_moves::GenericMonteCarloMover::set_temperature | ( | Real const | temp) |
void protocols::simple_moves::GenericMonteCarloMover::show_counters | ( | std::ostream & | out) | const |
show counters of ntrial and acceptance ratio
show counters
References protocols::comparative_modeling::features::A, accept_counter_, energy_gap_counter_, flip_sign_, mover_, num_rejections_, scorefxn_, and trial_counter_.
Referenced by apply().
void protocols::simple_moves::GenericMonteCarloMover::show_scores | ( | std::ostream & | out) | const |
show scores of last_accepted_score and "best_score" ( = flip_sign_ * lowest_score )
show scores of last_accepted_score and lowest_score
References current_score(), flip_sign_, last_accepted_score(), lowest_score(), sample_type_, and trial_counter_.
Referenced by apply(), and boltzmann().
void protocols::simple_moves::GenericMonteCarloMover::stopping_condition | ( | protocols::filters::FilterOP | filter) |
References stopping_condition_.
protocols::filters::FilterOP protocols::simple_moves::GenericMonteCarloMover::stopping_condition | ( | ) | const |
References stopping_condition_.
Referenced by apply(), and parse_my_tag().
|
private |
|
private |
Referenced by boltzmann(), initialize(), reset(), and show_counters().
|
private |
|
private |
Referenced by add_filter(), and boltzmann().
|
private |
|
private |
If boltz_rank_=true, instead of ranking by a single filter, rank by the temperature-weighted sum of all scores.
Referenced by boltzmann(), parse_my_tag(), and set_boltz_rank().
|
private |
current score
Referenced by boltzmann(), and current_score().
|
private |
if drift=false, the pose is set back to the initial pose at each MC trial Of course, this is not MC sampling.
Referenced by apply(), parse_my_tag(), and set_drift().
|
private |
Referenced by boltzmann(), initialize(), reset(), and show_counters().
|
private |
task factory
Referenced by apply(), and task_factory().
|
private |
Pose is evaluated by FilterOP which can do report_sm() during MC trials.
Referenced by add_filter(), apply(), boltzmann(), load_trial_number_from_checkpoint(), parse_my_tag(), reset(), and set_scorefxn().
|
private |
to change the sing of calculated "score"
Referenced by initialize(), scoring(), show_counters(), and show_scores().
|
private |
accepted structure
Referenced by boltzmann(), fire_all_triggers(), last_accepted_pose(), recover_low(), and reset().
|
private |
accepted structure
Referenced by boltzmann(), fire_all_triggers(), last_accepted_score(), and reset().
|
private |
Referenced by add_filter(), boltzmann(), initialize(), and reset().
|
private |
lowest energy structure we've seen
Referenced by boltzmann(), fire_all_triggers(), lowest_score(), and reset().
|
private |
lowest energy structure we've seen
Referenced by boltzmann(), fire_all_triggers(), lowest_score_pose(), recover_low(), and reset().
|
private |
max number of MC trials
Referenced by apply(), parse_my_tag(), and set_maxtrials().
|
private |
result of the last call to boltzmann
Referenced by boltzmann(), and mc_accpeted().
|
private |
mover
Referenced by apply(), parse_my_tag(), set_mover(), and show_counters().
|
private |
Referenced by apply(), and parse_my_tag().
|
private |
Referenced by boltzmann(), load_trial_number_from_checkpoint(), and parse_my_tag().
|
private |
Next trigger identifier to be assigned.
Referenced by add_trigger(), and initialize().
|
private |
Count the number of rejections each filter resulted in.
Referenced by add_filter(), boltzmann(), reset(), and show_counters().
|
private |
number of designable positions
Referenced by apply().
|
private |
Should we apply (and accept) the first application of the mover regardless of boltzman criteria? (Defaults true for historical reasons.)
Referenced by apply(), parse_my_tag(), and set_preapply().
|
private |
By which filter (by index) are poses ranked by for non-Boltzman purposes (e.g. recover_low())
Referenced by add_filter(), boltzmann(), and parse_my_tag().
|
private |
At the end of application, is the structure the last accepted structure (recover_low_==false) or is it the lowest energy structure (recover_low_=true)
Referenced by apply(), parse_my_tag(), and set_recover_low().
|
private |
|
private |
set sample type, max or min when sample_type == max, sample pose which have higher score when sample_type == min, sample pose which have lower score
Referenced by initialize(), parse_my_tag(), set_sampletype(), and show_scores().
|
private |
Referenced by add_filter(), boltzmann(), and reset().
|
private |
dflt max( 10, trials/10 ); only works with adaptive; how often should the run probabilities be adapted?
Referenced by apply(), boltzmann(), parse_my_tag(), and saved_accept_file_name().
|
private |
|
private |
Pose is evaluated by ScoreFunctionOP during MC trials.
Referenced by add_filter(), apply(), parse_my_tag(), scoring(), set_scorefxn(), and show_counters().
|
private |
Referenced by stopping_condition().
|
private |
task
|
private |
multiply the number_designable_ by task_scaling to get the number of trials
Referenced by apply(), parse_my_tag(), and set_task_scaling().
|
private |
acceptance criterion temperature
Referenced by boltzmann(), parse_my_tag(), and set_temperature().
|
private |
acceptance criterion temperature
Referenced by add_filter(), and boltzmann().
|
private |
diagnostics
Referenced by boltzmann(), initialize(), reset(), show_counters(), and show_scores().
|
private |
Collection of function callbacks.
Referenced by add_trigger(), fire_all_triggers(), num_triggers(), and remove_trigger().
|
private |
dflt NULL; this is used by the called movers to set a certain tag. If saved_accept_file_name_ is set, then at exit the tag coming from the chosen mover is written to disk as, <saved_accept_file_name>.mover_tag. To work, mover_tag_ must be exposed to the movers being called.
Referenced by boltzmann(), and parse_my_tag().