sisl.mixing.LinearMixer

class sisl.mixing.LinearMixer(weight=0.1)

Bases: sisl.mixing.Mixer

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

clear()

Dummy for history mixers such that all mixers can call clear

weight

Weight used for the linear mixing

__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.1)[source]
clear()

Dummy for history mixers such that all mixers can call clear

property weight

Weight used for the linear mixing