parameters: (self,var,xmin=None,xmax=None)
docstring: Bounds the optimization variable var
docstring_summary: Bounds the optimization variable var
docstring_tokens: Bounds the optimization variable var
function: def setBounds(self,var,xmin=None,xmax=None):
          """Bounds the optimization variable var"""
          if isinstance(var,symbolic.Variable):
              var = var.name
          if xmin is None and xmax is None:
              if var in self.variableBounds:
                  del self.variableBounds[var]
          else:
              self.variableBounds[var] = (xmin,xmax)
function_tokens: def setBounds ( self , var , xmin = None , xmax = None ) : if isinstance ( var , symbolic . Variable ) : var = var . name if xmin is None and xmax is None : if var in self . variableBounds : del self . variableBounds [ var ] else : self . variableBounds [ var ] = ( xmin , xmax )