Homework of optimization course