robust optimization implementation