Ignore:
Timestamp:
06/10/15 09:03:56 (11 months ago)
Author:
mmckerns
Message:

use len(stepmon) more uniformly; fix _fcalls for DESolvers;
generations counted from stepmon, except in Powell where is overridden;
fix energy_history and solution_history for ensemble solvers;
add _kdiv, itertype, multiply, divide, and "related" methods to tools;
enable tools.listify to handle more robust types;
enable monitor to store values that are scaled with respect to called values;
add ay, iy, ax, ix, _k, _ik madness to deal with speed in k-scaling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mystic/tests/test_solver_sanity.py

    r776 r791  
    7474       #if self.uselimits and self.maxiter == 0: iter=0 
    7575        # sanity check solver internals 
    76         self.assertTrue(solver.generations == len(solver._stepmon.y)-iter) 
     76        self.assertTrue(solver.generations == len(solver._stepmon._y)-iter) 
    7777        self.assertTrue(list(solver.bestSolution) == solver._stepmon.x[-1]) #XXX 
    7878        self.assertTrue(solver.bestEnergy == solver._stepmon.y[-1]) 
     
    8282            self.assertTrue(ssow.x == solver._stepmon.x) 
    8383            self.assertTrue(ssow.y == solver._stepmon.y) 
     84            self.assertTrue(ssow._y == solver._stepmon._y) 
    8485        if self.useevalmon: 
    85             self.assertTrue(solver.evaluations == len(solver._evalmon.y)) 
     86            self.assertTrue(solver.evaluations == len(solver._evalmon._y)) 
    8687            self.assertTrue(esow.x == solver._evalmon.x) 
    8788            self.assertTrue(esow.y == solver._evalmon.y) 
     89            self.assertTrue(esow._y == solver._evalmon._y) 
    8890 
    8991        # Fail appropriately for solver/termination mismatch 
Note: See TracChangeset for help on using the changeset viewer.