/** * \file ConjugateGradients.cpp \brief Simple conjugate gradients optimizer. * * Copyright 2007-2010 IMP Inventors. All rights reserved. * */ #include #include #include #include #include IMPDOMINO2_BEGIN_NAMESPACE BranchAndBoundSampler::BranchAndBoundSampler(Model *m, ParticleStatesTable* pst, std::string name): DiscreteSampler(m, pst, name){ } BranchAndBoundSampler::BranchAndBoundSampler(Model *m, std::string name): DiscreteSampler(m, new ParticleStatesTable(), name) { } SubsetStates BranchAndBoundSampler ::do_get_sample_states(const Subset &s) const { IMP::internal::OwnerPointer set = DiscreteSampler::get_subset_evaluator_table_to_use(); SubsetFilterTables sfts = DiscreteSampler::get_subset_filter_tables_to_use(set); IMP::internal::OwnerPointer sst = DiscreteSampler::get_subset_states_table_to_use(sfts); const SubsetStates ret = sst->get_subset_states(s); return ret; } void BranchAndBoundSampler::do_show(std::ostream &out) const { } IMPDOMINO2_END_NAMESPACE