aggregator-core/src/main/java/org/arrowhead/wp5/agg/optim/TimeFlexOptimizer.java
public void optimizeTimeFlex() {			
		long [] startState = this.getCurrentState();
		double fitnessValue = this.opt.getFitnessValue(); // this.fp.computePortfolioCost();		
		this.setCurrentState(this.simAnneal(fp));	
		
		if (this.fp.computePortfolioCost() > fitnessValue) {
			this.setCurrentState(startState);
		}
	}
/* This method implements Simulated Annealing for time flexibility optimization */
This method implements Simulated Annealing for time flexibility optimization
This method implements Simulated Annealing for time flexibility optimization
public void optimizeTimeFlex() {			
		long [] startState = this.getCurrentState();
		double fitnessValue = this.opt.getFitnessValue(); 
		this.setCurrentState(this.simAnneal(fp));	
		if (this.fp.computePortfolioCost() > fitnessValue) {
			this.setCurrentState(startState);
		}
	}
public void optimizeTimeFlex ( ) { long [ ] startState = this . getCurrentState ( ) ; double fitnessValue = this . opt . getFitnessValue ( ) ; this . setCurrentState ( this . simAnneal ( fp ) ) ; if ( this . fp . computePortfolioCost ( ) > fitnessValue ) { this . setCurrentState ( startState ) ; } }
This method implements Simulated Annealing for time flexibility optimization
This method implements Simulated Annealing for time flexibility optimization
// this.fp.computePortfolioCost();		