coser.algorithm
类 TestCostConstraintReductionGA

java.lang.Object
  继承者 coser.algorithm.TestCostConstraintReductionGA

public class TestCostConstraintReductionGA
extends java.lang.Object

Project: The cost-sensitive rough sets project.

Summary: Reduction using genetic algorithms.

Author: Fan Min minfanphd@163.com and Jiabin Liu

Copyright: The source code and all documents are open and free. PLEASE keep this header while revising the program.
Organization: Lab of Granular Computing, Zhangzhou Normal University, Fujian 363000, China.
Progress: Almost done.
Written time: September 11, 2011.
Last modify time: April 26, 2012.


构造方法摘要
构造函数 和 描述
TestCostConstraintReductionGA()
           
 
方法摘要
修饰符 和 类型 方法 和 描述
static java.lang.String batchTestCostConstraintReductionGA(double paraLambdaUpperBound, double paraLambdaLowerBound, double paraLambdaStepLength, double paraBudgetFacotr, int paraNumberOfChromosomes, int paraNumberOfGeneration, int paraExperiments, boolean paraShowDetail)
          Run the genetic algorithm paraExperiments times.
static java.lang.String batchTestCostConstraintReductionGAComparison(double paraLambdaUpperBound, double paraLambdaLowerBound, double paraLambdaStepLength, double paraBudgetFacotr, int paraNumberOfChromosomes, int paraNumberOfGeneration, int paraExperiments, boolean paraShowDetail)
          Two algorithms, namely the greedy algorithm using the lambda weighted approach, and the genetic algorithm, are compared.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

TestCostConstraintReductionGA

public TestCostConstraintReductionGA()
方法详细信息

batchTestCostConstraintReductionGA

public static java.lang.String batchTestCostConstraintReductionGA(double paraLambdaUpperBound,
                                                                  double paraLambdaLowerBound,
                                                                  double paraLambdaStepLength,
                                                                  double paraBudgetFacotr,
                                                                  int paraNumberOfChromosomes,
                                                                  int paraNumberOfGeneration,
                                                                  int paraExperiments,
                                                                  boolean paraShowDetail)
                                                           throws java.lang.Exception
Run the genetic algorithm paraExperiments times. Currently ignore this one because it is essentially contained in batchTestCostConstraintReductionGAComparison().

参数:
paraLambdaUpperBound - the upper bound of lambda, non-positive.
paraLambdaLowerBound - the lower bound of lambda.
paraLambdaStepLength - the step length of labda. For example, if the upper and lower bounds are -0.5 and -2 respectively, and the step length is 0.5, then the lambda will have values -0.5, -1.0, -1.5, and -2.0. Fan suggests to set the lower bound to -2.1 since the computation of double values are not accurate.
paraNumberOfChromosomes - the number of chromosome.
paraNumberOfGeneration - the max generation.
paraExperiments - the number of experiments to undertake. Each time the dataset have different test-cost settings.
paraShowDetail - show the detail of the program running. Only valid if paraExperiments is not greater than 50.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.

batchTestCostConstraintReductionGAComparison

public static java.lang.String batchTestCostConstraintReductionGAComparison(double paraLambdaUpperBound,
                                                                            double paraLambdaLowerBound,
                                                                            double paraLambdaStepLength,
                                                                            double paraBudgetFacotr,
                                                                            int paraNumberOfChromosomes,
                                                                            int paraNumberOfGeneration,
                                                                            int paraExperiments,
                                                                            boolean paraShowDetail)
                                                                     throws java.lang.Exception
Two algorithms, namely the greedy algorithm using the lambda weighted approach, and the genetic algorithm, are compared.

参数:
paraLambdaUpperBound - the upper bound of lambda, non-positive.
paraLambdaLowerBound - the lower bound of lambda.
paraLambdaStepLength - the step length of labda. For example, if the upper and lower bounds are -0.5 and -2 respectively, and the step length is 0.5, then the lambda will have values -0.5, -1.0, -1.5, and -2.0. Fan suggests to set the lower bound to -2.1 since the computation of double values are not accurate.
paraNumberOfChromosomes - the number of chromosome.
paraNumberOfGeneration - the max generation.
paraExperiments - the number of experiments to undertake. Each time the dataset have different test-cost settings.
paraShowDetail - show the detail of the program running. Only valid if paraExperiments is not greater than 50.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.