MOEA Framework 2.12
API Specification

org.moeaframework.util.weights
Class RandomGenerator

java.lang.Object
  extended by org.moeaframework.util.weights.RandomGenerator
All Implemented Interfaces:
WeightGenerator

public class RandomGenerator
extends Object
implements WeightGenerator

Generates weights randomly. This is the method proposed in [1] to replace the normal boundary intersection method in the original MOEA/D. If N weights are requested, this method first generates 50*N random weights. From these weights, N are selected that are maximally distant from all other weights.

References:

  1. Zhang, Q., et al. "The Performance of a New Version of MOEA/D on CEC09 Unconstrained MOP Test Instances." IEEE Congress on Evolutionary Computation, 2009.


Constructor Summary
RandomGenerator(int numberOfObjectives, int numberOfPoints)
          Constructs a new weight generator that generates randomly-sampled weights.
 
Method Summary
 List<double[]> generate()
          Returns the generated weights.
 int size()
          Returns the number of weights that will be generated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomGenerator

public RandomGenerator(int numberOfObjectives,
                       int numberOfPoints)
Constructs a new weight generator that generates randomly-sampled weights.

Parameters:
numberOfObjectives - the number of objectives
numberOfPoints - the number of weights to generate
Method Detail

size

public int size()
Description copied from interface: WeightGenerator
Returns the number of weights that will be generated.

Specified by:
size in interface WeightGenerator
Returns:
the number of weights that will be generated

generate

public List<double[]> generate()
Description copied from interface: WeightGenerator
Returns the generated weights.

Specified by:
generate in interface WeightGenerator
Returns:
the genreated weights

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!