Package gpinterpreter.stack

Examples of gpinterpreter.stack.StackInterpreter


        for (int i = 0; i < program.size(); i++) {
            p.add(program.get(i).getInstruction());
        }


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


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


        checkBudget(fitness, evaluated);
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();
    }
View Full Code Here

TOP

Related Classes of gpinterpreter.stack.StackInterpreter

Copyright © 2018 www.massapicom. 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.