iems 381 homework on optimization algortihms