Package eas.plugins.standard.eaPlugin.evolvableTranslators

Examples of eas.plugins.standard.eaPlugin.evolvableTranslators.EvolutionPluginCompletelyEvolvable


                this.fitRedWert = params
                        .getParValueDouble(EAPlugin.FIT_EVAP_VAL_ATTR);
            }
           
            if (umgebung != null
                    && umgebung.existsPlugin(new EvolutionPluginCompletelyEvolvable().id())) {
                this.mutZyklen = params
                        .getParValueLong(EvolutionPluginCompletelyEvolvable.MUT_VERH_ZYK_ATTR);
            }
//        }
       
View Full Code Here


                            this.getFitness()[this.aktAut]
                            + this.fitVs[this.aktAut].fitness(
                                    (RobEA) this));
        }

        if (this.umg.existsPlugin(new EvolutionPluginCompletelyEvolvable().id())) {
            if (this.mutAktZyklen > this.mutZyklen) {
                this.mutV = true;
                this.mutiere();
                this.mutAktZyklen = 0;
                this.mutV = false;
View Full Code Here

     *         sonst.
     */
    private static CondMutVerfahren mutVerhFallsEvol(
            final ParCollection params,
            final Random zufall) {
        if (params.getPlugIDList().contains(new EvolutionPluginCompletelyEvolvable().id())) {
            return OpsFactory.getKonstMut(params
                    .getParValueString(EvolutionPluginCompletelyEvolvable.MUT_ART_VE), zufall, params);
        } else {
            return null;
        }
View Full Code Here

     *         sonst.
     */
    private static CondMutVerfahren mutTransFallsEvol(
            final ParCollection params,
            final Random zufall) {
        if (params.getPlugIDList().contains(new EvolutionPluginCompletelyEvolvable().id())) {
            return OpsFactory.getKonstMut(params
                    .getParValueString(EvolutionPluginCompletelyEvolvable.MUT_ART_TR), zufall, params);
        } else {
            return null;
        }
View Full Code Here

            this.transCodes = new LinkedList[this.translatoren.length];
        } else {
            this.transCodes = new LinkedList[1];
        }
       
        if (params.getPlugIDList().contains(new EvolutionPluginCompletelyEvolvable().id())) {
            this.mutArtTrans = mutTrans;
            this.mutT = false;
            this.mutTransZyklen = this.getPars().getParValueLong(
                    EvolutionPluginCompletelyEvolvable.MUT_TR_ZYK_ATT);
        }
View Full Code Here

     */
    @Override
    public void step(final Wink simZyk) {
        super.step(simZyk);

        if (this.getEnvironmentEA().existsPlugin(new EvolutionPluginCompletelyEvolvable().id())) {
           
            // Verhaltensautomaten auf Memory zurücksetzen.
            if (simZyk.getLastTick() % this.getPars().getParValueLong(EvolutionPluginCompletelyEvolvable.MEM_AT_VERH)
                    == this.getPars().getParValueLong(EvolutionPluginCompletelyEvolvable.MEM_AT_VERH) - 1) {
                this.resetToBestVerh();
View Full Code Here

     * Dieser Vorgang wird nur für die Automaten durchgeführt für die
     * Memory aktiviert ist (für Translatoren auch, wenn nur für Verhaltens-
     * automaten Memory aktiviert ist) und nur falls Evolution aktiviert ist.
     */
    private void setzeBeste() {
        if (!this.getEnvironmentEA().existsPlugin(new EvolutionPluginCompletelyEvolvable().id())) {
            return;
        }
       
        for (int i = 0; i < this.getVAut().length; i++) {
            if (this.getFitness()[i] > this.besteFit[i]) {
View Full Code Here

            final Random rand,
            final ParCollection params) {   
        MutSeqVerf mutSeq;
        CondMutVerfahren condMut = null;
       
        if (!params.getPlugIDList().contains(new EvolutionPluginCompletelyEvolvable().id())
                &&  !params.getPlugIDList().contains(new EvolutionPluginCascadingTranslators().id())) {
            throw new RuntimeException(
                    "OpsFactory needs the plugin: "
                    + new EvolutionPluginCompletelyEvolvable().id() + ".");
        }
       
        if (mutName.equalsIgnoreCase(OpsFactory.MUT_SEQ_VERH1)) {
            if (OpsFactory.mutKlWkeit == null) {
                mutSeq = new MutKlWkeit(
View Full Code Here

            final String rekName,
            final ParCollection params,
            final Random rand) {
        RekVerfahren rekombinationsVerfahren = null;

        if (!params.getPlugIDList().contains(new EvolutionPluginCompletelyEvolvable().id())) {
            throw new RuntimeException(
                    "OpsFactory needs the plugin: "
                    + new EvolutionPluginCompletelyEvolvable().id() + ".");
        }

        if (rekName.equalsIgnoreCase(
                new RekTrivial(0, 0, false, 0, rand).id())) {
            rekombinationsVerfahren = new RekTrivial(
View Full Code Here

        this.plugins = this.pars.getPlugins();
       
        this.rand = new Random(this.pars.getSeed().longValue());

        // Setzen der Mutation.
        if (this.pars.getPlugIDList().contains(new EvolutionPluginCompletelyEvolvable().id())) {
            this.mutArtVerh = OpsFactory.getKonstMut(this.pars
                    .getParValueString(EvolutionPluginCompletelyEvolvable.MUT_ART_VE), this.rand,
                    this.pars);

            this.mutArtTrans = OpsFactory.getKonstMut(this.pars
View Full Code Here

TOP

Related Classes of eas.plugins.standard.eaPlugin.evolvableTranslators.EvolutionPluginCompletelyEvolvable

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.