A block of weight hangs from a vertical spring of stiffness
PHYSICS · Multi-part · Fermi University Physics · Computational Physics · Scientific programming for physicists · Scientific programming for physicists
Scientific Computing for Physicists, Ch Minimisation with guarantees, with constraints and with randomness
Problem
A block of weight W=4.9N hangs from a vertical spring of stiffness k=20Nm−1. Let z be the block's height above the position where the spring has its natural length, so that its potential energy is U(z)=21kz2+Wz. A rigid floor lies h=0.15m below that position, so the block must satisfy g(z)=z+h≥0.
((a)) Find the unconstrained minimum of U and show that it violates the constraint.
((b)) Solve the KKT conditions in this chapter's convention, U′(z)=λg′(z) with λ≥0 and λg=0, for z and λ. Read λ as a force and check it with a force balance on the block.
((c)) The floor is lowered to h=0.30m. Find z and λ now.
((d)) Someone imposes the floor with the equality penalty 21μg2. What does that do to the block of part (c), and why?