craam/algorithms/robust_values.hpp
inline NatureResponse<prec_t> string_to_nature(string nature){
    if(nature == "robust_unbounded") return robust_unbounded;
    if(nature == "optimistic_unbounded") return optimistic_unbounded;
    if(nature == "robust_l1") return robust_l1;
    if(nature == "optimistic_l1") return optimistic_l1;
    throw invalid_argument("Unknown nature.");
}
/**
Converts a string representation of nature response to the appropriate nature response call.
This function is useful when the code is used within a python or R libraries. The values values
correspond to the function definitions, and ones that are currently supported are:

- robust_unbounded
- optimistic_unbounded
- robust_l1
- optimistic_l1
*/
Converts a string representation of nature response to the appropriate nature response call.
This function is useful when the code is used within a python or R libraries. The values values
correspond to the function definitions, and ones that are currently supported are.


Converts a string representation of nature response to the appropriate nature response call . This function is useful when the code is used within a python or R libraries . The values values correspond to the function definitions and ones that are currently supported are .
inline NatureResponse<prec_t> string_to_nature(string nature){
    if(nature == "robust_unbounded") return robust_unbounded;
    if(nature == "optimistic_unbounded") return optimistic_unbounded;
    if(nature == "robust_l1") return robust_l1;
    if(nature == "optimistic_l1") return optimistic_l1;
    throw invalid_argument("Unknown nature.");
}
inline NatureResponse < prec_t > string_to_nature ( string nature ) { if ( nature == " " ) return robust_unbounded ; if ( nature == " " ) return optimistic_unbounded ; if ( nature == " " ) return robust_l1 ; if ( nature == " " ) return optimistic_l1 ; throw invalid_argument ( " " ) ; }
Converts a string representation of nature response to the appropriate nature response call.
Converts a string representation of nature response to the appropriate nature response call .