Package gpinterpreter.stack

Examples of gpinterpreter.stack.StackInterpreter.run()



        StackInterpreter interp = new StackInterpreter(p, tree.deepCopy());


        ClusterHead evaluated = interp.run();
        double fitness = evaluate(evaluated);
        if (punishesWastage()) {
            fitness = scaleWastage(fitness, interp.getWastage());
        }
View Full Code Here


        return convertStackInstruction(conv, originalTree);
    }

    public static ClusterHead convertStackInstruction(List<StackInstruction> program, ClusterHead originalTree) {
        StackInterpreter interp = new StackInterpreter(program, originalTree.deepCopy());
        return interp.run();
    }

    public static ClusterHead convertFlatGene(List<IntegerGene> assignments, ClusterHead originalTree) {
        Map<Integer, Node> nodenumbers = new HashMap<Integer, Node>();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.