Optimization Problem In Single Period Markets