Ticket #143 (closed task: worksforme)

Opened 5 years ago

Last modified 3 years ago

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:1 Changed 5 years ago by mmckerns

  • Status changed from new to assigned

all solvers import through 'solvers', renamed BatchGrid? and Scattershot solvers; (see r465)

comment:2 Changed 5 years ago by mmckerns

migrated StepMonitor? and EvaluationMonitor? to solver methods in r470

comment:3 Changed 5 years ago by mmckerns

migrated constraints to solver method in r473

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

comment:7 Changed 3 years ago by mmckerns

  • Status changed from assigned to closed
  • Resolution set to worksforme

going to split this into two... one for nested solvers (this one) and call it done...

and one for the potential renaming of mappers, in new ticket #219.

Last edited 3 years ago by mmckerns (previous) (diff)
Note: See TracTickets for help on using tickets.