Package ec

Examples of ec.BreedingPipeline.finishProducing()


                    space.setIndex(threadnum, x);
                    if (bp.produce(1, 1, x, subpop, newpop.subpops[subpop].individuals, state, threadnum) != 1)
                        state.output.fatal( "The pipelines should produce one individual at a time!" );
                    }
                                                                       
                bp.finishProducing(state,subpop,threadnum);
                }
            }
        }

    }
View Full Code Here


                        newpop.subpops[subpop].individuals,
                        state,threadnum);
                if (x>upperbound) // uh oh!  Someone blew it!
                    state.output.fatal("Whoa!  A breeding pipeline overwrote the space of another pipeline in subpopulation " + subpop + ".  You need to check your breeding pipeline code (in produce() ).");

                bp.finishProducing(state,subpop,threadnum);
                }
            }
        }
   
    static class EliteComparator implements SortComparatorL
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.