added objective function definition for triangle and edge