add optimization state to CLI and OptimizationOperator