hr.fer.diplomski.seminar.pso
Interface Function

All Known Implementing Classes:
F1, F6

public interface Function

Interface which every fitnes function has to meet. Defines function for evaluation and for returning number of dimensions. For testing purposes, it also has getOpt function which is used for stopping the swarm if absolute error is below certain level. In real problems, optimum is unknown, so getOpt() function should be left out in deployment version.

Version:
alfa
Author:
marko pletikosa 0036424228

Method Summary
 double evaluate(double[] parameters)
           
 int getDim()
           
 double[] getOpt()
           
 

Method Detail

evaluate

double evaluate(double[] parameters)

getDim

int getDim()

getOpt

double[] getOpt()