[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[oMetah-devel] ometah/problem/CEC05 itsCEC05_SSRPO_Problems.cpp
From: |
NoJhan |
Subject: |
[oMetah-devel] ometah/problem/CEC05 itsCEC05_SSRPO_Problems.cpp |
Date: |
Tue, 07 Jun 2005 11:24:48 -0400 |
CVSROOT: /cvsroot/ometah
Module name: ometah
Branch:
Changes by: NoJhan <address@hidden> 05/06/07 15:24:48
Modified files:
problem/CEC05 : itsCEC05_SSRPO_Problems.cpp
Log message:
* implementation of shift
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/problem/CEC05/itsCEC05_SSRPO_Problems.cpp.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: ometah/problem/CEC05/itsCEC05_SSRPO_Problems.cpp
diff -u ometah/problem/CEC05/itsCEC05_SSRPO_Problems.cpp:1.1
ometah/problem/CEC05/itsCEC05_SSRPO_Problems.cpp:1.2
--- ometah/problem/CEC05/itsCEC05_SSRPO_Problems.cpp:1.1 Tue Jun 7
14:17:55 2005
+++ ometah/problem/CEC05/itsCEC05_SSRPO_Problems.cpp Tue Jun 7 15:24:48 2005
@@ -1,5 +1,5 @@
/***************************************************************************
- * $Id: itsCEC05_SSRPO_Problems.cpp,v 1.1 2005/06/07 14:17:55 nojhan Exp $
+ * $Id: itsCEC05_SSRPO_Problems.cpp,v 1.2 2005/06/07 15:24:48 nojhan Exp $
* Copyright : Université Paris 12 Val-de-Marne
* (61 avenue du Général de Gaulle, 94010, Créteil, France)
* Author: Johann Dréo <address@hidden>
@@ -21,6 +21,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include"../../common/matrix.hpp"
+
#include "itsCEC05_SSRPO_Problems.hpp"
itsCEC05_SSRPO_Problem::itsCEC05_SSRPO_Problem()
@@ -33,12 +35,19 @@
void itsCEC05_SSRPO_Problem::doShiftOptimum()
{
+ vector<double> sol = currentPoint.getSolution();
+ for(unsigned int i=0; i<currentPoint.size(); i++) {
+ sol[i] += optimumShift[i];
+ }
+ currentPoint.setSolution( sol );
}
void itsCEC05_SSRPO_Problem::doRotate()
{
+ vector<double> sol = currentPoint.getSolution();
+
}
void itsCEC05_SSRPO_Problem::noise()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [oMetah-devel] ometah/problem/CEC05 itsCEC05_SSRPO_Problems.cpp,
NoJhan <=