an interesting minimization problem