public AssessmentManager(Config config, Type c, int wholeSize)
 {
     this.config = config;
     globalBest = 0;
     this.wholeSize = wholeSize;
     globalBest = (double) c.GetMethod("getDefault", new Type[] {typeof(Config)}).Invoke(null, new Object[] {config});
     constructor = c.GetConstructor(new Type[] {typeof(AssessmentManager)});
 }
        public SymmetryEnvironment(MoveNode.GradeNode lowestNode)
        {
            this.lowestNode = lowestNode;
            config = lowestNode.MoveNode.config;

            colorFalse = new bool[config.colors];
            colorUsed = new bool[config.colors];
            init();
        }
Example #3
0
 public static double getDefault(Config config)
 {
     return(config.combinations);
 }
 public RootNode(Config conf)
     : base((short) 0, null, conf)
 {
 }
Example #5
0
 public ResultSet(SymmetryEnvironment symmetryEnvironment, Config config)
 {
     this.symmetryEnvironment = symmetryEnvironment;
     this.config = config;
 }
 public static double getDefault(Config config)
 {
     return config.combinations;
 }
 public static double getDefault(Config config)
 {
     //return (int) -Math.ceil(Math.log(1 / (config.pegs * (config.pegs + 3) / 2)) / Math.log(2));
     return 0;
 }
 public UnsynchronizedAssessmentManager(Config config, Type c, int maxSize)
     : base(config, c, maxSize)
 {
 }
 public ResultSet(SymmetryEnvironment symmetryEnvironment, Config config)
 {
     this.symmetryEnvironment = symmetryEnvironment;
     this.config = config;
 }