Mathematical optimization and economic theory