docstr: Wrapper of *f*: takes an input x with size of the noncontext dimensions
  expands it and evaluates the entire function.
docstr_tok: ["Wrapper","of","*","f","*",":","takes","an","input","x","with","size","of","the","noncontext","dimensions","expands","it","and","evaluates","the","entire","function","."]
code: def f_nc(self, x):
      """
      Wrapper of *f*: takes an input x with size of the noncontext dimensions
      expands it and evaluates the entire function.
      """
      x = np.atleast_2d(x)
      xx = self.context_manager._expand_vector(x)
      if x.shape[0] == 1:
          return self.f(xx)[0]
      else:
          return self.f(xx)
  
imports: import numpy
  from ..core.errors import InvalidVariableNameError
label_desc: Use image node_id 2 for calling the OptimizationWithContext obj's underlying member method code with example usage: obj.f_nc(x) and returns: self, self