Skip to content

Main content

Error Integral Leakage One Step Tool

Calculate error integral leakage one step from explicit caller-supplied inputs.

Loading tool…

Description

Update a leaking integral state with an error increment.

Controller calculations combine state, gain, error and reset conventions. A one-step update or output-balance target describes one part of a controller and does not implement, tune or establish the stability of a complete plant-control loop.

Update a leaking integral state with an error increment.

When to use this tool

Use Error Integral Leakage One Step when checking one explicit controller-state or term update.

How to use the tool and how it works

  1. Enter integral, error, retention, gain, step. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read next. Use the output convention below.

Update a leaking integral state with an error increment. Require retention in [0,1] and step >= 0; next = retention*integral+gain*error*step.1

Input fieldMeaning and unitsAccepted input
integralIntegralRequired. Finite number.
errorErrorRequired. Finite number.
retentionRetentionRequired. Finite number; minimum 0; maximum 1.
gainGainRequired. Finite number.
stepStep duration in the same time unit used by rates and time constants.Required. Finite number; minimum 0.
Output fieldInterpretationReturned shape
nextNextRequired. Finite number.
json
{
  "input": {
    "integral": 10,
    "error": 2,
    "retention": 0.9,
    "gain": 1,
    "step": 1
  },
  "output": {
    "next": 11
  }
}

Limitations and assumptions

  • Retention is supplied per step; saturation, antiwindup and actual controller stability are not evaluated.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use the full controller and plant model, numerical implementation and qualified verification for actual operation or transitions.

References

  1. Calculation and input contract: cybernetics/error-integral-leakage-one-step — tool.io

Similar or alternative tools