A variational inequality with mixed boundary conditions