George M. Coghill The Morven Framework
Motivation To provide properly constructive, constraint based qualitative simulation Retain QR ethos To alleviate the problem of spurious behaviours General purpose QR Why a Framework –No system is suitable for all situations –Permits testing and comparison of approaches –Consists in modular constituents
Context Predictive Algorithm Vector Envisionment FuSim Qualitative Reasoning P.A. V.E. QSIM TQA & TCP Morven
Constituents Predecessors –Variables are represented as vectors –Models are distributed over differential planes –Fuzzy quantity spaces are utilised –Empirical knowledge can be incorporated. Specific to Morven –Transitions only generated for state variables –Constructive (assynchronous) simulation –Fuzzy Vector Envisionment –Different approach to prioritisation –Discrete time (synchronous) simulation
Constiuents (2) Permits multi-dimensional comparisons Constructive & Non-constructive Simulation & Envisionment Synchronous & Assynchronous
The Morven Framework Constructive Non-constructive Simulation Envisionment Synchronous Asynchronous
Fuzzy Qualitative Reasoning Motivation Integration of qualitative and vague quantitative information - captured in the nature of fuzzy sets Ability to utilise and calculate temporal information in a qualitative simulator To include empirically derived information into a qualitative simulator
4-tuple fuzzy numbers (a, b, ) precise and approximate useful for computation x A (x) 1 0 a x (a) A (x) 1 0 a b x (b) A (x) 1 0 a- a x a+ (c) A (x) 1 0 a- b+ ab (d) A convenient fuzzy representation
Fuzzy Quantity Spaces A (x) 10 x
Curve Shapes _ _ d1d1 d2d2
Transition Rules Intermediate Value Theorem (IVT) –States that for a continuous system, a function joining two points of opposite sign must pass through zero. Mean Value Theorem (MVT) –Defines the direction of change of a variable between two points. [++][+o][+-] [o+][oo][o-] [-+][-o][- -]
Single Tank System V qiqi qoqo plane 0 q O = kV V = q i - q O plane 1 q O = kV V = q i - q O plane 2 q O = kV V = q i - q O
Single Compartment System plane 0 k10x1 = k10.x1 x1 = u - k10x1 plane 1 k10x1 = k10.x1 x1 = u - k10x1 plane 2 k10x1 = k10.x1 x1 = u - k10x1 1 u k 10.x 1
Models in Morven (define-fuzzy-model (short-name ) (variables ) (auxiliary-variables ) (input ) (constraints (print ) )
A JMorven Model model-name: single-tank short-name: fst NumSystemVariables: 2 variable: qorange: zero p-maxNumDerivatives: 1qspaces: tanks-quantity-space variable: V range: zero p-maxNumDerivatives: 2qsapces: tanks-quantity-space tanks-quantity-space2 NumExogenousVariables: 1 variable: qirange: zero p-maxNumDerivatives: 1qspaces: tanks-quantity-space Constraints: NumDiffPlanes: 2 Plane: 0NumConstraints: 2 Constraint: func (dt 0 qo) (dt 0 V) NumMappings: 9 Mappings: n-max n-large n-medium n-small zero p-small p-medium p-large p-max Constraint: sub (dt 1 V) (dt 0 qi) (dt 0 qo) NumVarsToPrint: 3VarsToPrint: V qi qo
A JMorven Quantity Space NumQSpaces: 2 QSpaceName: tanks-quantity-space NumQuantities: 9 n-max n-large n-medium n-small zero p-small p-medium p-large p-max QSpaceName: tanks-quantity-space2 NumQuantities: 5 nl-dash ns-dash zero ps-dash pl-dash
Possible States statevectorstatevector o o23+ - o o o o o o o 6+ + o o o29o + + o o o + +31o + o o + o32o + o o 12+ o + -33o + o o o +34o o o o35o + - o 15+ o o -36o o - +37o o o - o38o o + o 18+ o - -39o o o o o o41o o o o
Step Response t V
Solution Space V qiqi
Soundness and Completeness Sound –Guarantees to find all possible behaviours of system Incomplete –Unfortunately also finds non-existent (spurious) behaviours Still useful for ascertaining that a dangerous state cannot be reached. Large research effort to remove spurious behaviours –we will skim the surfarce of the surface!
Single Tank System: Ramp Input V qiqi qoqo t qiqi Input: Stepped Ramp plane 0 q O = kV V = q i - q O plane 1 q O = kV V = q i - q O plane 2 q O = kV V = q i - q O
2 Element Vector Envisionment
3 Element Vector Envisionment
Distinct Behaviours t V
Solution Space V qiqi
Total Solution Space: Single Compartment
Cascaded Systems plane 0 qx = k1.h1 qo = k2.h2 h1 = qi - qx h2 = qx - qo plane 1 qx = k1.h1 qo = k2.h2 h1 = qi - qx h2 = qx - qo plane 2 qx = k1.h1 qo = k2.h2 h1 = qi - qx h2 = qx - qo Tank A Tank B 1 2 u k12.x1 k20.x2 h1h1 h2h2 qiqi qxqx qoqo
Cascaded Systems Envisionment
Cascaded Systems Solution Space h2h2 h1h1 h 1 =
Complete Solution Space: Cascaded Compartments
Categorisation of Behaviours Behaviours Spurious Real Non-chattering Chattering Potential Actual
Fuzzy Set Theory and FQR Two main concepts: the cut and the Approximation principle The cut A = [p1, p2, p3, p4] A = [p1+p3( p2+p4(1-
Representational Primitives
Representational Primitives (2) Functional primitives –More specific than M+/- relations, though still incomplete –Compiled (tabular) set of fuzzy if-then rules - permits incusion of empirical information Derivative primitive
The Approximation Principle The Approximation principle facilitates the mapping of the result of a fuzzy operation onto the values in the quantity space of the result variable. A measure of the Goodness of Approximation is achieved by means of a Distance Metric d(A, A) = [(power(A)-power(A)) 2 +(centre(A)-(centre(A)) 2 ] 0.5 power([a,b, = 0.5[2(a+b) + centre([a,b, = 0.5[a+b]
Approximation Principle (2)
Transition Rules
Temporal Calculations
Fuzzy Vector Envisionment
Experimental Test
Fuzzy Vector State Labels
FVE Graph for a Step Input
Fuzzy Qualitative Behaviours
Cascaded System Small Large h2h2 h1h1 Small Medium Large Huge h2h2 h1h1