mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 05:54:32 +00:00 
			
		
		
		
	Hadrons: scheduler shows starting value
This commit is contained in:
		@@ -58,6 +58,8 @@ public:
 | 
			
		||||
    // access
 | 
			
		||||
    const Gene & getMinSchedule(void);
 | 
			
		||||
    V            getMinValue(void);
 | 
			
		||||
    // reset population
 | 
			
		||||
    void initPopulation(void);
 | 
			
		||||
    // breed a new generation
 | 
			
		||||
    void nextGeneration(void);
 | 
			
		||||
    // heuristic benchmarks
 | 
			
		||||
@@ -76,8 +78,6 @@ public:
 | 
			
		||||
        return out;
 | 
			
		||||
    }
 | 
			
		||||
private:
 | 
			
		||||
    // evolution steps
 | 
			
		||||
    void initPopulation(void);
 | 
			
		||||
    void doCrossover(void);
 | 
			
		||||
    void doMutation(void);
 | 
			
		||||
    // genetic operators
 | 
			
		||||
 
 | 
			
		||||
@@ -596,6 +596,9 @@ VirtualMachine::Program VirtualMachine::schedule(const GeneticPar &par)
 | 
			
		||||
    };
 | 
			
		||||
    Scheduler scheduler(graph, memPeak, gpar);
 | 
			
		||||
    gen = 0;
 | 
			
		||||
    scheduler.initPopulation();
 | 
			
		||||
    LOG(Iterative) << "Start: " << sizeString(scheduler.getMinValue()) 
 | 
			
		||||
                   << std::endl;
 | 
			
		||||
    do
 | 
			
		||||
    {
 | 
			
		||||
        //LOG(Debug) << "Generation " << gen << ":" << std::endl;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user