factor_agent.researcher.Researcher.plan#

Researcher.plan(number, quota, context, parents, picked=())[source]#

Return round number’s directions, quota[type] of each type in type order, and the plan’s issues.

parents are the ids of the trials a mutation or a refinement may name, or None when the planner reads no earlier trial and every direction is new. A direction naming another parent is kept as a new direction; one the planner leaves out, or writes with an unknown type or action, is replaced by a new direction of its type. picked are the picked slots, (mechanism type, parent) in pick order, each one of its type’s slots in quota: the planner is told them, the first direction of that type naming that parent fills the slot, and a picked slot it leaves out is planned as a refinement of its parent. A type’s picked slots come first among its directions. Each repair is one issue.