View full-text article in PMC Sensors (Basel). 2024 Jul 14;24(14):4567. doi: 10.3390/s24144567 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1 Variational Autoencoder-based Controller Synthesis under STL Constraints 1:Φ,Dj← Initialize(Ξ) 2:ξcur←ξinit,ξpast←∅ 3:for t=t0:dt:t1 do 4: flin← Linearize(f,ξcur) 5: for j=1:1:N do 6: rj← CVAE(ϕ(ξcur)) 7: Cφj,rj← EncodeSTLConstraints(φj,rj) 8: end for 9: CSTL←Cφ1,r1∧…∧CφN,rN 10: C←CSTL∧flin∧[ξ(t0,⋯,t−dt)=ξpast] 11: uH,t← Optimize(J(ξH),C) 12: xnext=f(xcur,uH,t(t)) 13: ξpast←[ξpastξcur] 14: ξcur←(xnext,uH,t(t)) 15:end for