#ifndef STRMODEL1D_HPP #define STRMODEL1D_HPP #define OPT_HEADER #include #include #include #include #include #include #include class strmodel1d :public opt_utilities::model,std::string> { private: mu::Parser mp; strmodel1d* do_clone()const; std::vector par_vec; std::vector par_names; std::string expr; std::string var_name; double x; void set_buildin_fun(); public: double do_eval(const double& x,const std::vector& p); strmodel1d(); strmodel1d(const strmodel1d& rhs); strmodel1d& operator=(const strmodel1d& rhs); void set_expr(const std::string& _expr, const std::vector& _par_names, const std::string& _var_name); }; #endif //EOF