Skip to main content
QUICK REVIEW

[Paper Review] Counterexample Guided Synthesis of Switched Controllers for Reach-While-Stay Properties

Hadi Ravanbakhsh, Sriram Sankaranarayanan|arXiv (Cornell University)|May 5, 2015
Formal Methods in VerificationComputer Science39 references10 citations
TL;DR

This paper presents a counterexample-guided inductive synthesis (CEGIS) framework for automatically generating switched controllers that guarantee reach-while-stay (RWS) properties in polynomial continuous-time systems. By synthesizing control Lyapunov functions (CLFs) with minimum dwell time constraints via SMT solving, the method ensures provably correct, finite-time convergence to goal states while remaining within safe regions, achieving successful synthesis for 18 out of 20 benchmarks with significant speedups over existing tools.

ABSTRACT

We introduce a counter-example guided inductive synthesis (CEGIS) framework for synthesizing continuous-time switching controllers that guarantee reach while stay (RWS) properties of the closed loop system. The solution is based on synthesizing specially defined class of control Lyapunov functions (CLFs) for switched systems, that yield switching controllers with a guaranteed minimum dwell time in each mode. Next, we use a CEGIS-based approach to iteratively solve the resulting quantified exists-forall constraints, and find a CLF. We introduce relaxations to guarantee termination, as well as heuristics to increase convergence speed. Finally, we evaluate our approach on a set of benchmarks ranging from two to six state variables. Our evaluation includes a preliminary comparison with related tools. The proposed approach shows the promise of nonlinear SMT solvers for the synthesis of provably correct switching control laws.

Motivation & Objective

  • To automatically synthesize switching controllers that guarantee reach-while-stay (RWS) properties in polynomial switched systems with continuous dynamics.
  • To ensure that the controller enforces a minimum dwell time per mode to prevent Zeno behavior in continuous-time systems.
  • To develop a CEGIS-based synthesis procedure that iteratively finds control Lyapunov functions (CLFs) satisfying quantified exists-forall constraints.
  • To guarantee finite termination of the CEGIS loop through algorithmic refinements and improve convergence via heuristic witness selection.
  • To evaluate the approach on a benchmark suite of 20 systems, demonstrating scalability and competitiveness against state-of-the-art tools.

Proposed method

  • The method uses a counterexample-guided inductive synthesis (CEGIS) loop to iteratively search for a control Lyapunov function (CLF) that ensures system trajectories reach a goal set while remaining within a safe set.
  • It formulates the CLF synthesis problem as a quantified constraint satisfaction problem involving existential and universal quantifiers over continuous state variables and control inputs.
  • The CEGIS loop alternates between generating candidate CLFs and checking their validity using SMT solvers—Z3 for linear arithmetic and dReal for nonlinear arithmetic.
  • To ensure termination, the framework introduces algorithmic refinements that restrict the search space and avoid infinite loops in the presence of spurious counterexamples.
  • A heuristic is employed to select better witness points during counterexample analysis, accelerating convergence of the CEGIS loop.
  • The approach integrates minimum dwell time constraints into the CLF conditions to prevent Zeno behavior, ensuring that each control mode is active for a non-infinitesimal duration.

Experimental results

Research questions

  • RQ1Can a CEGIS-based framework be adapted to synthesize switching controllers for reach-while-stay (RWS) properties in continuous-time switched systems with provable safety and liveness?
  • RQ2How can control Lyapunov functions (CLFs) be synthesized under minimum dwell time constraints to prevent Zeno behavior in switched systems?
  • RQ3What refinements to the CEGIS loop are necessary to guarantee finite termination when searching over continuous, infinite-dimensional function spaces?
  • RQ4How effective is the proposed method in synthesizing CLFs for polynomial systems with up to six state variables compared to existing tools?
  • RQ5Can nonlinear SMT solvers like dReal scale to practical RWS controller synthesis problems while maintaining correctness and performance?

Key findings

  • The proposed CEGIS-based method successfully synthesized a valid control Lyapunov function (CLF) for 18 out of 20 benchmark systems, including those with up to six state variables.
  • The method achieved significant speedups compared to existing tools, particularly on problems where finite abstraction construction dominates runtime, as it avoids explicit abstraction altogether.
  • For the inverted pendulum on a cart system (ID 7), the method computed a CLF with a minimal dwell time of 0.0002 seconds, ensuring convergence to the goal region within safe bounds.
  • The approach timed out on two larger benchmarks due to the high computational cost of nonlinear SMT solving with dReal, indicating a current scalability bottleneck.
  • A preliminary comparison showed that the method outperformed CoSyMA and PESSOA on 8 comparable benchmarks, with faster runtime and no need for finite-state abstraction.
  • The method demonstrated the promise of nonlinear SMT solvers for correct-by-construction controller synthesis, especially for RWS objectives in polynomial systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.