Changed optimizedSolve method to throw UnSupportedOperation exception