ParameterOptimizer can now handle variable conditions