On the stability of solutions to minimal and nonminimal design problems