ConicBundle
SumModelParameters.hxx
Go to the documentation of this file.
1 
2 
3 #ifndef CONICBUNDLE_SUMMODELPARAMETERS_HXX
4 #define CONICBUNDLE_SUMMODELPARAMETERS_HXX
5 
15 
16 namespace ConicBundle {
21 
28 {
29 private:
30 public:
31 
33  SumModelParameters(CBout* cb=0,int cbinc=-1):
34  SumModelParametersObject(cb,cbinc)
35  {}
36 
39  int in_max_local_models=0):
41  {
42  init(sbp);
43  max_local_models=in_max_local_models;
44  }
45 
49  {
50  init(smp);
51  }
52 
54  virtual ~SumModelParameters();
55 
58  { return new SumModelParameters(*this); }
59 
61  virtual int select_models(SumModel::ModelMap& modelmap);
62 
63 };
64 
65 
67 
68 }
69 
70 #endif
71 
int max_local_models
when combining models, aim for this number of local models
Definition: SumModelParametersObject.hxx:47
abstract interface for SumModel for the models selection routine when using SumBundle and SumBundleHa...
Definition: SumModelParametersObject.hxx:40
Header declaring the class ConicBundle::SumBundleParametersObject.
abstract interface for SumBundleHandler for the model selection and variable metric seletcion routine...
Definition: SumBundleParametersObject.hxx:50
conic bundle method solver for sum of convex functions. See the ConicBundle_Manual for a quick introd...
Definition: CBSolver.hxx:22
base class for uniform use of WARNINGS and ERRORS (at some point in time)
Definition: CBout.hxx:30
std::map< const FunctionObject *, ModelData * > ModelMap
a ModelMap maps FunctionObject pointers (these must be unique) to their ModelData ...
Definition: SumModel.hxx:141
Serves for specifying parameters regarding the construction of cutting models.
Definition: CBSolver.hxx:891
Header declaring the class ConicBundle::SumModelParametersObject.
SumModelParameters(const SumBundleParametersObject &sbp, int in_max_local_models=0)
constructor setting the SumBundleParameters to use for passing on; the BundleParameters also get this...
Definition: SumModelParameters.hxx:38
virtual int select_models(SumModel::ModelMap &modelmap)
generate a suggestion list on which to include in the SumBundle (the othersi should keep their local ...
SumModelParameters(CBout *cb=0, int cbinc=-1)
default constructor
Definition: SumModelParameters.hxx:33
virtual ~SumModelParameters()
virtual destructor
SumModelParameters(const SumModelParameters &smp)
copy constructor
Definition: SumModelParameters.hxx:47
virtual BundleParameters * clone_BundleParameters() const
return a new clone object of this on the heap (caller needs to delete the result) ...
Definition: SumModelParameters.hxx:57
specifies the suggestion procedure for including models in a joint SumBundle model of SumModel ...
Definition: SumModelParameters.hxx:27
int init(const BundleParameters &bp)
initialize BundleParameters to the given values; if bp is a SumModelParametersObject alos set max_loc...
Definition: SumModelParametersObject.hxx:51