|  | 
        
          | __init__(self,
        bounds) bounds are not copied, but possibly modified and
put into a normalized form: bounds can be None
or [lb, ub] where lb and ub are
either None or a vector (which can have None entries).
 | source code |  | 
    |  | 
        
          | __call__(self,
        solutions,
        *args,
        **kwargs) return penalty or list of penalties, by default zero(s).
 | source code |  | 
    |  |  | 
    |  | 
        
          | repair(self,
        x,
        copy_if_changed=True,
        copy_always=False) projects infeasible values on the domain bound, might be
overwritten by derived class
 | source code |  | 
    |  | 
        
          | inverse(self,
        y,
        copy_if_changed=True,
        copy_always=False) | source code |  | 
    |  | 
        
          | get_bounds(self,
        which,
        dimension) get_bounds('lower', 8) returns the lower bounds in 8-D
 | source code |  | 
    |  | 
        
          | _get_bounds(self,
        ib,
        dimension) ib == 0/1 means lower/upper bound, return a vector of length
 dimension | source code |  | 
    |  | 
        
          | has_bounds(self) return True, if any variable is bounded
 | source code |  | 
    |  |  | 
    |  | 
        
          | to_dim_times_two(self,
        bounds) return boundaries in format [[lb0, ub0], [lb1, ub1], ...],
as used by BoxConstraints... class.
 | source code |  | 
  
    | Inherited from object:__delattr__,__format__,__getattribute__,__hash__,__new__,__reduce__,__reduce_ex__,__repr__,__setattr__,__sizeof__,__str__,__subclasshook__ |