Introduction to Stateflow with Applications

Assumptions:
The manufacturing plant will be a Simulink subsystem with two inputs and one output as shown by the block diagram below.

The max input represents the maximum number of boards that can be manufactured in a given time period and we will assume a maximum number of 15,000 boards.
A provision will be made for manpower. This is a measure of the number of employees expected to be present minus the number of employees absent, e.g., on vacation or sick leave. We will represent manpower with a Gain block that provides a constant multiplier that is used in computing the actual number of employees in the manufacturing plant over a given period. For this constant multiplier we will assume a value of 0.025.
Normally, the first shift is considered to be the most productive while the graveyard shift is the least productive. For productivity we will be using a constant multiplier derived from the value of production that will be the output from the Stateflow Chart block, and the Stateflow Chart will assign one of four productivity factors each with a value that will serve as an index into a Multiport Switch block. Using this index, the Multiport Switch block will select a productivity multiplier that is directly proportional to the productivity factor.
The productivity multiplier for each shift is shown in the table below.
| Productivity by Shift | Productivity Number | Productivity Multiplier |
|---|---|---|
| First Shift ON No... |