x in the set S , such that x can give the max f(x). similar idea for min f(x)