Principle of virtual work and related problems