Package PyDSTool :: Package Toolbox :: Package optimizers :: Module defaults
[hide private]
[frames] | no frames]

Module defaults

source code

Defines the defaults parameters for the generic optimizer framework

Variables [hide private]
  SMALL_DF = 2
  SMALL_DELTA_X = 3
  SMALL_DELTA_F = 4
  SMALL_DELTA_X_X = 5
  SMALL_DELTA_F_F = 6
  FVAL_IS_ENOUGH = 10
  SOLVED_WITH_UNIMPLEMENTED_OR_UNKNOWN_REASON = 1000
  IS_NAN_IN_X = -4
  IS_LINE_SEARCH_FAILED = -5
  IS_MAX_ITER_REACHED = -7
  IS_MAX_CPU_TIME_REACHED = -8
  IS_MAX_TIME_REACHED = -9
  IS_MAX_FUN_EVALS_REACHED = -10
  IS_ALL_VARS_FIXED = -11
  FAILED_WITH_UNIMPLEMENTED_OR_UNKNOWN_REASON = -1000
  parameters = {'alpha_step': 1.0, 'ftol': 0.001, 'gtol': 0.001,...
  errors = {-1000: 'Unknown reason of failure', 2: 'gradient nor...
Variables Details [hide private]

parameters

Value:
{'alpha_step': 1.0,
 'ftol': 0.001,
 'gtol': 0.001,
 'iterations_max': 1000,
 'min_alpha_step': 1.0,
 'xtol': 0.001}

errors

Value:
{-1000: 'Unknown reason of failure',
 2: 'gradient norm is small enough',
 3: 'absolute X difference is small enough',
 4: 'absolute F(X) difference is small enough',
 5: 'relative X difference is small enough',
 6: 'relative F(X) difference is small enough',
 10: 'F(X) is small enough',
 1000: 'Unknown reason of convergence'}