Changeset 132


Ignore:
Timestamp:
04/02/09 17:23:57 (7 years ago)
Author:
mmckerns
Message:

now StepMonitor? logs best not simplex (ticket #29); built new patch

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • DEV_NOTES

    r123 r132  
    11= THINGS TO RESOLVE = 
    2 */*/*py: 
    3  - move more of "mogi" to mystic.models 
    4 mystic/mystic/scipy_optimize.py: 
    5  - better way to deal with direc (?) 
    6  - can x0 versus self.population[0] be handled better? (and _clipGuess...) 
    72mystic/mystic/differential_evolution.py: 
    83 - allow register of sigint_callback for all 'one-liner' interfaces (?) 
  • mystic/examples/example11.py

    r131 r132  
    4040def plot_params(monitor): 
    4141    x = range(len(monitor.y)) 
    42     import numpy 
    43     # NOTE: workaround poor design, where simplex is logged by StepMonitor 
    44     if isinstance(monitor.y[0],numpy.ndarray): 
    45         y = [i[0] for i in monitor.y] 
    46     else: 
    47         y = monitor.y 
     42    y = monitor.y 
    4843    pylab.plot(x,y,'b-') 
    4944    pylab.axis([1,0.5*x[-1],0,y[1]],'k-') 
  • mystic/mystic/scipy_optimize.py

    r124 r132  
    231231 
    232232        while (fcalls[0] < self._maxfun and iterations < self._maxiter): 
    233             StepMonitor(sim, fsim) # get all values; "best" is sim[0] 
     233            StepMonitor(sim[0], fsim[0]) # sim = all values; "best" is sim[0] 
    234234            if self._EARLYEXIT or termination(self): 
    235235                break 
     
    401401    allvecs = [] 
    402402    for i in range(iterations): 
    403        #allvecs.append(list(stepmon.x[i][0])) 
    404         allvecs.append(stepmon.x[i][0]) 
     403       #allvecs.append(list(stepmon.x[i])) 
     404        allvecs.append(stepmon.x[i]) 
    405405 
    406406    if fcalls >= solver._maxfun: 
  • releases/Makefile

    r131 r132  
    11#--------------------------------------------------- 
    2 PATCHES = 1 
     2PATCHES = 2 
    33#--------------------------------------------------- 
    44 
     
    66 
    77patch: 
    8         patch -p0 -i mystic-0.1a1-patch1.diff 
     8        patch -p0 -i mystic-0.1a1-patch2.diff 
    99 
    1010release: 
    11         tar -cvzf mystic-0.1a1-p1.tgz mystic-0.1a1 
     11        tar -cvzf mystic-0.1a1-p2.tgz mystic-0.1a1 
    1212 
    1313clean: 
    1414        cd mystic-0.1a1; cd examples; rm -f README example*; cd ..; cd .. 
     15        cd mystic-0.1a1; cd mystic; rm -f scipy_optimize*; cd ..; cd .. 
    1516        svn up 
Note: See TracChangeset for help on using the changeset viewer.