(self, dic, val=None, warn=True)
return self
set can assign versatile options from `Options.versatileOptions()`
        with a new value, use `init()` for the others.

        Arguments
        ---------
            `dic`
                either a dictionary or a key. In the latter
                case, val must be provided
            `val`
                value for key
            `warn`
                bool, print a warning if the option cannot be changed
                and is therefore omitted

        This method will be most probably used with the ``opts`` attribute of
        a `CMAEvolutionStrategy` instance.
set can assign versatile options from `Options.versatileOptions()`
        with a new value, use `init()` for the others.
set can assign versatile options from Options . versatileOptions () with a new value use init () for the others .
def set(self, dic, val=None, warn=True):
        """set can assign versatile options from `Options.versatileOptions()`
        with a new value, use `init()` for the others.

        Arguments
        ---------
            `dic`
                either a dictionary or a key. In the latter
                case, val must be provided
            `val`
                value for key
            `warn`
                bool, print a warning if the option cannot be changed
                and is therefore omitted

        This method will be most probably used with the ``opts`` attribute of
        a `CMAEvolutionStrategy` instance.

        """
        if val is not None:  # dic is a key in this case
            dic = {dic:val}  # compose a dictionary
        for key, val in list(dic.items()):
            if key in Options.versatileOptions():
                self[key] = val
            elif warn:
                print('Warning in cma.Options.set(): key ' + str(key) + ' ignored')
        return self
def set ( self , dic , val = None , warn = True ) : if val is not None : # dic is a key in this case dic = { dic : val } # compose a dictionary for key , val in list ( dic . items ( ) ) : if key in Options . versatileOptions ( ) : self [ key ] = val elif warn : print ( 'Warning in cma.Options.set(): key ' + str ( key ) + ' ignored' ) return self