34 #include "pallas/types.h" 39 template <
typename SummaryType>
40 bool IsSolutionUsable(
const SummaryType& summary) {
41 return (summary.termination_type == TerminationType::CONVERGENCE ||
42 summary.termination_type == TerminationType::NO_CONVERGENCE ||
43 summary.termination_type == TerminationType::USER_SUCCESS);
46 template <
typename SummaryType>
47 bool IsSolutionUsable(SummaryType* summary) {
48 return (summary->termination_type == TerminationType::CONVERGENCE ||
49 summary->termination_type == TerminationType::NO_CONVERGENCE ||
50 summary->termination_type == TerminationType::USER_SUCCESS);
Definition: basinhopping.h:51