Professional Documents
Culture Documents
In industrial automation, fuzzy logic technologies enable the Two trivial ways to solve this problem exist. One is to position
efficient and transparent implementation of human control the crane head exactly over the target position. Then, just wait
expertise. Here, the individual control loops mostly remain until the sway dampens to an acceptable level. On a non-windy
controlled by conventional models, such as PID. The fuzzy logic day, this will eventually happen, but it takes by far too much
system then gives the set values for these controllers based on time. A container ship has to be loaded and unloaded in
the process control expertise put in the fuzzy logic rules. Three minimum time for cost reasons. The other way is to pick up the
case studies show different ways of integrating conventional container and just move so slow, that no sway occurs at all. This
control techniques and fuzzy logic. As a result, we will develop again works on a non-windy day, however takes far too much
guidelines on when fuzzy logic, conventional models, or a time. An alternative is to build container cranes where
combination thereof shall be used. additional cables fix the position of the container during
The first case study of a container crane controller operation. Only very few cranes make use of this due to the
shows the primary advantage of fuzzy logic: a control strategy much higher cost of the solution.
can directly be implemented from engineering knowledge.
While standard PID controller cannot solve the problem due to
non-linearities of the process and a mathematical model is of
prohibitive complexity, a fuzzy logic solution only takes a few
days.
The second case study covers a more complicated
process control example. In petrochemical industry, ethine is
converted to ethene in a hydrogenation reactor using a catalyst.
To control the reaction, the temperature of the incoming
material and the flow of a moderator substrate are kept to their
set points by PID controllers. The optimal set point for
temperature and flow, however, depends on numerous factors.
Fuzzy logic is used to replace the operator in determining the set
point for these control loops.
The third case study shows how NeuroFuzzy techniques Figure 1: The control of container cranes using human
enhances fuzzy logic. On the example of a glass container sorter expertise reveals a high potential for a fuzzy logic solution
in a recycling plant we demonstrate how an entire solution can For these reasons, most container cranes use continuos speed
be generated automatically out of recorded process data. control of the crane motor where a human operator controls the
The following discussion assumes the reader is familiar speed of the motor. The operator has to simultaneously
with basic fuzzy logic design principles. For a comprehensive compensate for the sway and making sure the target position is
hands-on course on practical fuzzy logic design, refer to [8]. reached in time. This task is not easy, but a skilled operator is
The container crane example is contained with every capable of achieving acceptable results.
fuzzyTECH Edition as a complete software simulation.
Control Model Alternatives
1. Container Crane Control
Many engineers have tried to automate this control task in the
Container cranes are used to load and unload containers to and past years. They tried:
from ships in most harbors (figure 1). They pick up single − Linear PID control,
containers with flexible cables that are mounted at the crane − Model-based control, and
head. The crane head moves on a horizontal track. When a − Fuzzy logic control.
container is picked up and the crane head starts to move, the
container begins to sway. While sway is no problem during Conventional PID (Proportional-Integral-Differential) control
transportation, a swaying container cannot be released. was not successful as the control task is non-linear. Only when
the container is close to the target, sway minimization is
important. Other engineers have tried to derive a mathematical 4. IF Distance = close AND Angle = pos_small THEN Power = pos_medium
5. IF Distance = zero AND Angle = zero THEN Power = zero
model of the crane to use this in a model-based controller. They
came up with a fifth-degree differential equation that describes Note, that rule 2 has been translated into two rules to fit the if-
the mechanical behavior. Although in theory, this should work, then format.
it does not. The reasons for this are:
− The crane motor is not as linear as assumed in the model, If-then rules always describe the reaction to a certain situation
− The crane head only moves with friction, and as:
− Disturbances such as wind cannot be included in the model. IF <situation> THEN <action>
In the case of the container crane, each situation is identified by
A Linguistic Control Strategy two conditions. The first condition describes the value of
Distance, the second the value of Angle. The conditions are
On the other hand, a human operator is capable of controlling a combined by AND, representing the fact that both conditions
crane without differential equations. Chances are, if he would have to be valid for the respective situation.
know how to use differential equations, he would not be a crane
operator. The operator does not even use a cable length sensor Once you have set up a set of rules describing the desired
that any model-based solution would require. Once he has behavior of a system, the question becomes: how can you
picked up the container, the operator starts the crane with implement these rules? First, consider using a programming
medium motor power to see how the container sways. language to code the if-then rules. The problem is, that you have
Depending on the reaction, he adjusts motor power to get the to define the words that the conditions of the rules use.
container a little behind the crane head. In this position, However, exact definitions for these words do not exist. This is
maximum speed can be reached with minimum sway. Getting the same as with the definition of "strong fever" discussed in
closer to the target position, the operator reduces motor power or previous section 2.2. This is the reason you can use fuzzy logic
even applies negative power to brake. With that, the container to implement a linguistic control strategy. The following will
gets a little ahead of the crane head until the container almost show you step by step, how you design a controller using fuzzy
reached target position. Then, the motor power is increased so logic techniques.
that the crane head is over target position and sway is zero. No
differential equations are required for this and disturbances and Structure of a Fuzzy Logic Crane Controller
non-linearities are compensated by the operator's observation of
the container's position. Figure 2 shows the complete structure of a fuzzy logic
controller. First, all sensor signals have to translated into
The analysis of the operator's actions reveals that the operator linguistic variables. That is, a measured distance of 12 yards has
uses some "rules of thumb" to describe his control strategy: to translated to the linguistic value "still medium, just slightly
1. Start with medium power. far". This step is called "fuzzification" as it uses fuzzy sets for
2. If you got started and you are still far away from target, translating real variables into linguistic variables.
adjust the motor power so that the container gets a little
behind the crane head. Once all input variable values are translated into respective
3. If you are closer to the target, reduce speed so the linguistic variable values, the so-called "fuzzy inference" step
container gets a little ahead of the crane head. evaluates the set of if-then rules that defined system behavior.
4. When the container is very close to target position, The result of this is again a linguistic value for the linguistic
power up the motor. variable. For example, the linguistic result for Power could be "a
5. When the container is over the target and the sway is little less than medium". The so-called "defuzzification" step
zero, stop the motor. translates this linguistic result into a real value that represents
the power setting of the motor in kilowatts.
Implementing a Linguistic Control Strategy
Distance, Angle Fuzzy Inference Motor Power
(Linguistic Variables) (Linguistic Variable)
To automate the control of this crane, sensors for the crane head
position ("Distance") and the angle of the container sway
("Angle") are employed. Using these inputs to describe the Linguistic
Level
current condition of the crane, the five rules of thumb can be Fuzzification Defuzzification
Technical
translated to an "if-then" format: Level
For every linguistic variable, each term is defined by its neg_big to the degree of 0
membership function. Figure 3 and 4 show the definitions for neg_small to the degree of 0
the two input variables. zero to the degree of 0.2
pos_small to the degree of 0.8
µ pos_big to the degree of 0
too_far zero close medium far
1
The Distance of 12 yards is translated into the linguistic variable
value of {0.1, 0.9, 0, 0, 0} which can be interpreted as "still
medium, just slightly far". The Angle of +4° is translated into
the linguistic value of {0, 0, 0.2, 0.8, 0} which can be
interpreted as "positive small, somewhat zero".
NOT: µ ¬A = 1 - µ A 1
Composition At the end of the fuzzy inference, the result for Power is given
as the value of a linguistic variable. To use it to set the motor
Each rule defines an action to be taken in the THEN part. The power, it has to be translated into a real value. This step is
degree to which the action is valid is given by the adequateness called defuzzification. The relation between linguistic values
of the rule to the current situation. This adequateness is and corresponding real values is always given by the
computed by the aggregation as the degree of truth of the IF membership function definitions. Figure 6 plots the membership
part. Hence, rule 1 results the action "Power = pos_medium" to functions for the linguistic variable "Power".
the degree 0.8, rule 2 the action "Power = zero" to the degree
The result of the fuzzy inference given in example 5 is both illustrated in figure 7. Here, the gray arrows point to the
fuzzy and ambiguous as two different actions have non-zero horizontal position of the typical values.
truth degrees. How can two conflicting actions that are defined
as fuzzy sets be combined to a "crisp" real-valued output for B) Find the Best Compromize
motor power? Consider how humans solve the problem of
combining two fuzzy and conflicting actions in example 6. In the second step, the best compromizing crisp value for the
linguistic result is computed. Figure 8 illustrates this step. At
the horizontal position of the typical values, a "weight" of a size
Example 6: proportional to the degree to which the action is true is put. The
Consider yourself in an apartment house at 11 pm. You weights are shown as the heights of the black arrows over the
would like to listen to some music such as Wagner or Guns gray arrows. The compromizing crisp value is then determined
n' Roses. Music that requires some volume to be fun. On the by balancing the weights "on a pen tip". In the example, the
other hand, you neighbors have already suffered quite a bit position that balances the fuzzy inference result is at the position
from your recent music sessions. Now, when you set the of 6.4 kilowatts. This value is considered the best compromize
volume on your stereo, you have to combine these two and outputted to the motor.
conflicting and fuzzy goals into a crisp value, as only such a
value can be set at the volume knob of your stereo. µ neg_high neg_medium zero pos_medium pos_high
To find a volume that compromizes the two goals,
1
you could turn on the music and tune the volume until you
0.8
balanced out the two goals.
0
-30 -15 0 15 30
2. Fuzzy Logic in Ethylene Production
The input variables of the fuzzy logic load balancing system are:
Gasoline − Temperature of the gas mix leaving the steam cracker
Heavy Components
− Current naphtha feed rate
Figure 9: The industrial production of ethylene comprises the − Current steam feed rate
steps: cracking, cooling, compression, liquefying, and − Temperature of the gas mix after the heat exchanger
destillation − Exhaust gas temperature of the steam cracker
− Temperature at outside of the reaction tube in the burning
zone
Load Distribution Control of Steam Crackers
− Operation time of the steam cracker since last decoking
Most ethylene plants use multiple parallel steam crackers to
The output variable of the fuzzy logic load balancing system is
crack the naphtha. Figure 10 shows the layout of such a steam
the load distribution for all crackers. Since the fuzzy logic
cracker. The raw naphtha is pre-heated to 100°C to 130°C and
system only has to compute this load distribution every time a
fed at a pressure of 2.5 to 6 kg/cm² into the cracker. The upper
cracker is shut down or switched on, it runs off-line on a PC.
part of the cracker further heats up the naphtha to 450°C to
The operators enter the input data manually in the PC, start the
650°C. Then, the naphtha is mixed with steam and heated to up
fuzzy logic inference and implement the determined load
to 850°C in the lower part of the steam cracker. This process
distribution.
breaks the naphtha into lighter components.
Product Manual Control Fuzzy Control
Boiler Feed Water
Cracking Gas Ethylene 97,0 ± 2,8 99,1 ± 0,7
Naphta Propene 97,7 ± 2,2 99,2 ± 0,7
Figure 11: Comparison of fuzzy logic control versus manual
operation. The fuzzy logic controller ensures better capacity
Heat Exchanger usage by operating the process more stable
Steam
The fuzzy logic load balancing system operates the plant more
Temperature Sensor
stable. For that, the average production capacity can be set
closer to the maximum plant capacity. Figure 11 compares the
results for the products ethylene and propene. In addition, the
smother operation reduces the coking process in the crackers,
Burner resulting in a slight decrease of required cracker cleaning steps
in a given interval.
Fuel
Temperature Control in the Bottom of a Destillation Column
Figure 10: Layout of a steam cracker. Control variables are
heating as well as naphtha and steam flow To separate cracking gas in its components, destillation columns
are used in ethylene production (Figure 9). Due to the
temperature gradient in the column, the heavier components can
be withdrawn at the bottom and the lighter components at the conventional control techniques. The resulting controller uses
top. In its ethylene production plant in Chiba, Idemitsu the following input variables to determine the steam flow in the
Petrochemical of Japan uses a fuzzy logic temperature controller heat exchanger:
[1]. − Heat flow of the incoming cracking gas (Feed)
− Pressure in the destillation column
Figure 12 shows a destillation column that separates the light − CH4 concentration in the lower fraction
components (hydrogen, methane) from the heavy components − Bottom temperature in the destillation column
(ethylene, ethane, propene, propane, butane). As the boiling
point of these substances is well over the environment The combination of a fuzzy logic controller and a conventional
temperature, destillation is carried out at relatively low controller operates the plant continuously since 1989 and does
temperatures and very high pressure. To monitor the process, not require manual intervention. After an extended online
gas chromatographs measure the outgoing gas mixes. The gas optimization phase during operation, the final solution delivered
chromatograph at the bottom detects methane. The one at the more robust operation compared to the manual control. Even
top measures the concentration of methane and ethylene. A heat strong variations on the feed rate of the cracking gas caused by
exchanger delivers heat to the bottom of the destillation column shut downs of crackers are well under control.
using steam from other steps of the process.
Quality Control in Polyethylene Production
Hydrogen, Methane
Most of the ethylene produces is converted to polyethylene by a
polymerization reaction. One product made of polyethylene are
foils, some as thin as a few micrometers. Such products are
Gas Chromatograph
made from HDPE polyethylene, that must have a very constant
quality.
Feed
In the polymerisation, the ingredients ethylene and a solvent
Destillation Column react using a catalyst. The quality of the final product depends
on many factors. Some of these are the purity of the ingredients,
Heat Exchanger the reaction pressure and temperature, and the concentration of
the substances. The measurement of these factors during the
Gas Chromatograph reaction is incomplete. Only analyzing the resulting
Steam
polyethylene reveals the quality of the final product. However,
this analysis information is only available a few hours later. In a
Ethylene, Ethane, Propene, Propane, Butane worst case, in this time an unusable product is made.
Figure 12: Layout of a destillation column in an ethylene To control the quality of the produced polyethylene during the
production plant. The raw material fed in the column reaction, Hoechst Corporation of Germany uses a fuzzy logic
is separated into heavy and light components by supervising controller in its Münchsmünster plant. This
the temperature gradient in the column controller estimates the quality of the current polyethylene
production on the basis of the existing sensor signals. Every ten
Keeping the temperature gradient in the column constant is
seconds, the fuzzy logic controller adjusts the set values of the
essential for ensuring a high quality of the destillation.
process accordingly.
However, temperature control in the destillation column is
difficult as strong disturbances are present. Temperature and
In a similar application, Polysar Rubber Corporation of Canada
feed rate of the incoming cracking gas fluctuate because of
uses a fuzzy logic process controller to ensure stable
variations in the steam cracking process step. Another general
polyethylene quality [5]. The fuzzy logic system controls the
property of destillation columns is the existence of long dead
catalyst feed using three input variables that stem from online
times that are hard to quantify and depend on the composition of
process sensors. The fuzzy logic system uses 75 rules and
the cracking gas. Idemitsu Petrochemical's previous attempts
reduced the standard deviation by more than 40% since its first
using conventional automation techniques all did not deliver
operation in 1990.
satisfying results, leaving the plant under manual control.
Literature