Ticket #75 (new idea)
allow simulated annealing warning in termination
Reported by: | altafang | Owned by: | mmckerns |
---|---|---|---|
Priority: | minor | Milestone: | mystic-0.4a |
Component: | mystic.solvers | Keywords: | |
Cc: |
Description
Simulated annealing termination originally comes with a warning. How does one integrate that with mystic termination? original code:
if all(abs((af-af[0])/af[0]) < feps):
if abs(af[-1]-best_state.cost) > feps*10:
print "Warning: Cooled to %f at %s but this is not" \
% (squeeze(last_state.cost), str(squeeze(last_state.x))) \ + " the smallest point found."
break
Mystic simulated annealing so far here: http://dev.danse.us/trac/mystic/browser/branches/alta/mystic-0.1a2/mystic/anneal_solver.py
Change History
Note: See
TracTickets for help on using
tickets.