sisl.mixing.LinearMixer

class sisl.mixing.LinearMixer(weight=0.2)

Bases: BaseMixer

Linear mixing

The linear mixing is solely defined using a weight, and the resulting functional may then be calculated via:

\[f^{i+1} = f^i + w \delta f^i\]
Parameters

weight (float, optional) – mixing weight

Methods

set_weight(weight)

Set a new weight for this mixer

weight

This mixers mixing weight, the weight is the fractional contribution of the derivative

__call__(f, df)[source]

Calculate a new variable \(f'\) using input and output of the functional

Parameters
  • f (object) – input variable for the functional

  • df (object) – derivative of the functional

__init__(weight=0.2)[source]
set_weight(weight)

Set a new weight for this mixer

Parameters

weight (float) – the new weight for this mixer, it must be bigger than 0

property weight

This mixers mixing weight, the weight is the fractional contribution of the derivative