In spatially distributed systems such as smart buildings and intelligent transportation systems, control of spatio-temporal patterns is an important issue. this paper, we consider a finite-horizon optimal pattern problem where the specified by signal logic formula over finite traces, which will be called SSTLf formula. We give syntax Boolean semantics SSTLf. Then, show linear encodings temporal...