attempt to solve optimization problem