Question
Please provide a model of this hybrid automaton in Ptolemy II. Consider the above figure depicting a system comprising two tanks containing water. Each tank
Please provide a model of this hybrid automaton in Ptolemy II.
Consider the above figure depicting a system comprising two tanks containing water. Each tank is leaking at a constant rate. Water is added at a constant rate to the system through a hose, which at any point in time is filling either one tank or the other. It is assumed that the hose can switch between the tanks instantaneously. For {1,2}, let ! denote the volume of water in Tank i and ! > 0 denote the constant flow of water out of Tank i. Let w denote the constant flow of water into the system. The objective is to keep the water volumes above # and $, respectively, assuming that the water volumes are above # and $ initially. This is to be achieved by a controller that switches the inflow to Tank 1 whenever #() #() and to Tank 2 whenever $() $() The hybrid automaton representing this two-tank system is given below figure
Construct a model of this hybrid automaton in Ptolemy II . Use the following parameter values: # = $ = 0, # = $ = 0.5, and = 0.75. Set the initial state to be (#; (0; 1)). (That is, initial value # is 0 and $ is 1.) Simulate your model for 100 seconds and plot how # and $ vary as a function of time t. Please provide your model files, your Plot, and a document of explanation.
x1x1(0)r1x2(0)r2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started