SearchObjective and simplex method initial code