Skip to content
Snippets Groups Projects
Commit df14bad5 authored by Malte Albrecht's avatar Malte Albrecht
Browse files

Added evo standalone mode to epemReactionApp

parent 0bbf78b1
No related branches found
No related tags found
No related merge requests found
......@@ -284,6 +284,31 @@ int main(int __argc,char *__argv[]){
return 1;
}
if (mode=="evo"){
bool cacheAmps = theAppParams->cacheAmps();
Info << "caching amplitudes enabled / disabled:\t" << cacheAmps << endmsg;
if (cacheAmps) theLhPtr->cacheAmplitudes();
theAppBase.fixParams(upar,fixedParams);
EvoMinimizer theEvoMinimizer(theFcn, upar, epemEnv::instance()->parser()->evoPopulation(), epemEnv::instance()->parser()->evoIterations());
Info <<"start evolutionary minimizer "<< endmsg;
std::vector<double> finalParamVec = theEvoMinimizer.Minimize();
fitParams finalFitParams=theStartparams;
theFitParamBase->getFitParamVal(finalParamVec, finalFitParams);
fitParams finalFitErrs=theErrorparams;
std::ostringstream finalResultname;
finalResultname << "finalResult" << outputFileNameSuffix << ".dat";
std::ofstream theStream ( finalResultname.str().c_str() );
theFitParamBase->dumpParams(theStream, finalFitParams, finalFitErrs);
return 1;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment