~swaits/differential-evolution

7d8c0064a95da9a711df9414f576273ab131ce92 — swaits 17 years ago 898adda
removed old PSO stuff.  I'm just not into it any more.
2 files changed, 0 insertions(+), 40 deletions(-)

D pso.cpp
D pso.h
D pso.cpp => pso.cpp +0 -6
@@ 1,6 0,0 @@
#include "pso.h"

int main()
{
	return 0;
}

D pso.h => pso.h +0 -34
@@ 1,34 0,0 @@
#ifndef __pso_h__
#define __pso_h__

namespace PSO
{
	template <unsigned int DIM, unsigned int POP=(DIM*10)>
	class Engine
	{
	public:

		Engine();
		virtual ~Engine();

		void Reset();

		const double* GetBest() const;

		void SetRange(double minimum, double maximum);
		void SetRange(const Vector<DIM>& minimum, const Vector<DIM>& maximum);
		
		virtual double CalculateError(const double testcase[DIM], bool& stop) = 0;

		bool Solve(unsigned int maxgenerations = 1000000000);

	private:


	};

};


#endif // __pso_h__