Optimization in Microeconomics