ometah-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[oMetah-devel] ometah/interface ometah.cpp


From: Johann
Subject: [oMetah-devel] ometah/interface ometah.cpp
Date: Thu, 10 Mar 2005 13:00:22 -0500

CVSROOT:        /cvsroot/ometah
Module name:    ometah
Branch:         
Changes by:     Johann <address@hidden> 05/03/10 18:00:22

Modified files:
        interface      : ometah.cpp 

Log message:
        * correction of the abstract factory process

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/interface/ometah.cpp.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: ometah/interface/ometah.cpp
diff -u ometah/interface/ometah.cpp:1.1 ometah/interface/ometah.cpp:1.2
--- ometah/interface/ometah.cpp:1.1     Sun Mar  6 14:32:26 2005
+++ ometah/interface/ometah.cpp Thu Mar 10 18:00:21 2005
@@ -1,5 +1,5 @@
 /***************************************************************************
- *  $Id: ometah.cpp,v 1.1 2005/03/06 14:32:26 nojhan Exp $
+ *  $Id: ometah.cpp,v 1.2 2005/03/10 18:00:21 nojhan Exp $
  *  Copyright : Université Paris 12 Val-de-Marne
  *  Author : Johann Dréo <address@hidden>
  ****************************************************************************/
@@ -30,6 +30,8 @@
 
 #include "../metaheuristic/itsEstimationOfDistribution.hpp"
 
+using namespace std;
+
 int main(int argc, char* argv)
 {
 
@@ -39,6 +41,7 @@
     itsSet<itsCommunicationClient*> setCommunicationClient;
     itsSet<itsCommunicationServer*> setCommunicationServer;
 
-    itsEstimationOfDistributionFactory factory;
+    // add the estimation of distribution algorithm
+    itsMetaheuristicFactory* factory = new itsEstimationOfDistributionFactory;
     setMetaheuristic.add(factory->create());
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]