def _accept_reflected_fn(simplex,<EOL>objective_values,<EOL>worst_index,<EOL>reflected,<EOL>objective_at_reflected):
def _replace_worst_with_reflected():<EOL><INDENT>next_simplex = _replace_at_index(simplex, worst_index, reflected)<EOL>next_objective_values = _replace_at_index(objective_values, worst_index,<EOL>objective_at_reflected)<EOL>return False, next_simplex, next_objective_values, <NUM_LIT:0><EOL><DEDENT>return _replace_worst_with_reflected<EOL>
Creates the condition function pair for a reflection to be accepted.