![]() |
Rosetta Protocols
2014.35
|
OptE mode multifunction class. More...
#include <OptEMultifunc.hh>
Public Types | |
typedef core::scoring::ScoreTypes | ScoreTypes |
typedef core::scoring::EnergyMap | EnergyMap |
typedef core::optimization::Multivec | Multivec |
typedef core::Real | Real |
typedef core::Size | Size |
Public Member Functions | |
WrapperOptEMultifunc (ScoreTypes const &free_score_list, Size free_count, ScoreTypes const &fixed_score_list, EnergyMap const &fixed_scores, OptEMultifuncOP optEfunc) | |
~WrapperOptEMultifunc () | |
virtual Real | operator() (Multivec const &vars) const |
virtual void | dfunc (Multivec const &vars, Multivec &dE_dvars) const |
OptE dfunc. More... | |
Size | n_real_dofs () const |
utility::vector1< Real > | derived_dofs (Multivec const &vars) const |
void | print_dofs (Multivec const &vars, std::ostream &ostr) const |
numeric::expression_parser::VariableExpressionOP | register_variable_expression (std::string varname) |
void | set_multifunc (OptEMultifuncOP multifunc) |
![]() | |
virtual void | dump (Multivec const &, Multivec const &) const |
OptE mode multifunction class.
DANGER DANGER DANGER This class must never be allocated on the stack. Instead, it should be allocated (with "new") on the heap. This class hands an owning-pointer to itself to another class to create a call-back mechanism; this owning pointer will be invalid and result in stack corruption if this class is allocated on the stack.
protocols::optimize_weights::WrapperOptEMultifunc::WrapperOptEMultifunc | ( | ScoreTypes const & | free_score_list, |
Size | free_count, | ||
ScoreTypes const & | fixed_score_list, | ||
EnergyMap const & | fixed_scores, | ||
OptEMultifuncOP | optEfunc | ||
) |
References active_variables_, active_variables_this_dependent_dof_, begin, dof_variables_, free_score_list_, free_score_names_, getline(), n_real_dofs_, name_from_score_type(), new_dof_names_, optE_dof_expressions_, optEmultifunc_dof_order_, option, numeric::expression_parser::ArithmeticASTExpression::parse(), real_dof_deriviative_expressions_, utility::to_string(), user, utility_exit_with_message, valid_variable_names_, and optE::wrap_dof_optimization.
protocols::optimize_weights::WrapperOptEMultifunc::~WrapperOptEMultifunc | ( | ) |
utility::vector1< Real > protocols::optimize_weights::WrapperOptEMultifunc::derived_dofs | ( | Multivec const & | vars | ) | const |
References dof_variables_, and optE_dof_expressions_.
Referenced by dfunc(), and operator()().
|
virtual |
OptE dfunc.
Implements core::optimization::Multifunc.
References begin, derived_dofs(), F, multifunc_, real_dof_deriviative_expressions_, and protocols::optimize_weights::TR.
Size protocols::optimize_weights::WrapperOptEMultifunc::n_real_dofs | ( | ) | const |
References n_real_dofs_.
|
virtual |
Implements core::optimization::Multifunc.
References derived_dofs(), F, score, and protocols::optimize_weights::TR.
void protocols::optimize_weights::WrapperOptEMultifunc::print_dofs | ( | Multivec const & | vars, |
std::ostream & | ostr | ||
) | const |
References dof_variables_.
numeric::expression_parser::VariableExpressionOP protocols::optimize_weights::WrapperOptEMultifunc::register_variable_expression | ( | std::string | varname | ) |
void protocols::optimize_weights::WrapperOptEMultifunc::set_multifunc | ( | OptEMultifuncOP | multifunc | ) |
References multifunc_.
|
private |
Which variables influence each optE-percieved-dofs?
Referenced by WrapperOptEMultifunc().
|
private |
During expression creation; keep track of which variables are active. This set Eventually ends up in the active_varibles_ array, and will be used to create derivative expressions.
Referenced by register_variable_expression(), and WrapperOptEMultifunc().
|
private |
Dofs marked as dependent by "DEPENDENT_DOF" lines in the wrapper input file.
Referenced by register_variable_expression().
|
private |
Not every VariableExpression object registered by the ExpressionVisitor will end up in this map – variables for fixed_score terms are not kept here, they are simply given a fixed value and never asked to update that value. Every vaiable in this list has its value updated at the beginning of scoring.
Referenced by derived_dofs(), print_dofs(), register_variable_expression(), and WrapperOptEMultifunc().
|
private |
|
private |
Referenced by register_variable_expression().
|
private |
Referenced by register_variable_expression().
|
private |
Referenced by WrapperOptEMultifunc().
|
private |
Referenced by register_variable_expression(), and WrapperOptEMultifunc().
|
private |
Referenced by dfunc(), and set_multifunc().
|
private |
|
private |
Referenced by n_real_dofs(), and WrapperOptEMultifunc().
|
private |
Dofs added by "NEW_DOF" lines in the wrapper input file.
Referenced by register_variable_expression(), and WrapperOptEMultifunc().
|
private |
non-depdendent dofs are handled by VariableExpressions that map from the real_dof id to the optE-percieved-dof id.
Referenced by derived_dofs(), and WrapperOptEMultifunc().
|
private |
Referenced by WrapperOptEMultifunc().
|
private |
For each real dof, a list of each derivative expression and associated optE-percieved-dof id.
Referenced by dfunc(), and WrapperOptEMultifunc().
|
private |
union of ( free_score_names_ - dependent_dof_names_ ) + fixed_score_names_ + new_dof_names
Referenced by register_variable_expression(), and WrapperOptEMultifunc().