Minimax and extremum problems associated to a variational inequality