def _prepare_args_with_initial_simplex(objective_function,<EOL>initial_simplex,<EOL>objective_at_initial_simplex,<EOL>batch_evaluate_objective):
initial_simplex = tf.convert_to_tensor(value=initial_simplex)<EOL>num_vertices = tf.shape(input=initial_simplex)[<NUM_LIT:0>]<EOL>dim = num_vertices - <NUM_LIT:1><EOL>num_evaluations = <NUM_LIT:0><EOL>if objective_at_initial_simplex is None:<EOL><INDENT>objective_at_initial_simplex, n_evals = _evaluate_objective_multiple(<EOL>objective_function, initial_simplex, batch_evaluate_objective)<EOL>num_evaluations += n_evals<EOL><DEDENT>objective_at_initial_simplex = tf.convert_to_tensor(<EOL>value=objective_at_initial_simplex)<EOL>return (dim,<EOL>num_vertices,<EOL>initial_simplex,<EOL>objective_at_initial_simplex,<EOL>num_evaluations)<EOL>
Evaluates the objective function at the specified initial simplex.