Added #ifdef HAVE_GNUPLOT for Windows compatibility
This commit is contained in:
parent
b1220d189b
commit
6b0cfffe09
8 changed files with 38 additions and 6 deletions
|
|
@ -24,6 +24,10 @@
|
|||
|
||||
/** test program for PBIL algorithm */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include <eo>
|
||||
#include <ga/make_ga.h>
|
||||
|
|
@ -34,6 +38,7 @@
|
|||
#include <ga/eoPBILAdditive.h>
|
||||
#include <eoSimpleEDA.h>
|
||||
|
||||
|
||||
using namespace std;
|
||||
|
||||
typedef eoBit<double> Indi;
|
||||
|
|
@ -97,6 +102,7 @@ int main(int argc, char* argv[])
|
|||
"Output - Graphical");
|
||||
if (plotDistribParam.value())
|
||||
{
|
||||
#ifdef HAVE_GNUPLOT
|
||||
unsigned frequency=1; // frequency of plots updates
|
||||
eoGnuplot1DSnapshot *distribSnapshot = new eoGnuplot1DSnapshot(ptDirNameParam->value(),
|
||||
frequency, "distrib");
|
||||
|
|
@ -105,6 +111,7 @@ int main(int argc, char* argv[])
|
|||
distribSnapshot->add(distrib);
|
||||
// and of course add it to the checkpoint
|
||||
checkpoint.add(*distribSnapshot);
|
||||
#endif
|
||||
}
|
||||
|
||||
// the algorithm: EDA
|
||||
|
|
|
|||
Reference in a new issue