14 const std::string OptimisationMethod::_labels[
LAST_VALUE] =
15 {
"Leg based Monte Carlo",
"Leg based EMSRb"};
18 const char OptimisationMethod::
23 OptimisationMethod::OptimisationMethod()
31 : _method (iOptimisationMethod._method) {
37 : _method (iOptimisationMethod) {
41 OptimisationMethod::OptimisationMethod (
const char iMethod) {
50 std::ostringstream oMessage;
51 oMessage <<
"The optimisation method '" << iMethod
52 <<
"' is not known. Known optimisation methods: " << lLabels;
60 return _labels[iMethod];
65 return _methodLabels[iMethod];
71 std::ostringstream oStr;
72 oStr << _methodLabels[iMethod];
78 std::ostringstream ostr;
79 for (
unsigned short idx = 0; idx !=
LAST_VALUE; ++idx) {
83 ostr << _labels[idx] <<
" (" << _methodLabels[idx] <<
")";
95 std::ostringstream oStr;
96 oStr << _methodLabels[_method];
102 std::ostringstream ostr;
103 ostr << _labels[_method];
110 return (_method == iMethod);