A physics-informed neural network framework for modeling obstacle-related equations