move parser makers to show all help and use explicit dimension_size in bounder init app/eda
This commit is contained in:
parent
012d81f7e0
commit
c663ad9230
1 changed files with 7 additions and 7 deletions
|
|
@ -26,7 +26,7 @@ Authors:
|
|||
*/
|
||||
|
||||
#include <eo>
|
||||
#include <mo>
|
||||
// #include <mo>
|
||||
|
||||
#include <eoEvalFuncCounterBounder.h>
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ int main(int ac, char** av)
|
|||
// Prepare bounder class to set bounds of sampling.
|
||||
// This is used by edoSampler.
|
||||
edoBounder< EOT >* bounder =
|
||||
new edoBounderRng< EOT >( EOT(pop[0].size(), -5), EOT(pop[0].size(), 5), *gen); // FIXME do not use hard-coded bounds
|
||||
new edoBounderRng< EOT >( EOT(dimension_size, -5), EOT(dimension_size, 5), *gen); // FIXME do not use hard-coded bounds
|
||||
state.storeFunctor(bounder);
|
||||
|
||||
// Prepare sampler class with a specific distribution
|
||||
|
|
@ -117,7 +117,11 @@ int main(int ac, char** av)
|
|||
// sample for sampling.
|
||||
eoReplacement< EOT >* replacor = new eoEPReplacement< EOT >(pop.size());
|
||||
state.storeFunctor(replacor);
|
||||
|
||||
|
||||
// Help + Verbose routines
|
||||
make_verbose(parser);
|
||||
make_help(parser);
|
||||
|
||||
// Some stuff to display helper when we are using -h option
|
||||
if (parser.userNeedsHelp())
|
||||
{
|
||||
|
|
@ -125,10 +129,6 @@ int main(int ac, char** av)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
// Help + Verbose routines
|
||||
make_verbose(parser);
|
||||
make_help(parser);
|
||||
|
||||
// population output (after helper)
|
||||
//
|
||||
// FIXME: theses objects are instanciated there in order to avoid a folder
|
||||
|
|
|
|||
Reference in a new issue