# Lecture 2.1: System Modeling

#### 7 October 2002

 Lecture Reading FAQ Homework CDS 101

### Lecture

This lecture provides an overview of modeling for control systems. We discuss what a model is and what types of questions it can be used to answer. The concepts of state, dynamics, inputs and outputs are described, including running examples to demonstrate the concepts. Several different modeling techniques are summarized: finite state automata, difference equations, differential equations, and Markov chains. Two examples are included to demonstrate the main concepts.

Mud card responses [advanced search]:

\n" : "
\n"); # Loop through the filenames in order. \$getfnames = defined &GetFnames ? \&GetFnames : htdb::GetFnames; @filenames = &{\$getfnames}(\$DBPath); for (@filenames) { # Parse the filname and extract the ID and tag information (\$id, \$tag) = &{\$parsefname}(\$filename = \$_); next if not \$id; # Open the file and extract the contents \$contents = &htdb::readfile(\$filename); next if not \$contents; # Now see if this entry matches the criteria for a match next if not &{\$checkentry}(\$contents, %in); # Print out the information associated with this entry \$count += &{(\$in{_tight} ? \$tightentry : \$printentry)} (\$filename, \$contents, \$id, \$tag, \$DBURL."/".\$filename); \$num_found++; # See if we are counting and stop if needed last if (\$in{_count} && \$count > \$in{_count}); } # Close the list environment used for the results print (\$in{_tight} ? "
\n" : "\n"); return \$num_found; } # # Subroutine for alerting the user that no matches occured # sub PrintNoMatches { print "

## No matches found

\n"; print "Sorry, no entries match your request. "; print "Please choose some different parameters and try again.

\n"; print \$footer; }

### Reading Material and Handouts

#### Handouts from lecture

The following materials were handed out in lecture. These have been updated to include any corrections.

### Homework Set #2

This homework set demonstrates the construction and use of models for control systems. The first problem asks the student to identify the states, inputs, outputs, and dynamics for some sample systems. The second problem consists of a detailed construction of a vehicle model that can be used for cruise control. The last three problems (CDS 110 only) explore different modeling techniques, including both symbolic and MATLAB-based analysis.

Modifications to the homework (link above is always the latest version):

• 13 Oct 02
• Made changes announced in class on 10/9: set m1 = m2 in problem 6 and use m1=m2=250, k=50, b=10.
• 8 Oct 02:
• Changed description for problem #2 (clarified terms, notation)
• Posted detailed directions for problem #3
• 7 Oct 02: handed out in class

Frequently asked questions on homework and TA hints: