Ticket #143 (closed task: worksforme)
better naming for nested and mapping in solvers
Reported by: | mmckerns | Owned by: | mmckerns |
---|---|---|---|
Priority: | critical | Milestone: | mystic-0.2a2 |
Component: | mystic.solvers | Keywords: | |
Cc: |
Description (last modified by mmckerns) (diff)
better naming for nested and mapping in solvers
edit solver interface to correspond to scipy conference paper
Change History
comment:2 Changed 5 years ago by mmckerns
migrated StepMonitor? and EvaluationMonitor? to solver methods in r470
comment:4 Changed 5 years ago by mmckerns
the remaining changes are in regard to "applying a Map" and "Nesting a solver"
solver = DifferentialEvolutionSolver(len(lb), 20) solver.SetRandomInitialPoints(lb, ub) solver.SetStrictRanges(lb, ub) solver.SetEvaluationMap(my_map) solver.Solve(my_model, COG) my_solver = PowellDirectionalSolver(len(lb)) my_solver.SetStrictRanges(lb, ub) my_solver.SetEvaluationLimits(50) solver = BuckshotSolver(len(lb), 20) solver.SetRandomInitialPoints(lb, ub) solver.SetGenerationMonitor(stepmon) solver.SetNestedSolver(my_solver) solver.SetSolverMap(my_map) solver.Solve(my_model, COG)
comment:5 Changed 3 years ago by mmckerns
as of r680, nesting a solver works as above. So does applying a map -- however, the existing method names are not fully updated.
SetMapper should become "SetEvaluationMapper" or "SetGenerationMapper" or "SetSolverMapper" as appropriate.
comment:6 Changed 3 years ago by mmckerns
- Description modified (diff)
- Summary changed from edit solver interface to correspond to scipy conference paper to better naming for nested and mapping in solvers
Note: See
TracTickets for help on using
tickets.
all solvers import through 'solvers', renamed BatchGrid? and Scattershot solvers; (see r465)