constrained optimization calculator with steps