Changeset 375
- Timestamp:
- 08/04/10 19:51:15 (6 years ago)
- Files:
-
- 8 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UQ/math/examples2/TEST_seesaw2d_inf_diam.py
r255 r375 56 56 func_max = solver.bestEnergy / scale #NOTE: was -solution; now Min 57 57 func_evals = len(evalmon.y) 58 from loggerimport write_support_file58 from mystic.munge import write_support_file 59 59 write_support_file(stepmon) 60 60 return solved, func_max, func_evals -
branches/UQ/math/examples2/TEST_seesaw2d_sup_diam.py
r255 r375 57 57 #func_max = 1.0 - solver.bestEnergy / scale #NOTE: 1-sol => 1-success = fail 58 58 func_evals = len(evalmon.y) 59 from loggerimport write_support_file59 from mystic.munge import write_support_file 60 60 write_support_file(stepmon) 61 61 return solved, func_max, func_evals -
mystic/scripts/support_convergence.py
r374 r375 34 34 from numpy import product 35 35 cand = [1] + [product(allfactors[:i+1]) for i in range(len(allfactors))] 36 if len(cand)%2: 37 return cand[len(cand)/2], cand[len(cand)/2] 38 return cand[len(cand)/2], cand[len(cand)/2 - 1] 36 #return cand[-1], n/cand[-1] 37 best = [cand[len(cand)/2], n/cand[len(cand)/2]] 38 best.sort(reverse=True) 39 return tuple(best) 40 # if len(cand)%2: 41 # return cand[len(cand)/2], cand[len(cand)/2] 42 # return cand[len(cand)/2], cand[len(cand)/2 - 1] 39 43 40 44
Note: See TracChangeset
for help on using the changeset viewer.