« View all new features in Mathematica 9 ◄ previous  |  next ►
New in Mathematica 9 › Enhanced Control Systems

Hydraulic System 

Model the change in height of water in three tanks, with the third tank leaking.

Flow rates depend on pressure differences and geometry.

In[1]:=
Click for copyable input
X

Create a descriptor StateSpaceModel from the DAEs.

In[2]:=
Click for copyable input
X
In[3]:=
Click for copyable input
X
In[4]:=
Click for copyable input
X
Out[4]=

The tanks take over a minute to settle from a nonzero initial condition.

In[5]:=
Click for copyable input
X
Out[5]=

Find optimal state feedback gains based on cost matrices for the states and inputs. The resulting closed-loop system settles much faster.

In[6]:=
Click for copyable input
X
In[7]:=
Click for copyable input
X
In[8]:=
Click for copyable input
X
Out[8]=