- Timestamp:
- 01/07/13 23:23:35 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/decorate/restarts.py
r631 r638 37 37 # 'Clear' some of the attributes of the solver 38 38 solver.population = [[0.0 for i in range(solver.nDim)] for j in range(solver.nPop)] 39 40 solver.bestEnergy = 0.041 solver.bestSolution = [0.0] * solver.nDim39 #solver.generations = 0 40 solver.bestEnergy = None 41 solver.bestSolution = None 42 42 solver.trialSolution = [0.0] * solver.nDim 43 solver._init_popEnergy = inf44 43 solver.popEnergy = [solver._init_popEnergy] * solver.nPop 45 44 #solver.energy_history = [] … … 119 118 # Return the last solver, which contains all of the important information 120 119 # First modify the solver to include total data. 121 122 120 #solver.generations = total_iterations 121 #solver.energy_history = total_energy_history 123 122 124 123 #XXX solver.bestEnergy is not exactly cost(solver.bestSolution),
Note: See TracChangeset
for help on using the changeset viewer.