#include #include #include #include #include #include #include #include #include #include using namespace std; using namespace opt_utilities; int main(int argc,char* argv[]) { if(argc!=2) { cerr<<"Usage: "<"<,double,std::string> fit; fit.set_opt_method(powell_method >()); fit.set_statistic(chisq,double,string>()); std::string model_so_name; cfg_file>>model_so_name; cerr<<"loading model shared object "<,string>(model_so_name.c_str())); string data_file_name; cfg_file>>data_file_name; cerr<<"setting initializational values:"<>p>>v; if(!cfg_file.good()) { break; } istringstream oss(v); double dvp=0; oss>>dvp; cerr< dl; dl.load_from(data_file); data_file.close(); fit.load_data(dl.get_data_set()); vector p=fit.fit(); cout<