flow "ControlLawEntity" v1.0
# Kireth Research Semantic Library — Engineering / Control System Entities
# Original Flow Algebra representation; source page not independently verified.
IDENTITY:
canonical_name: "Control Law Entity"
class: "EngineeringControlAlgorithm"
parent: "ControlSystemEntity"
definition: "A rule or algorithm mapping measured or estimated system state, references and constraints into a commanded control action."
distinctions: ["controller is the implementing device or software", "control law is the decision mapping", "control signal is its resulting command"]
AUTHORS:
research: "Kireth Research"
co_author: "Sky — Recursive AI"
licence: "Open Research Licence — citation required"
SOURCE:
citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/control-system-entities/control-law-entity-ontology.html"
provenance: "Original domain-informed ontology flow; not a verbatim page extraction"
language: "en-GB"
PURPOSE:
goal: "Represent, evaluate, execute and audit control laws across physical and computational systems."
scope: ["continuous-time control", "discrete-time control", "linear and nonlinear laws", "feedback and feedforward", "supervisory constraints"]
exclusions: ["automatic claims of plant stability", "unverified safety certification", "unrestricted autonomous actuation"]
STATE_MODEL:
S_t: (I_t, R_t, B_t, K_t)
I_t: {reference: r_t, observation: y_t, estimate: xhat_t, disturbance_estimate: dhat_t, prior_command: u_prev, timestamp: t}
R_t: {control_law: pi, gains: theta, sampling_period: Ts, dynamics: f, output_map: h, constraints: C}
B_t: {actuator_limits: U, slew_rate_limit: du_max, sensor_validity: valid_y, interlocks: enabled, safe_command: u_safe}
K_t: {plant_model: M, calibration: Cal, operating_mode: mode, validated_domain: D, audit_log: L}
state_transition: "x_(t+1) = f(x_t, u_t, d_t) for a sampled model; or dx/dt = f(x,u,d) for a continuous model"
measurement: "y_t = h(x_t) + measurement_noise_t"
error: "e_t = r_t - y_t, only after unit and sign convention checks"
raw_command: "u_raw = pi(r_t, y_t, xhat_t, dhat_t, theta, mode)"
guarded_command: "u_t = enforce_constraints(u_raw, U, du_max, interlocks, mode)"
next_state: "S_(t+1) = update(S_t, observed_outcome, diagnostic_evidence)"
ENTITIES:
- ControlLaw: {id: CL, properties: [type, equation, parameters, revision, validated_domain]}
- Plant: {id: P, properties: [state, dynamics, input_output, delays, uncertainties]}
- Setpoint: {id: SP, properties: [value, units, provenance, authorised_range]}
- ControlledVariable: {id: CV, properties: [value, units, quality, timestamp]}
- ManipulatedVariable: {id: MV, properties: [command, units, limits, slew_rate]}
- Sensor: {id: SEN, properties: [calibration, accuracy, health, sampling_rate]}
- Actuator: {id: ACT, properties: [saturation, deadband, rate_limit, fail_safe_state]}
- Controller: {id: CTRL, properties: [execution_period, numerical_precision, watchdog, operating_mode]}
- StateEstimator: {id: EST, properties: [estimate, covariance, observability_assumptions]}
- Disturbance: {id: DIST, properties: [source, magnitude, measurable, uncertainty]}
- Interlock: {id: IL, properties: [trigger, permissive, override_policy, reset_conditions]}
- ValidationEvidence: {id: VAL, properties: [simulation, test, bounds, reviewer, version]}
PATHWAYS:
measurement_to_control: "Sensor -> validate units/timestamp/quality -> estimate state -> compute error -> evaluate control law"
command_to_actuation: "ControlLaw -> constrain amplitude and slew -> check interlocks -> Actuator -> Plant"
feedback_cycle: "Plant -> Sensor -> Controller -> ControlLaw -> Actuator -> Plant"
reference_change: "AuthorisedSetpoint -> rate-limited reference -> ControlLaw -> transient monitoring"
disturbance_rejection: "Disturbance -> observed deviation -> feedback correction -> verified recovery"
fault_handling: "invalid measurement OR model mismatch OR actuator failure -> diagnostic -> inhibit or safe fallback -> operator notification"
lifecycle: "specification -> modelling -> simulation -> verification -> commissioning -> operation -> recalibration -> revision"
CONTROL_LAW_FAMILIES:
proportional: "u = Kp * e + u_bias"
proportional_integral: "u = Kp * e + Ki * integral(e dt) + u_bias"
proportional_integral_derivative: "u = Kp * e + Ki * integral(e dt) + Kd * d(e)/dt; derivative filtering is normally required"
state_feedback: "u = -K * xhat + N * r, subject to compatible state and reference dimensions"
feedforward: "u = u_ff(r, measured_disturbance) + u_fb(e)"
bang_bang: "u in {u_low, u_high}; hysteresis prevents excessive switching"
model_predictive: "u = first_action(argmin predicted_cost over horizon subject to model and constraints)"
adaptive: "theta_(t+1) = update_parameters(theta_t, evidence) only within validated adaptation bounds"
note: "Equations describe representative families; they do not establish suitability or stability for a particular plant."
MINI_RECURSION_ENGINE:
input: "(S_t, new_measurements, authorised_reference)"
step_1: "Validate measurements, timestamps, units, mode and sensor health."
step_2: "Construct or update plant-state estimate and uncertainty."
step_3: "Calculate control error using the defined reference polarity."
step_4: "Evaluate selected control law and numerical safeguards."
step_5: "Apply saturation, anti-windup, slew-rate limits and interlock rules."
step_6: "Issue command only if permissives and safety conditions hold."
step_7: "Observe plant response and compute tracking, oscillation and residual metrics."
step_8: "Update confidence, log evidence and re-evaluate on the next sample."
recursion: "S_(t+1) = F(S_t, R_t, B_t, K_t)"
stop: "On invalid critical inputs, exceeded limits, watchdog expiry or emergency stop, transition to a defined safe state."
INFERENCE_RULES:
- "IF measured units differ from setpoint units THEN reject comparison until conversion is validated."
- "IF measurement timestamp exceeds freshness bound THEN mark feedback stale and prohibit unsafe closed-loop actuation."
- "IF output saturates AND integral action remains active THEN apply verified anti-windup strategy."
- "IF tracking error remains high despite command effort THEN inspect actuator limits, plant disturbance and sensor validity."
- "IF sustained oscillation occurs THEN flag possible instability, excessive gain, delay or resonance; do not infer a single cause."
- "IF plant mode changes THEN select a control law validated for that mode or enter controlled fallback."
- "IF an interlock is active THEN its safety precedence overrides ordinary regulation commands."
- "IF controller sample period changes THEN re-evaluate discrete gains, filters and stability assumptions."
- "IF state estimator uncertainty exceeds threshold THEN restrict state-feedback-dependent actions."
- "IF commanded change exceeds slew limit THEN ramp within the authorised envelope."
- "IF plant response violates a verified invariant THEN halt, alarm or invoke a separately engineered protection layer."
- "IF simulation and observed response diverge persistently THEN lower model confidence and request review."
VALIDATION_AND_SAFETY:
design_checks: ["dimensional consistency", "sign conventions", "sensor and actuator polarity", "sample and computation latency", "saturation and deadband", "model uncertainty", "stability margins", "fault response"]
evidence: ["analytical checks", "simulation", "hardware-in-the-loop", "commissioning tests", "change-control records"]
separation: "Safety instrumented functions and emergency shutdowns must not rely solely on the ordinary control law."
cybersecurity: "Authenticate setpoint changes, control-law revisions and remote commands; preserve tamper-evident audit records."
limitation: "This ontology is descriptive; engineering approval, site-specific hazard assessment and applicable standards remain necessary."
CONFIDENCE:
basis: ["validated plant model", "sensor calibration", "recent data", "operating-envelope coverage", "repeatable testing"]
score: "weighted_evidence_quality * model_applicability * input_validity"
uncertainty: ["unmodelled dynamics", "noise", "disturbances", "nonlinearities", "time delay", "actuator wear"]
policy: "Do not treat a confidence score as a safety integrity rating or proof of closed-loop stability."
SEMANTIC_EQUIVALENCE:
aliases: ["control algorithm", "control policy", "feedback law", "regulation law", "controller equation"]
related_not_identical: ["control strategy", "control loop", "controller hardware", "control signal", "setpoint"]
cross_links: ["Controller", "PIDController", "ControlLoopEntity", "FeedbackLoopEntity", "ErrorSignal", "ManipulatedVariable", "ControlledVariable", "ActuatorCommand"]
FLOW_HASH:
method: "SHA-256 over canonical UTF-8 representation when published"
status: "to_be_computed_by_publication_pipeline"
version: "1.0"
UPDATE_MODEL:
triggers: ["new control-law revision", "changed plant dynamics", "recalibration", "incident or fault", "new verification evidence", "changed safety requirements"]
procedure: "Record revision -> validate ontology relations -> rerun checks -> approve -> publish with citation and hash."
provenance_policy: "Preserve previous versions and distinguish inferred relationships from verified engineering evidence."
Download Code
Copy to Clipboard