Objective Function In Artificial Intelligence