Text this: Optimization over Leontief substitution systems /