Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MultiCoolAnnealer.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file core/pack/annealer/MultiCoolAnnealer.hh
11 /// @brief Multiple low-temperature cooling cycles annealer class declaration
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 
14 #ifndef INCLUDED_core_pack_annealer_MultiCoolAnnealer_hh
15 #define INCLUDED_core_pack_annealer_MultiCoolAnnealer_hh
16 
17 /// Unit headers
19 
20 /// Package headers
22 
25 
26 /// ObjexxFCL headers
27 #include <ObjexxFCL/FArray1D.hh>
28 #include <ObjexxFCL/FArray2D.hh>
29 
30 #include <utility/vector0.hh>
31 #include <utility/vector1.hh>
32 
33 
34 
35 namespace core {
36 namespace pack {
37 namespace annealer {
38 
39 
41 {
42 public:
46  ObjexxFCL::FArray1D_int & bestrotamer_at_seqpos,
48  bool start_with_current, // start simulation with current rotamers
51  ObjexxFCL::FArray1_int & current_rot_index,
52  bool calc_rot_freq,
53  ObjexxFCL::FArray1D< core::PackerEnergy > & rot_freq
54  );
55 
58  ObjexxFCL::FArray1D_int & bestrotamer_at_seqpos,
59  core::PackerEnergy & bestenergy,
60  bool start_with_current, // start simulation with current rotamers
62  FixbbRotamerSetsCOP rotamer_sets,
63  ObjexxFCL::FArray1_int & current_rot_index,
64  bool calc_rot_freq,
65  ObjexxFCL::FArray1D< core::PackerEnergy > & rot_freq
66  );
67 
68  virtual ~MultiCoolAnnealer();
69  void run();
70 
71 
72  private:
73 
74  void cool();
75  void run_quench(
76  ObjexxFCL::FArray1D_int & state_on_node,
77  ObjexxFCL::FArray1D_int & best_state_on_node,
78  core::PackerEnergy & best_energy,
79  int num_cycles );
80 
82  ObjexxFCL::FArray1D_int & state_on_node,
83  ObjexxFCL::FArray1D_int & best_state_on_node,
84  core::PackerEnergy & best_energy,
85  int num_cycles
86  );
87 
88  void store_top_energy(
89  ObjexxFCL::FArray1D_int const & state_on_node,
90  core::PackerEnergy energy );
91 
92  /// @brief unimplemented, private copy ctor -- uncopyable
94  /// @brief unimplemented, private assignment operator -- uncopyable
95  MultiCoolAnnealer const & operator = ( MultiCoolAnnealer const & rhs );
96 
97 private:
98 
100 
102  //std::vector<int> rot_to_pack_;
103 
104  //static int top_to_keep_static;
105 
106  ObjexxFCL::FArray1D_int nsteps_for_rot_;
107  int nsteps_;
109  ObjexxFCL::FArray2D_int top_netstates_;
110  ObjexxFCL::FArray1D< core::PackerEnergy > energy_top_;
114 
115 };
116 
117 }// namespace annealer
118 }// namespace pack
119 }// namespace core
120 
121 #endif