Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install hiyenwong-ai-collection-collection-skills-complex-valued-kuramoto-controlgit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-complex-valued-kuramoto-control/SKILL.md---
name: complex-valued-kuramoto-control
description: "Complex-valued Kuramoto network synchronization control using switched control and sliding-mode methods. Embeds phase dynamics into linear state space for tractable control design. Use for: coupled oscillator networks, phase synchronization, Kuramoto model control, complex systems synchronization."
---
# Complex-Valued Kuramoto Networks: Unified Control Framework
Control theory for synchronization in networks of coupled oscillators via complex-valued embeddings.
## Core Innovation
**Problem**: Classical Kuramoto model's nonlinearity limits analytical tractability and complicates control design.
**Solution**: Embed phase dynamics into higher-dimensional **linear state space** by using complex-valued representations.
## Key Insight
> **Embedding phase dynamics into a linear state space enables tractable control design**
By representing oscillator phases as complex numbers $z_k = r_k e^{i\theta_k}$, we can:
- Regulate complex-state moduli to a common value
- Recover Kuramoto phase behavior through linear control
- Apply standard control techniques (state feedback, sliding mode)
## Mathematical Framework
### Complex-Valued Kuramoto Model
$$z_k = r_k e^{i\theta_k}$$
where:
- $z_k \in \mathbb{C}$: complex state
- $r_k = |z_k|$: modulus (magnitude)
- $\theta_k$: phase angle
### Linear State Space Embedding
The complex dynamics can be written as:
$$\dot{z}_k = f(z_k, \{z_j\}_{j \in N_k})$$
where $f$ is now **linear** in the complex state space, enabling:
- Pole placement
- LQR design
- Sliding-mode control
## Control Strategies
### 1. Switched Feedforward Control
**Guarantee**: Exact phase correspondence at all times
```
Algorithm:
1. Compute target phase from reference
2. Apply feedforward control law
3. Switch between regimes based on state
4. Maintain exact tracking
```
### 2. Feedforward + Sliding-Mode Control
**Guarantee**: Finite-time convergence without spectral gain tuning
```python
# Sliding surface design
def sliding_surface(z_k, z_ref):
"""Complex-valued sliding surface."""
s = |z_k| - |z_ref| + phase_diff(z_k, z_ref)
return s
# Control law
def control_input(z_k, z_ref, sliding_param):
s = sliding_surface(z_k, z_ref)
u = feedforward(z_ref) - sliding_param * sign(s)
return u
```
### 3. Non-autonomous MIMO Sliding-Mode
**Guarantee**: Phase locking at prescribed frequency in finite time
- Independent of natural frequencies $\omega_k$
- Independent of coupling strengths $K_{ij}$
- Enforces synchronization at desired frequency $\omega_d$
## Applications
| Domain | Use Case |
|--------|----------|
| Power grids | Generator synchronization |
| Neuroscience | Neural oscillation control |
| Robotics | Multi-robot coordination |
| Physics | Quantum oscillator systems |
| Engineering | Vibration control |
## Implementation Guide
### Step 1: Model Complex Dynamics
```python
import numpy as np
class ComplexKuramotoNetwork:
def __init__(self, n_oscillators, coupling_matrix, natural_freqs):
self.n = n_oscillators
self.K = coupling_matrix # K[i,j] = coupling strength
self.w = natural_freqs # ω_k
def dynamics(self, z_state, u_control=None):
"""Complex-valued Kuramoto dynamics."""
z = z_state # Complex array of shape (n,)
# Coupling term
coupling = np.zeros(n, dtype=complex)
for k in range(self.n):
for j in range(self.n):
coupling[k] += self.K[k,j] * z[j]
# Dynamics: dz/dt = (iω + coupling/K) * z
dz = (1j * self.w + coupling) * z
if u_control is not None:
dz += u_control
return dz
```
### Step 2: Design Control Law
```python
def switched_feedforward_control(z, z_ref, epsilon=0.01):
"""Switched feedforward law for exact phase tracking."""
# Current phase
theta = np.angle(z)
theta_ref = np.angle(z_ref)
# Phase difference
delta_theta = theta_ref - theta
# Switching logic
if np.abs(delta_theta) < epsilon:
# Near equilibrium: gentle correction
u = 1j * delta_theta * z
else:
# Far from equilibrium: aggressive control
u = 1j * np.sign(delta_theta) * z_ref
return u
def sliding_mode_control(z, z_ref, rho=1.0, mu=0.1):
"""Sliding-mode control for finite-time convergence."""
# Sliding surface: s = |z| - |z_ref| + phase_diff
s = np.abs(z) - np.abs(z_ref)
s += np.angle(z) - np.angle(z_ref)
# Control law: u = u_ff - rho * sign(s)
u_ff = 1j * (np.angle(z_ref) - np.angle(z)) * z # Feedforward
u = u_ff - rho * np.sign(s) * (1 + mu * np.abs(s))
return u
```
### Step 3: Finite-Time Phase Locking
```python
def mimo_phase_locking(z_state, omega_desired, rho=2.0, T_max=100):
"""Enforce phase locking at desired frequency."""
z = z_state.copy()
for t in range(T_max):
# Reference at desired frequency
z_ref = np.abs(z) * np.exp(1j * omega_desired * t)
# MIMO sliding-mode control
s = np.angle(z) - omega_desired * t
u = -rho * np.sign(s)
# Update dynamics
dz = dynamics(z, u)
z = z + dz * dt
# Check convergence
if np.all(np.abs(s) < epsilon):
break
return z
```
## Comparison with Classical Methods
| Method | Tractability | Convergence | Robustness |
|--------|--------------|-------------|------------|
| Classical Kuramoto | Nonlinear, hard | Asymptotic | Limited |
| State-feedback | Linear, easy | Exponential | Moderate |
| Reset-based | Hybrid | Finite-time | Good |
| **Switched feedforward** | **Linear** | **Exact** | **High** |
| **Sliding-mode** | **Linear** | **Finite-time** | **Very high** |
## Advantages
1. **Analytical Tractability**: Linear state space enables standard control design
2. **Exact Tracking**: Switched feedforward guarantees perfect phase correspondence
3. **Finite-Time Convergence**: Sliding-mode achieves convergence in finite time
4. **Robustness**: Works independent of natural frequencies and coupling strengths
5. **Scalability**: MIMO design handles large networks
## Research Paper
**Source**: arxiv:2604.07249 - "Complex-Valued Kuramoto Networks: A Unified Control-Theoretic Framework"
**Authors**: Lorenzo Giordano, Josep M. Olm, Mario di Bernardo
**Key Contributions**:
1. Unified control framework for complex-valued Kuramoto
2. Two switched control designs
3. Non-autonomous MIMO sliding-mode controller
## Related Skills
- **kuramoto-brain-network**: Kuramoto model for brain connectivity
- **synchronization-control**: General synchronization control
- **complex-systems-control**: Control of complex dynamical systems
- **sliding-mode-control**: Robust sliding-mode techniques
## References
1. Kuramoto, Y. (1975). Self-entrainment of a population of coupled non-linear oscillators
2. Strogatz, S. H. (2000). From Kuramoto to Crawford: exploring the onset of synchronization
3. Dörfler, F., & Bullo, F. (2014). Synchronization in complex networks of phase oscillators
---
**Summary**: Complex-valued embeddings transform the nonlinear Kuramoto model into a tractable linear control problem, enabling exact tracking, finite-time convergence, and robust synchronization in oscillator networks.