Optimal Control of Active Nematics.