[val] = SumPartialEvaluateGeneralFunction(vector): Evaluates a vector on a multimodal function whose structure and values are respectively defined as global variables But only a subset of the objectives are evaluated and the Sum of this objectives 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. SelectedObjectives: A global variable. Specifies with objectives will be evaluated OUTPUT val: A value with the sum of the evaluations of the objetives in SelectedObjectives Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es)
0001 function[val] = SumPartialEvaluateGeneralFunction(vector) 0002 % [val] = SumPartialEvaluateGeneralFunction(vector): 0003 % Evaluates a vector on a multimodal function whose structure and 0004 % values are respectively defined as global variables 0005 % But only a subset of the objectives are evaluated and the Sum of 0006 % this objectives 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 % SelectedObjectives: A global variable. Specifies with objectives will be 0016 % evaluated 0017 % OUTPUT 0018 % val: A value with the sum of the evaluations of the objetives in SelectedObjectives 0019 % 0020 % Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es) 0021 0022 val = sum(PartialEvaluateGeneralFunction(vector)); 0023 0024 0025 0026