Changeset 375


Ignore:
Timestamp:
08/04/10 19:51:15 (6 years ago)
Author:
mmckerns
Message:

bugfix in best_dimensions; examples2 files now use scripts

Files:
8 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • branches/UQ/math/examples2/TEST_seesaw2d_inf_diam.py

    r255 r375  
    5656  func_max = solver.bestEnergy / scale       #NOTE: was -solution; now Min 
    5757  func_evals = len(evalmon.y) 
    58   from logger import write_support_file 
     58  from mystic.munge import write_support_file 
    5959  write_support_file(stepmon) 
    6060  return solved, func_max, func_evals 
  • branches/UQ/math/examples2/TEST_seesaw2d_sup_diam.py

    r255 r375  
    5757 #func_max = 1.0 - solver.bestEnergy / scale  #NOTE: 1-sol => 1-success = fail 
    5858  func_evals = len(evalmon.y) 
    59   from logger import write_support_file 
     59  from mystic.munge import write_support_file 
    6060  write_support_file(stepmon) 
    6161  return solved, func_max, func_evals 
  • mystic/scripts/support_convergence.py

    r374 r375  
    3434  from numpy import product 
    3535  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] 
    3943 
    4044 
Note: See TracChangeset for help on using the changeset viewer.