Existence of Optimal Quantities and Shadow Prices with No Duality Gap