  Formal control of cyber-physical systems allows for synthesis of control
strategies from rich specifications such as temporal logics. However, the
classes of systems that the formal approaches can be applied to is limited due
to the computational complexity. Furthermore, the synthesis problem becomes
even harder when non-determinism or stochasticity is considered. In this work,
we propose an alternative approach. First, we mark the unwanted events on the
traces of the system and generate a controllable cause representing these
events as a Signal Temporal Logic (STL) formula. Then, we synthesize a
controller based on this formula to avoid the satisfaction of it. Our approach
is applicable to any system with finitely many control choices. While we can
not guarantee correctness, i.e., the unwanted events will never occur, we show
on an example that the proposed approach reduces the number of the unwanted
events. In particular, we validate it for the congestion avoidance problem in a
traffic network.
