


[val] = SumEvaluateGeneralFunction(vector):
Evaluates a vector on a multimodal function whose structure and
values are respectively defined as global variables
FunctionStructure and FunctionTables. The sum of the objectives
evaluations is given as output
INPUT:
vector: Solution to be evaluated
FunctionStructure: A global variable. FunctionStructure{i} is a vector of
those variables indices where the function i depends on.
FunctionTables: A global variable. FunctionTables{i}(j) is the value
given by the objective i to the configuration indexed by j.
FunctionAccCard: A global variable. FunctionAccCard{i} stores the
accumulated cardinality of variables that belong to objective i.
OUTPUT
val: A vector of number_objective values
Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es)

0001 function[val] = SumEvaluateGeneralFunction(vector) 0002 % [val] = SumEvaluateGeneralFunction(vector): 0003 % Evaluates a vector on a multimodal function whose structure and 0004 % values are respectively defined as global variables 0005 % FunctionStructure and FunctionTables. The sum of the objectives 0006 % evaluations is given as output 0007 % INPUT: 0008 % vector: Solution to be evaluated 0009 % FunctionStructure: A global variable. FunctionStructure{i} is a vector of 0010 % those variables indices where the function i depends on. 0011 % FunctionTables: A global variable. FunctionTables{i}(j) is the value 0012 % given by the objective i to the configuration indexed by j. 0013 % FunctionAccCard: A global variable. FunctionAccCard{i} stores the 0014 % accumulated cardinality of variables that belong to objective i. 0015 % OUTPUT 0016 % val: A vector of number_objective values 0017 % 0018 % Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es) 0019 0020 val = sum(EvaluateGeneralFunction(vector));