Datasets:
Formats:
csv
Languages:
English
Size:
1K - 10K
Tags:
process-control
pid-controller
statistical-process-control
roller-compaction
pharmaceutical-manufacturing
time-series
License:
Upload 6 files
Browse filesInitial upload: control performance dataset v1.0
- IPA_Control_Performance_Analysis.ipynb +329 -0
- LICENSE.txt +28 -0
- README.md +145 -3
- control_performance_summary_v1.0.csv +97 -0
- control_performance_timeseries_v1.0.csv +0 -0
- generate_dataset.py +392 -0
IPA_Control_Performance_Analysis.ipynb
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{"cell_type": "markdown", "metadata": {}, "source": [
|
| 4 |
+
"# \ud83c\udfae Roll Compactor Control Performance: PID Analysis & SPC\n",
|
| 5 |
+
"\n",
|
| 6 |
+
"**Dataset:** Roll Compactor Control Performance (Synthetic) v1.0 \n",
|
| 7 |
+
"**Publisher:** [Innovative Process Applications (IPA)](https://www.innovativeprocess.com) \n",
|
| 8 |
+
"**License:** CC BY 4.0 \n",
|
| 9 |
+
"**Scientific basis:** Szappanos-Csord\u00e1s (2018), Chapter 3.1\n",
|
| 10 |
+
"\n",
|
| 11 |
+
"> \u26a0\ufe0f **Synthetic educational data** \u2014 not real measurements.\n",
|
| 12 |
+
"\n",
|
| 13 |
+
"---\n",
|
| 14 |
+
"\n",
|
| 15 |
+
"This notebook covers:\n",
|
| 16 |
+
"1. Load both summary and time-series data\n",
|
| 17 |
+
"2. Visualize PID step responses across control architectures\n",
|
| 18 |
+
"3. Compare control quality metrics (CV%, settling time, overshoot)\n",
|
| 19 |
+
"4. Build SPC control charts\n",
|
| 20 |
+
"5. Quantify the twin feed screw advantage\n",
|
| 21 |
+
"6. Classify control quality from time-series features"
|
| 22 |
+
]},
|
| 23 |
+
|
| 24 |
+
{"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [
|
| 25 |
+
"import pandas as pd\n",
|
| 26 |
+
"import numpy as np\n",
|
| 27 |
+
"import matplotlib.pyplot as plt\n",
|
| 28 |
+
"import seaborn as sns\n",
|
| 29 |
+
"from sklearn.ensemble import RandomForestClassifier\n",
|
| 30 |
+
"from sklearn.preprocessing import LabelEncoder\n",
|
| 31 |
+
"from sklearn.model_selection import cross_val_score\n",
|
| 32 |
+
"\n",
|
| 33 |
+
"sns.set_style('whitegrid')\n",
|
| 34 |
+
"plt.rcParams['figure.dpi'] = 100\n",
|
| 35 |
+
"\n",
|
| 36 |
+
"# Load data\n",
|
| 37 |
+
"df_summary = pd.read_csv('control_performance_summary_v1.0.csv')\n",
|
| 38 |
+
"df_ts = pd.read_csv('control_performance_timeseries_v1.0.csv')\n",
|
| 39 |
+
"\n",
|
| 40 |
+
"print(f'Summary: {df_summary.shape[0]} runs, {df_summary.shape[1]} columns')\n",
|
| 41 |
+
"print(f'Time series: {df_ts.shape[0]} rows, {df_ts.shape[1]} columns')\n",
|
| 42 |
+
"print(f'Control architectures: {df_summary[\"control_architecture\"].unique()}')\n",
|
| 43 |
+
"df_summary.head()"
|
| 44 |
+
]},
|
| 45 |
+
|
| 46 |
+
{"cell_type": "markdown", "metadata": {}, "source": [
|
| 47 |
+
"## Part 1: PID Step Response Visualization\n",
|
| 48 |
+
"\n",
|
| 49 |
+
"The defining characteristic of a PID controller is its step response \u2014 how\n",
|
| 50 |
+
"the actual value tracks a setpoint change. We\u2019ll compare the four control\n",
|
| 51 |
+
"architectures responding to the same SCF step-up scenario."
|
| 52 |
+
]},
|
| 53 |
+
{"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [
|
| 54 |
+
"# Pick one material and one scenario to compare architectures\n",
|
| 55 |
+
"scenario = 'scf_step_up'\n",
|
| 56 |
+
"material = 'MCC_Mannitol_Mix'\n",
|
| 57 |
+
"\n",
|
| 58 |
+
"architectures = ['no_gap_control', 'pid_gw_screw', 'pid_scf_gw', 'pid_scf_gw_twin_screw']\n",
|
| 59 |
+
"labels = ['No Gap Control', 'PID: GW+Screw', 'PID: SCF+GW', 'PID: SCF+GW+Twin Screw']\n",
|
| 60 |
+
"colors = ['#cc4444', '#d4a017', '#2E86C1', '#008080']\n",
|
| 61 |
+
"\n",
|
| 62 |
+
"fig, axes = plt.subplots(2, 1, figsize=(14, 8), sharex=True)\n",
|
| 63 |
+
"\n",
|
| 64 |
+
"for arch, label, color in zip(architectures, labels, colors):\n",
|
| 65 |
+
" run = df_summary[(df_summary['control_architecture']==arch) &\n",
|
| 66 |
+
" (df_summary['material']==material) &\n",
|
| 67 |
+
" (df_summary['scenario']==scenario)]\n",
|
| 68 |
+
" if len(run) == 0:\n",
|
| 69 |
+
" continue\n",
|
| 70 |
+
" rid = run.iloc[0]['run_id']\n",
|
| 71 |
+
" ts = df_ts[df_ts['run_id']==rid]\n",
|
| 72 |
+
"\n",
|
| 73 |
+
" axes[0].plot(ts['time_s'], ts['scf_actual_kN_per_cm'], label=label,\n",
|
| 74 |
+
" color=color, alpha=0.8, linewidth=1.2)\n",
|
| 75 |
+
" axes[1].plot(ts['time_s'], ts['gw_actual_mm'], label=label,\n",
|
| 76 |
+
" color=color, alpha=0.8, linewidth=1.2)\n",
|
| 77 |
+
"\n",
|
| 78 |
+
"# Setpoint lines\n",
|
| 79 |
+
"axes[0].axhline(4.0, color='gray', linestyle=':', alpha=0.5)\n",
|
| 80 |
+
"axes[0].axhline(8.0, color='gray', linestyle=':', alpha=0.5)\n",
|
| 81 |
+
"axes[0].axvline(30, color='black', linestyle='--', alpha=0.3, label='Setpoint change')\n",
|
| 82 |
+
"axes[0].set_ylabel('SCF (kN/cm)')\n",
|
| 83 |
+
"axes[0].set_title(f'PID Step Response Comparison \\u2014 SCF Step Up (4\\u21928 kN/cm), {material}')\n",
|
| 84 |
+
"axes[0].legend(loc='lower right', fontsize=9)\n",
|
| 85 |
+
"\n",
|
| 86 |
+
"axes[1].axvline(30, color='black', linestyle='--', alpha=0.3)\n",
|
| 87 |
+
"axes[1].set_ylabel('Gap Width (mm)')\n",
|
| 88 |
+
"axes[1].set_xlabel('Time (s)')\n",
|
| 89 |
+
"axes[1].set_title('Gap Width Response During SCF Step Change')\n",
|
| 90 |
+
"axes[1].legend(loc='upper right', fontsize=9)\n",
|
| 91 |
+
"\n",
|
| 92 |
+
"plt.tight_layout()\n",
|
| 93 |
+
"plt.show()\n",
|
| 94 |
+
"\n",
|
| 95 |
+
"print('Key observations:')\n",
|
| 96 |
+
"print('- No gap control: slow approach, steady-state offset, noisy')\n",
|
| 97 |
+
"print('- PID SCF+GW: overshoot then clean settling')\n",
|
| 98 |
+
"print('- Twin screw: tightest band, fastest settling, least noise')"
|
| 99 |
+
]},
|
| 100 |
+
|
| 101 |
+
{"cell_type": "markdown", "metadata": {}, "source": [
|
| 102 |
+
"## Part 2: Control Quality Metrics by Architecture\n",
|
| 103 |
+
"\n",
|
| 104 |
+
"CV% (coefficient of variation) is the primary metric from Chapter 3.1 of\n",
|
| 105 |
+
"the dissertation. Lower CV = more robust process."
|
| 106 |
+
]},
|
| 107 |
+
{"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [
|
| 108 |
+
"fig, axes = plt.subplots(1, 3, figsize=(16, 4))\n",
|
| 109 |
+
"\n",
|
| 110 |
+
"order = ['no_gap_control', 'pid_gw_screw', 'pid_scf_gw', 'pid_scf_gw_twin_screw']\n",
|
| 111 |
+
"palette = ['#cc4444', '#d4a017', '#2E86C1', '#008080']\n",
|
| 112 |
+
"\n",
|
| 113 |
+
"sns.boxplot(data=df_summary, x='control_architecture', y='scf_ss_cv_pct',\n",
|
| 114 |
+
" order=order, palette=palette, ax=axes[0])\n",
|
| 115 |
+
"axes[0].set_title('SCF Steady-State CV%')\n",
|
| 116 |
+
"axes[0].set_ylabel('CV %')\n",
|
| 117 |
+
"axes[0].tick_params(axis='x', rotation=30)\n",
|
| 118 |
+
"axes[0].set_xlabel('')\n",
|
| 119 |
+
"\n",
|
| 120 |
+
"sns.boxplot(data=df_summary, x='control_architecture', y='gw_ss_cv_pct',\n",
|
| 121 |
+
" order=order, palette=palette, ax=axes[1])\n",
|
| 122 |
+
"axes[1].set_title('Gap Width Steady-State CV%')\n",
|
| 123 |
+
"axes[1].set_ylabel('CV %')\n",
|
| 124 |
+
"axes[1].tick_params(axis='x', rotation=30)\n",
|
| 125 |
+
"axes[1].set_xlabel('')\n",
|
| 126 |
+
"\n",
|
| 127 |
+
"sns.boxplot(data=df_summary, x='control_architecture', y='scf_settling_time_s',\n",
|
| 128 |
+
" order=order, palette=palette, ax=axes[2])\n",
|
| 129 |
+
"axes[2].set_title('SCF Settling Time')\n",
|
| 130 |
+
"axes[2].set_ylabel('Time (s)')\n",
|
| 131 |
+
"axes[2].tick_params(axis='x', rotation=30)\n",
|
| 132 |
+
"axes[2].set_xlabel('')\n",
|
| 133 |
+
"\n",
|
| 134 |
+
"plt.tight_layout()\n",
|
| 135 |
+
"plt.show()\n",
|
| 136 |
+
"\n",
|
| 137 |
+
"print('\\nMean CV% by architecture:')\n",
|
| 138 |
+
"print(df_summary.groupby('control_architecture')[['scf_ss_cv_pct','gw_ss_cv_pct']].mean().round(2).loc[order])"
|
| 139 |
+
]},
|
| 140 |
+
|
| 141 |
+
{"cell_type": "markdown", "metadata": {}, "source": [
|
| 142 |
+
"## Part 3: Material Effect on Controllability\n",
|
| 143 |
+
"\n",
|
| 144 |
+
"Brittle materials (mannitol) produce more erratic force signals due to\n",
|
| 145 |
+
"particle fragmentation, making the control task harder."
|
| 146 |
+
]},
|
| 147 |
+
{"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [
|
| 148 |
+
"fig, axes = plt.subplots(1, 2, figsize=(12, 4))\n",
|
| 149 |
+
"mat_order = ['MCC_101', 'MCC_Mannitol_Mix', 'Mannitol_SD']\n",
|
| 150 |
+
"mat_colors = ['#008080', '#2E86C1', '#d4a017']\n",
|
| 151 |
+
"\n",
|
| 152 |
+
"sns.boxplot(data=df_summary, x='material', y='scf_ss_cv_pct',\n",
|
| 153 |
+
" order=mat_order, palette=mat_colors, ax=axes[0])\n",
|
| 154 |
+
"axes[0].set_title('SCF CV% by Material')\n",
|
| 155 |
+
"axes[0].set_ylabel('SCF CV %')\n",
|
| 156 |
+
"axes[0].set_xlabel('')\n",
|
| 157 |
+
"\n",
|
| 158 |
+
"sns.boxplot(data=df_summary, x='material', y='gw_ss_cv_pct',\n",
|
| 159 |
+
" order=mat_order, palette=mat_colors, ax=axes[1])\n",
|
| 160 |
+
"axes[1].set_title('Gap Width CV% by Material')\n",
|
| 161 |
+
"axes[1].set_ylabel('GW CV %')\n",
|
| 162 |
+
"axes[1].set_xlabel('')\n",
|
| 163 |
+
"\n",
|
| 164 |
+
"plt.tight_layout()\n",
|
| 165 |
+
"plt.show()\n",
|
| 166 |
+
"\n",
|
| 167 |
+
"print('Interpretation:')\n",
|
| 168 |
+
"print('- MCC (plastic): smoothest compaction, easiest to control')\n",
|
| 169 |
+
"print('- Mannitol (brittle): particle fragmentation creates force spikes')\n",
|
| 170 |
+
"print('- Mixture: intermediate behavior')"
|
| 171 |
+
]},
|
| 172 |
+
|
| 173 |
+
{"cell_type": "markdown", "metadata": {}, "source": [
|
| 174 |
+
"## Part 4: SPC Control Charts\n",
|
| 175 |
+
"\n",
|
| 176 |
+
"Statistical Process Control charts are standard tools in pharma\n",
|
| 177 |
+
"manufacturing. Let\u2019s build X-bar and R charts for a sample run."
|
| 178 |
+
]},
|
| 179 |
+
{"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [
|
| 180 |
+
"# Pick the twin-screw + MCC steady-state baseline for the cleanest signal\n",
|
| 181 |
+
"run_spc = df_summary[(df_summary['control_architecture']=='pid_scf_gw_twin_screw') &\n",
|
| 182 |
+
" (df_summary['material']=='MCC_101') &\n",
|
| 183 |
+
" (df_summary['scenario']=='steady_state_baseline')]\n",
|
| 184 |
+
"if len(run_spc) > 0:\n",
|
| 185 |
+
" rid = run_spc.iloc[0]['run_id']\n",
|
| 186 |
+
" ts = df_ts[df_ts['run_id']==rid].copy()\n",
|
| 187 |
+
"\n",
|
| 188 |
+
" # Use only steady-state portion (t > 30s)\n",
|
| 189 |
+
" ts_ss = ts[ts['time_s'] >= 30.0].copy()\n",
|
| 190 |
+
"\n",
|
| 191 |
+
" scf_mean = ts_ss['scf_actual_kN_per_cm'].mean()\n",
|
| 192 |
+
" scf_std = ts_ss['scf_actual_kN_per_cm'].std()\n",
|
| 193 |
+
" ucl = scf_mean + 3 * scf_std\n",
|
| 194 |
+
" lcl = scf_mean - 3 * scf_std\n",
|
| 195 |
+
"\n",
|
| 196 |
+
" fig, ax = plt.subplots(figsize=(14, 4))\n",
|
| 197 |
+
" ax.plot(ts_ss['time_s'], ts_ss['scf_actual_kN_per_cm'],\n",
|
| 198 |
+
" 'o-', markersize=3, color='#008080', alpha=0.7)\n",
|
| 199 |
+
" ax.axhline(scf_mean, color='#1B2A3B', linewidth=2, label=f'CL = {scf_mean:.3f}')\n",
|
| 200 |
+
" ax.axhline(ucl, color='red', linestyle='--', label=f'UCL = {ucl:.3f}')\n",
|
| 201 |
+
" ax.axhline(lcl, color='red', linestyle='--', label=f'LCL = {lcl:.3f}')\n",
|
| 202 |
+
" ax.fill_between(ts_ss['time_s'], lcl, ucl, alpha=0.05, color='red')\n",
|
| 203 |
+
" ax.set_xlabel('Time (s)')\n",
|
| 204 |
+
" ax.set_ylabel('SCF (kN/cm)')\n",
|
| 205 |
+
" ax.set_title(f'X-bar Control Chart \\u2014 Twin Screw PID, MCC 101, Steady State')\n",
|
| 206 |
+
" ax.legend(loc='upper right')\n",
|
| 207 |
+
" plt.tight_layout()\n",
|
| 208 |
+
" plt.show()\n",
|
| 209 |
+
"\n",
|
| 210 |
+
" print(f'Process capability summary:')\n",
|
| 211 |
+
" print(f' Mean: {scf_mean:.3f} kN/cm')\n",
|
| 212 |
+
" print(f' Std: {scf_std:.4f} kN/cm')\n",
|
| 213 |
+
" print(f' CV: {scf_std/scf_mean*100:.2f}%')\n",
|
| 214 |
+
" spec_half = 0.5 # example spec: setpoint +/- 0.5 kN/cm\n",
|
| 215 |
+
" cpk = min(ucl - scf_mean, scf_mean - lcl) / (3 * scf_std)\n",
|
| 216 |
+
" print(f' Cpk (\\u00b13\\u03c3 natural): {cpk:.2f}')"
|
| 217 |
+
]},
|
| 218 |
+
|
| 219 |
+
{"cell_type": "markdown", "metadata": {}, "source": [
|
| 220 |
+
"## Part 5: Twin Feed Screw Advantage\n",
|
| 221 |
+
"\n",
|
| 222 |
+
"This is the key IPA design differentiator. Twin feed screws provide more\n",
|
| 223 |
+
"uniform powder delivery, which directly reduces process variability."
|
| 224 |
+
]},
|
| 225 |
+
{"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [
|
| 226 |
+
"# Compare single vs twin screw (both with SCF+GW PID)\n",
|
| 227 |
+
"single = df_summary[df_summary['control_architecture']=='pid_scf_gw']\n",
|
| 228 |
+
"twin = df_summary[df_summary['control_architecture']=='pid_scf_gw_twin_screw']\n",
|
| 229 |
+
"\n",
|
| 230 |
+
"metrics = ['scf_ss_cv_pct', 'gw_ss_cv_pct', 'scf_settling_time_s', 'scf_overshoot_pct']\n",
|
| 231 |
+
"metric_labels = ['SCF CV%', 'GW CV%', 'Settling Time (s)', 'Overshoot %']\n",
|
| 232 |
+
"\n",
|
| 233 |
+
"fig, axes = plt.subplots(1, 4, figsize=(16, 4))\n",
|
| 234 |
+
"for ax, metric, mlabel in zip(axes, metrics, metric_labels):\n",
|
| 235 |
+
" data = pd.DataFrame({\n",
|
| 236 |
+
" 'Single Screw': single[metric].values,\n",
|
| 237 |
+
" 'Twin Screw': twin[metric].values,\n",
|
| 238 |
+
" })\n",
|
| 239 |
+
" data.plot.box(ax=ax, color=dict(boxes='#008080', whiskers='gray',\n",
|
| 240 |
+
" medians='#1B2A3B', caps='gray'))\n",
|
| 241 |
+
" ax.set_title(mlabel)\n",
|
| 242 |
+
" ax.set_ylabel(mlabel)\n",
|
| 243 |
+
"\n",
|
| 244 |
+
"plt.suptitle('Single Screw vs. Twin Feed Screw (Same PID Architecture)',\n",
|
| 245 |
+
" fontsize=13, y=1.02)\n",
|
| 246 |
+
"plt.tight_layout()\n",
|
| 247 |
+
"plt.show()\n",
|
| 248 |
+
"\n",
|
| 249 |
+
"print('\\nImprovement with twin screw:')\n",
|
| 250 |
+
"for metric, mlabel in zip(metrics, metric_labels):\n",
|
| 251 |
+
" s = single[metric].mean()\n",
|
| 252 |
+
" t = twin[metric].mean()\n",
|
| 253 |
+
" improvement = (s - t) / s * 100 if s > 0 else 0\n",
|
| 254 |
+
" print(f' {mlabel}: {s:.2f} \\u2192 {t:.2f} ({improvement:+.1f}% improvement)')"
|
| 255 |
+
]},
|
| 256 |
+
|
| 257 |
+
{"cell_type": "markdown", "metadata": {}, "source": [
|
| 258 |
+
"## Part 6: Classify Control Quality from Metrics\n",
|
| 259 |
+
"\n",
|
| 260 |
+
"Can we predict the control quality grade from the summary metrics? This\n",
|
| 261 |
+
"demonstrates how machine learning can support process monitoring."
|
| 262 |
+
]},
|
| 263 |
+
{"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [
|
| 264 |
+
"# Encode targets and features\n",
|
| 265 |
+
"le = LabelEncoder()\n",
|
| 266 |
+
"y = le.fit_transform(df_summary['control_quality_grade'])\n",
|
| 267 |
+
"\n",
|
| 268 |
+
"feature_cols = ['scf_ss_cv_pct', 'gw_ss_cv_pct', 'scf_deviation_from_setpoint_pct',\n",
|
| 269 |
+
" 'gw_deviation_from_setpoint_pct', 'scf_settling_time_s',\n",
|
| 270 |
+
" 'gw_settling_time_s', 'scf_overshoot_pct']\n",
|
| 271 |
+
"X = df_summary[feature_cols].values\n",
|
| 272 |
+
"\n",
|
| 273 |
+
"rf = RandomForestClassifier(n_estimators=100, random_state=42)\n",
|
| 274 |
+
"scores = cross_val_score(rf, X, y, cv=5, scoring='accuracy')\n",
|
| 275 |
+
"print(f'RF 5-fold CV accuracy: {scores.mean():.3f} \\u00b1 {scores.std():.3f}')\n",
|
| 276 |
+
"\n",
|
| 277 |
+
"rf.fit(X, y)\n",
|
| 278 |
+
"importances = pd.Series(rf.feature_importances_, index=feature_cols).sort_values()\n",
|
| 279 |
+
"\n",
|
| 280 |
+
"fig, ax = plt.subplots(figsize=(8, 4))\n",
|
| 281 |
+
"importances.plot.barh(color='#008080', ax=ax)\n",
|
| 282 |
+
"ax.set_title('Feature Importance for Control Quality Grade Prediction')\n",
|
| 283 |
+
"ax.set_xlabel('Importance')\n",
|
| 284 |
+
"plt.tight_layout()\n",
|
| 285 |
+
"plt.show()"
|
| 286 |
+
]},
|
| 287 |
+
|
| 288 |
+
{"cell_type": "markdown", "metadata": {}, "source": [
|
| 289 |
+
"## Takeaways\n",
|
| 290 |
+
"\n",
|
| 291 |
+
"1. **Control architecture matters enormously:** Going from no gap control to\n",
|
| 292 |
+
" full PID SCF+GW control reduces process variability by 50\u201370%. This is\n",
|
| 293 |
+
" not optional in regulated pharma manufacturing.\n",
|
| 294 |
+
"\n",
|
| 295 |
+
"2. **Twin feed screws are a multiplicative advantage:** On top of PID control,\n",
|
| 296 |
+
" twin screws provide an additional 20\u201330% reduction in CV by smoothing\n",
|
| 297 |
+
" feed rate fluctuations. This is a mechanical design choice, not a tuning\n",
|
| 298 |
+
" parameter \u2014 it must be built into the machine.\n",
|
| 299 |
+
"\n",
|
| 300 |
+
"3. **Material properties affect control difficulty:** Brittle materials\n",
|
| 301 |
+
" produce noisier signals that challenge even the best PID controllers.\n",
|
| 302 |
+
" Process development must account for this.\n",
|
| 303 |
+
"\n",
|
| 304 |
+
"4. **SPC tools apply directly to continuous granulation:** Control charts,\n",
|
| 305 |
+
" Cp/Cpk, and trend analysis are standard pharma quality tools that\n",
|
| 306 |
+
" connect naturally to roll compaction process data.\n",
|
| 307 |
+
"\n",
|
| 308 |
+
"---\n",
|
| 309 |
+
"\n",
|
| 310 |
+
"For twin-feed-screw roller compactors with advanced PID control and direct\n",
|
| 311 |
+
"engineer support, see IPA\u2019s CL-series compactors:\n",
|
| 312 |
+
"**https://www.innovativeprocess.com**\n",
|
| 313 |
+
"\n",
|
| 314 |
+
"*Dataset \u00a9 2026 Innovative Process Applications, CC BY 4.0.* \n",
|
| 315 |
+
"*Scientific basis: Szappanos-Csord\u00e1s (2018), Chapter 3.1.*"
|
| 316 |
+
]}
|
| 317 |
+
],
|
| 318 |
+
"metadata": {
|
| 319 |
+
"colab": {
|
| 320 |
+
"provenance": [],
|
| 321 |
+
"toc_visible": true,
|
| 322 |
+
"authorship_tag": "Innovative Process Applications (IPA)"
|
| 323 |
+
},
|
| 324 |
+
"kernelspec": {"display_name": "Python 3", "language": "python", "name": "python3"},
|
| 325 |
+
"language_info": {"name": "python", "version": "3.11"}
|
| 326 |
+
},
|
| 327 |
+
"nbformat": 4,
|
| 328 |
+
"nbformat_minor": 5
|
| 329 |
+
}
|
LICENSE.txt
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Creative Commons Attribution 4.0 International (CC BY 4.0)
|
| 2 |
+
===========================================================
|
| 3 |
+
|
| 4 |
+
Copyright (c) 2026 Innovative Process Applications (IPA)
|
| 5 |
+
|
| 6 |
+
This dataset is licensed under the Creative Commons Attribution 4.0
|
| 7 |
+
International License. You are free to:
|
| 8 |
+
|
| 9 |
+
- Share: copy and redistribute the material in any medium or format
|
| 10 |
+
- Adapt: remix, transform, and build upon the material
|
| 11 |
+
for any purpose, even commercially.
|
| 12 |
+
|
| 13 |
+
Under the following terms:
|
| 14 |
+
|
| 15 |
+
- Attribution: You must give appropriate credit, provide a link to
|
| 16 |
+
the license, and indicate if changes were made.
|
| 17 |
+
|
| 18 |
+
Recommended attribution:
|
| 19 |
+
|
| 20 |
+
"Roll Compactor Control Performance: PID Tuning & Process Stability
|
| 21 |
+
(Synthetic), v1.0, by Innovative Process Applications (IPA), CC BY 4.0,
|
| 22 |
+
https://www.innovativeprocess.com"
|
| 23 |
+
|
| 24 |
+
Full license text: https://creativecommons.org/licenses/by/4.0/legalcode
|
| 25 |
+
|
| 26 |
+
DISCLAIMER: This dataset is synthetic and intended for educational use
|
| 27 |
+
only. It does not represent real equipment, customer, or production
|
| 28 |
+
data.
|
README.md
CHANGED
|
@@ -1,3 +1,145 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Roll Compactor Control Performance: PID Tuning & Process Stability (Synthetic)
|
| 2 |
+
|
| 3 |
+
**Version:** 1.0
|
| 4 |
+
**Publisher:** [Innovative Process Applications (IPA)](https://www.innovativeprocess.com)
|
| 5 |
+
**License:** Creative Commons Attribution 4.0 International (CC BY 4.0)
|
| 6 |
+
**Contact:** Crestwood, IL, USA
|
| 7 |
+
|
| 8 |
+
> **This dataset is 100% synthetic and intended for educational use only.**
|
| 9 |
+
> It was generated from PID control theory applied to roll compaction process
|
| 10 |
+
> dynamics — not measured on any real equipment, customer, or production batch.
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
## What's in this dataset
|
| 15 |
+
|
| 16 |
+
Two linked files containing synthetic roll compaction process control data:
|
| 17 |
+
|
| 18 |
+
### 1. Summary file: `control_performance_summary_v1.0.csv` (96 runs × 22 columns)
|
| 19 |
+
|
| 20 |
+
Each row is one 3-minute compaction run with computed control metrics.
|
| 21 |
+
|
| 22 |
+
| Column | Description |
|
| 23 |
+
|---|---|
|
| 24 |
+
| `run_id` | Unique run identifier |
|
| 25 |
+
| `control_architecture` | Control strategy identifier |
|
| 26 |
+
| `control_label` | Human-readable control description |
|
| 27 |
+
| `feed_type` | Single screw or twin screw |
|
| 28 |
+
| `has_scf_pid` / `has_gw_pid` | Whether PID control is active for SCF / gap width |
|
| 29 |
+
| `material` | Model material (MCC_101, Mannitol_SD, MCC_Mannitol_Mix) |
|
| 30 |
+
| `scenario` | Setpoint change scenario (step up, step down, simultaneous, etc.) |
|
| 31 |
+
| `scf_setpoint_kN_per_cm` | Target specific compaction force |
|
| 32 |
+
| `gw_setpoint_mm` | Target gap width |
|
| 33 |
+
| `scf_ss_mean` / `scf_ss_std` / `scf_ss_cv_pct` | Steady-state SCF statistics |
|
| 34 |
+
| `scf_deviation_from_setpoint_pct` | Steady-state deviation from target (%) |
|
| 35 |
+
| `scf_settling_time_s` | Time to reach ±2% of setpoint after change |
|
| 36 |
+
| `scf_overshoot_pct` | Peak overshoot above setpoint (%) |
|
| 37 |
+
| `gw_ss_mean_mm` / `gw_ss_std_mm` / `gw_ss_cv_pct` | Steady-state gap width statistics |
|
| 38 |
+
| `gw_deviation_from_setpoint_pct` | Gap width deviation from target (%) |
|
| 39 |
+
| `gw_settling_time_s` | Gap width settling time |
|
| 40 |
+
| `control_quality_grade` | Overall grade: Excellent / Good / Acceptable / Poor |
|
| 41 |
+
|
| 42 |
+
### 2. Time-series file: `control_performance_timeseries_v1.0.csv` (8,640 rows × 8 columns)
|
| 43 |
+
|
| 44 |
+
Actual process data sampled every 2 seconds for each run (90 timepoints × 96 runs).
|
| 45 |
+
|
| 46 |
+
| Column | Description |
|
| 47 |
+
|---|---|
|
| 48 |
+
| `run_id` | Links to summary table |
|
| 49 |
+
| `time_s` | Timestamp in seconds (0–180) |
|
| 50 |
+
| `scf_setpoint_kN_per_cm` | Current SCF setpoint (changes at t=30s) |
|
| 51 |
+
| `scf_actual_kN_per_cm` | Measured SCF value |
|
| 52 |
+
| `gw_setpoint_mm` | Current gap width setpoint |
|
| 53 |
+
| `gw_actual_mm` | Measured gap width |
|
| 54 |
+
| `roll_speed_rpm` | Roll rotation speed |
|
| 55 |
+
| `screw_speed_rpm` | Feed screw speed (adapts if GW PID is active) |
|
| 56 |
+
|
| 57 |
+
## Scientific basis
|
| 58 |
+
|
| 59 |
+
The dataset models PID control behavior as described in:
|
| 60 |
+
|
| 61 |
+
> Szappanos-Csordás, K. (2018). *Impact of material properties, process parameters
|
| 62 |
+
> and roll compactor design on roll compaction.* Chapter 3.1: Control performance
|
| 63 |
+
> of the different types of roll compactors. Heinrich-Heine-Universität Düsseldorf.
|
| 64 |
+
|
| 65 |
+
Key concepts from Section 3.1 modeled here:
|
| 66 |
+
|
| 67 |
+
1. **Four control architectures** of increasing sophistication:
|
| 68 |
+
- No gap control (hydraulic pressure setpoint only) — highest variability
|
| 69 |
+
- PID with gap width + screw speed control — moderate performance
|
| 70 |
+
- PID with SCF + gap width control — good performance
|
| 71 |
+
- PID with SCF + gap width + twin feed screw — best performance
|
| 72 |
+
|
| 73 |
+
2. **PID controller dynamics:** Proportional, Integral, and Derivative terms
|
| 74 |
+
producing characteristic overshoot, oscillation, and settling behavior.
|
| 75 |
+
Without PID (no gap control), the system shows steady-state offset because
|
| 76 |
+
there is no integral term to eliminate it.
|
| 77 |
+
|
| 78 |
+
3. **Settling time:** Time required after a setpoint change for the process to
|
| 79 |
+
stabilize within ±2% of the new setpoint. Varies by control architecture,
|
| 80 |
+
material properties, and magnitude of the setpoint change.
|
| 81 |
+
|
| 82 |
+
4. **Coefficient of variation (CV%):** Ratio of standard deviation to mean during
|
| 83 |
+
steady-state production. Lower CV indicates more robust process control.
|
| 84 |
+
The dissertation reports CV values from ~0.8% (best) to ~3.6% (no control).
|
| 85 |
+
|
| 86 |
+
5. **Material-dependent control difficulty:** Brittle materials (mannitol)
|
| 87 |
+
produce more erratic force signals due to particle fragmentation, making
|
| 88 |
+
control harder. Plastic materials (MCC) compact more smoothly.
|
| 89 |
+
|
| 90 |
+
6. **Twin feed screw advantage:** Reduces feed rate fluctuations, lowering both
|
| 91 |
+
SCF and gap width variability — a key differentiator in IPA's CL-series
|
| 92 |
+
compactor design.
|
| 93 |
+
|
| 94 |
+
7. **Setpoint change scenarios:** Step increases, step decreases, and simultaneous
|
| 95 |
+
changes in SCF and gap width — mirroring the experimental protocol in the
|
| 96 |
+
dissertation's Tables 2–3.
|
| 97 |
+
|
| 98 |
+
## What you can teach with it
|
| 99 |
+
|
| 100 |
+
- **PID controller tuning:** Examine overshoot, settling time, and steady-state
|
| 101 |
+
error across different control architectures
|
| 102 |
+
- **Statistical Process Control (SPC):** Build control charts, calculate Cp/Cpk,
|
| 103 |
+
identify out-of-control conditions
|
| 104 |
+
- **Time-series analysis:** Apply filtering, spectral analysis, or change-point
|
| 105 |
+
detection to the process signals
|
| 106 |
+
- **Control architecture comparison:** Quantify the value of closed-loop PID
|
| 107 |
+
control vs. open-loop hydraulic setpoint
|
| 108 |
+
- **Material effects on controllability:** Compare control performance across
|
| 109 |
+
plastic, brittle, and mixed deformation materials
|
| 110 |
+
- **Classification:** Train models to predict control quality grade from
|
| 111 |
+
time-series features
|
| 112 |
+
|
| 113 |
+
## Cross-links (also published on)
|
| 114 |
+
|
| 115 |
+
- **Kaggle:** [link after publication]
|
| 116 |
+
- **Hugging Face Datasets:** [link after publication]
|
| 117 |
+
- **Zenodo (DOI):** [link after publication]
|
| 118 |
+
- **GitHub:** [link after publication]
|
| 119 |
+
- **IPA website:** https://www.innovativeprocess.com
|
| 120 |
+
|
| 121 |
+
## About IPA
|
| 122 |
+
|
| 123 |
+
Innovative Process Applications designs and manufactures twin-feed-screw roller
|
| 124 |
+
compactors, mills, and size-reduction equipment for the pharmaceutical,
|
| 125 |
+
nutraceutical, chemical, and food industries. Based in Crestwood, Illinois, IPA
|
| 126 |
+
is a direct OEM alternative to legacy Fitzpatrick Chilsonator and FitzMill
|
| 127 |
+
systems, with American manufacturing and direct engineer access. Learn more at
|
| 128 |
+
[innovativeprocess.com](https://www.innovativeprocess.com).
|
| 129 |
+
|
| 130 |
+
## Citation
|
| 131 |
+
|
| 132 |
+
> Innovative Process Applications (2026). *Roll Compactor Control Performance:
|
| 133 |
+
> PID Tuning & Process Stability (Synthetic), v1.0*. CC BY 4.0.
|
| 134 |
+
> https://www.innovativeprocess.com
|
| 135 |
+
|
| 136 |
+
Scientific basis:
|
| 137 |
+
|
| 138 |
+
> Szappanos-Csordás, K. (2018). *Impact of material properties, process
|
| 139 |
+
> parameters and roll compactor design on roll compaction.* Doctoral dissertation,
|
| 140 |
+
> Heinrich-Heine-Universität Düsseldorf.
|
| 141 |
+
|
| 142 |
+
## Version history
|
| 143 |
+
|
| 144 |
+
- **v1.0** (April 2026) — Initial release. 96 runs, 4 control architectures,
|
| 145 |
+
3 materials, 8 scenarios. Summary + time-series files.
|
control_performance_summary_v1.0.csv
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
run_id,control_architecture,control_label,feed_type,has_scf_pid,has_gw_pid,material,scenario,scf_setpoint_kN_per_cm,gw_setpoint_mm,scf_ss_mean,scf_ss_std,scf_ss_cv_pct,scf_deviation_from_setpoint_pct,scf_settling_time_s,scf_overshoot_pct,gw_ss_mean_mm,gw_ss_std_mm,gw_ss_cv_pct,gw_deviation_from_setpoint_pct,gw_settling_time_s,control_quality_grade
|
| 2 |
+
1,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_101,steady_state_baseline,4.0,2.0,3.994,0.0497,1.24,0.15,146.0,3.58,1.997,0.0604,3.02,0.15,149.5,Good
|
| 3 |
+
2,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_101,scf_step_up,8.0,2.0,7.89,0.0946,1.2,1.38,149.0,3.79,2.0066,0.055,2.74,0.33,149.5,Good
|
| 4 |
+
3,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_101,scf_step_down,4.0,2.0,4.113,0.0483,1.17,2.83,149.5,97.05,2.0084,0.0559,2.78,0.42,149.5,Good
|
| 5 |
+
4,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_101,gw_step_down,6.0,1.5,5.999,0.0753,1.26,0.02,143.5,10.08,1.555,0.0495,3.19,3.67,149.5,Good
|
| 6 |
+
5,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_101,gw_step_up,6.0,3.0,5.987,0.0671,1.12,0.22,132.0,2.72,2.9522,0.0775,2.63,1.59,149.5,Good
|
| 7 |
+
6,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_101,simultaneous_change,8.0,1.5,7.892,0.0818,1.04,1.35,149.0,1.83,1.5551,0.0486,3.13,3.68,149.5,Good
|
| 8 |
+
7,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_101,high_force_steady,12.0,2.0,11.986,0.1092,0.91,0.12,139.5,2.61,1.985,0.059,2.97,0.75,149.5,Good
|
| 9 |
+
8,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_101,low_force_wide_gap,2.0,4.0,2.005,0.0291,1.45,0.24,149.5,5.48,4.0112,0.0965,2.4,0.28,149.0,Good
|
| 10 |
+
9,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,Mannitol_SD,steady_state_baseline,4.0,2.0,3.999,0.0822,2.06,0.03,149.0,6.75,2.0077,0.1016,5.06,0.38,149.5,Acceptable
|
| 11 |
+
10,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,Mannitol_SD,scf_step_up,8.0,2.0,7.963,0.1551,1.95,0.47,149.5,10.38,2.0074,0.0985,4.9,0.37,149.5,Acceptable
|
| 12 |
+
11,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,Mannitol_SD,scf_step_down,4.0,2.0,4.038,0.067,1.66,0.96,149.0,95.69,1.9962,0.0856,4.29,0.19,149.5,Acceptable
|
| 13 |
+
12,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,Mannitol_SD,gw_step_down,6.0,1.5,5.998,0.0885,1.47,0.03,147.5,4.95,1.5485,0.0694,4.48,3.24,149.5,Acceptable
|
| 14 |
+
13,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,Mannitol_SD,gw_step_up,6.0,3.0,5.99,0.1147,1.92,0.17,146.0,6.28,2.9679,0.1146,3.86,1.07,149.5,Acceptable
|
| 15 |
+
14,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,Mannitol_SD,simultaneous_change,8.0,1.5,7.958,0.1362,1.71,0.53,145.0,5.75,1.5549,0.0699,4.49,3.66,149.5,Acceptable
|
| 16 |
+
15,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,Mannitol_SD,high_force_steady,12.0,2.0,12.011,0.2524,2.1,0.09,148.0,12.9,1.9973,0.0936,4.69,0.14,149.5,Acceptable
|
| 17 |
+
16,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,Mannitol_SD,low_force_wide_gap,2.0,4.0,2.009,0.0389,1.94,0.44,149.0,8.81,3.9922,0.1647,4.12,0.2,149.5,Acceptable
|
| 18 |
+
17,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_Mannitol_Mix,steady_state_baseline,4.0,2.0,4.003,0.0803,2.01,0.08,149.5,8.22,1.9978,0.0736,3.68,0.11,149.5,Acceptable
|
| 19 |
+
18,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_Mannitol_Mix,scf_step_up,8.0,2.0,7.926,0.1102,1.39,0.93,144.5,2.77,1.9863,0.0649,3.27,0.68,149.5,Good
|
| 20 |
+
19,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_Mannitol_Mix,scf_step_down,4.0,2.0,4.07,0.0648,1.59,1.75,149.5,99.14,1.9986,0.0713,3.57,0.07,149.5,Acceptable
|
| 21 |
+
20,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_Mannitol_Mix,gw_step_down,6.0,1.5,5.996,0.1008,1.68,0.07,143.0,10.21,1.5455,0.0576,3.73,3.03,149.5,Acceptable
|
| 22 |
+
21,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_Mannitol_Mix,gw_step_up,6.0,3.0,5.978,0.0764,1.28,0.37,146.5,3.27,2.9614,0.1139,3.85,1.29,149.5,Acceptable
|
| 23 |
+
22,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_Mannitol_Mix,simultaneous_change,8.0,1.5,7.901,0.1336,1.69,1.24,149.0,3.05,1.5449,0.0574,3.71,2.99,149.5,Acceptable
|
| 24 |
+
23,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_Mannitol_Mix,high_force_steady,12.0,2.0,12.026,0.1597,1.33,0.22,149.0,4.61,2.0055,0.0654,3.26,0.28,149.0,Good
|
| 25 |
+
24,no_gap_control,No Gap Control (HP setpoint only),single_screw,False,False,MCC_Mannitol_Mix,low_force_wide_gap,2.0,4.0,1.997,0.0332,1.66,0.14,143.0,10.18,3.9867,0.138,3.46,0.33,149.5,Acceptable
|
| 26 |
+
25,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_101,steady_state_baseline,4.0,2.0,3.992,0.0618,1.55,0.21,149.5,5.64,1.9999,0.0356,1.78,0.0,148.5,Good
|
| 27 |
+
26,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_101,scf_step_up,8.0,2.0,7.895,0.1069,1.35,1.32,149.0,5.79,1.9982,0.0374,1.87,0.09,149.0,Good
|
| 28 |
+
27,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_101,scf_step_down,4.0,2.0,4.112,0.0459,1.12,2.8,149.5,98.81,2.0028,0.0359,1.79,0.14,149.5,Good
|
| 29 |
+
28,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_101,gw_step_down,6.0,1.5,6.002,0.0654,1.09,0.03,149.0,5.26,1.5002,0.0306,2.04,0.02,149.0,Good
|
| 30 |
+
29,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_101,gw_step_up,6.0,3.0,5.998,0.0777,1.3,0.03,137.5,7.74,2.9996,0.0454,1.51,0.01,149.5,Good
|
| 31 |
+
30,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_101,simultaneous_change,8.0,1.5,7.886,0.1086,1.38,1.42,146.5,8.4,1.4992,0.0287,1.92,0.06,149.5,Good
|
| 32 |
+
31,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_101,high_force_steady,12.0,2.0,12.006,0.0983,0.82,0.05,144.0,7.93,1.9995,0.0429,2.15,0.02,147.0,Good
|
| 33 |
+
32,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_101,low_force_wide_gap,2.0,4.0,2.003,0.0269,1.34,0.15,140.5,7.71,3.9926,0.0637,1.6,0.19,149.0,Good
|
| 34 |
+
33,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,Mannitol_SD,steady_state_baseline,4.0,2.0,4.005,0.0807,2.02,0.11,149.5,5.3,1.9993,0.0569,2.85,0.04,149.5,Good
|
| 35 |
+
34,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,Mannitol_SD,scf_step_up,8.0,2.0,7.953,0.1157,1.45,0.59,146.5,3.05,1.9983,0.0546,2.73,0.08,149.5,Good
|
| 36 |
+
35,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,Mannitol_SD,scf_step_down,4.0,2.0,4.025,0.0622,1.55,0.63,148.5,94.53,2.0017,0.0523,2.61,0.09,149.5,Good
|
| 37 |
+
36,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,Mannitol_SD,gw_step_down,6.0,1.5,6.004,0.095,1.58,0.07,145.0,8.27,1.5003,0.0446,2.97,0.02,148.5,Good
|
| 38 |
+
37,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,Mannitol_SD,gw_step_up,6.0,3.0,5.988,0.0916,1.53,0.2,145.0,4.72,2.9974,0.0722,2.41,0.09,149.5,Good
|
| 39 |
+
38,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,Mannitol_SD,simultaneous_change,8.0,1.5,7.977,0.1247,1.56,0.28,149.5,4.49,1.4986,0.0408,2.72,0.09,149.5,Good
|
| 40 |
+
39,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,Mannitol_SD,high_force_steady,12.0,2.0,11.999,0.1878,1.57,0.01,148.0,8.3,1.994,0.0527,2.64,0.3,148.0,Good
|
| 41 |
+
40,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,Mannitol_SD,low_force_wide_gap,2.0,4.0,2.004,0.037,1.85,0.2,145.5,5.54,3.9993,0.0926,2.31,0.02,149.5,Good
|
| 42 |
+
41,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_Mannitol_Mix,steady_state_baseline,4.0,2.0,4.003,0.0482,1.2,0.09,147.5,6.47,1.997,0.0348,1.74,0.15,149.5,Good
|
| 43 |
+
42,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_Mannitol_Mix,scf_step_up,8.0,2.0,7.934,0.1004,1.27,0.82,149.0,7.9,1.9984,0.0431,2.15,0.08,149.5,Good
|
| 44 |
+
43,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_Mannitol_Mix,scf_step_down,4.0,2.0,4.083,0.0558,1.37,2.07,149.5,92.71,1.9968,0.0396,1.98,0.16,149.5,Good
|
| 45 |
+
44,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_Mannitol_Mix,gw_step_down,6.0,1.5,6.003,0.0694,1.16,0.05,145.5,3.76,1.4995,0.031,2.07,0.03,149.5,Good
|
| 46 |
+
45,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_Mannitol_Mix,gw_step_up,6.0,3.0,5.998,0.0878,1.46,0.04,146.5,5.53,3.0012,0.0508,1.69,0.04,148.0,Good
|
| 47 |
+
46,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_Mannitol_Mix,simultaneous_change,8.0,1.5,7.908,0.0807,1.02,1.15,149.5,2.01,1.4992,0.0356,2.37,0.05,149.5,Good
|
| 48 |
+
47,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_Mannitol_Mix,high_force_steady,12.0,2.0,12.009,0.1385,1.15,0.08,144.5,5.57,2.0007,0.0387,1.93,0.03,148.5,Good
|
| 49 |
+
48,pid_gw_screw,PID: GW + Screw Speed Control,single_screw,False,True,MCC_Mannitol_Mix,low_force_wide_gap,2.0,4.0,2.0,0.0364,1.82,0.02,149.5,7.5,4.0042,0.0695,1.74,0.11,147.5,Good
|
| 50 |
+
49,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_101,steady_state_baseline,4.0,2.0,4.003,0.027,0.68,0.08,52.5,2.02,2.0003,0.0271,1.36,0.02,149.5,Good
|
| 51 |
+
50,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_101,scf_step_up,8.0,2.0,8.007,0.0531,0.66,0.08,106.5,16.08,2.0016,0.0222,1.11,0.08,117.5,Excellent
|
| 52 |
+
51,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_101,scf_step_down,4.0,2.0,3.999,0.0304,0.76,0.01,126.0,98.14,1.9962,0.0215,1.08,0.19,147.0,Excellent
|
| 53 |
+
52,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_101,gw_step_down,6.0,1.5,5.999,0.0397,0.66,0.01,76.0,2.67,1.5009,0.024,1.6,0.06,142.5,Good
|
| 54 |
+
53,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_101,gw_step_up,6.0,3.0,6.001,0.0476,0.79,0.01,94.0,1.95,3.0015,0.029,0.97,0.05,149.5,Excellent
|
| 55 |
+
54,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_101,simultaneous_change,8.0,1.5,8.009,0.0751,0.94,0.11,145.0,14.96,1.5023,0.0255,1.7,0.15,146.0,Good
|
| 56 |
+
55,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_101,high_force_steady,12.0,2.0,12.011,0.1131,0.94,0.1,135.0,5.9,1.999,0.0219,1.1,0.05,145.5,Good
|
| 57 |
+
56,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_101,low_force_wide_gap,2.0,4.0,1.997,0.0215,1.08,0.16,139.0,2.96,4.0039,0.0343,0.86,0.1,104.0,Excellent
|
| 58 |
+
57,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,Mannitol_SD,steady_state_baseline,4.0,2.0,4.0,0.0607,1.52,0.01,142.5,11.11,2.0054,0.0341,1.7,0.27,149.5,Good
|
| 59 |
+
58,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,Mannitol_SD,scf_step_up,8.0,2.0,7.989,0.0965,1.21,0.14,147.5,13.23,2.002,0.0324,1.62,0.1,146.0,Good
|
| 60 |
+
59,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,Mannitol_SD,scf_step_down,4.0,2.0,4.009,0.0716,1.79,0.24,149.5,102.15,2.0033,0.0466,2.33,0.16,149.5,Good
|
| 61 |
+
60,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,Mannitol_SD,gw_step_down,6.0,1.5,5.988,0.071,1.19,0.2,149.5,5.25,1.5004,0.0254,1.7,0.02,148.0,Good
|
| 62 |
+
61,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,Mannitol_SD,gw_step_up,6.0,3.0,5.993,0.0705,1.18,0.12,133.0,9.43,2.9953,0.0519,1.73,0.16,149.5,Good
|
| 63 |
+
62,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,Mannitol_SD,simultaneous_change,8.0,1.5,7.994,0.1043,1.3,0.08,144.0,20.06,1.4979,0.0242,1.62,0.14,148.0,Good
|
| 64 |
+
63,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,Mannitol_SD,high_force_steady,12.0,2.0,12.002,0.1053,0.88,0.02,149.5,2.96,2.0031,0.0342,1.71,0.15,149.5,Good
|
| 65 |
+
64,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,Mannitol_SD,low_force_wide_gap,2.0,4.0,2.0,0.03,1.5,0.02,149.0,6.21,3.9986,0.0653,1.63,0.04,148.5,Good
|
| 66 |
+
65,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_Mannitol_Mix,steady_state_baseline,4.0,2.0,3.995,0.0353,0.88,0.14,124.5,4.49,2.0047,0.0293,1.46,0.23,148.5,Good
|
| 67 |
+
66,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_Mannitol_Mix,scf_step_up,8.0,2.0,8.005,0.0759,0.95,0.07,104.5,13.35,1.9977,0.033,1.65,0.12,149.5,Good
|
| 68 |
+
67,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_Mannitol_Mix,scf_step_down,4.0,2.0,3.999,0.0313,0.78,0.02,108.0,100.73,1.9999,0.0264,1.32,0.0,146.0,Good
|
| 69 |
+
68,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_Mannitol_Mix,gw_step_down,6.0,1.5,6.001,0.0537,0.9,0.01,113.0,4.93,1.5041,0.0247,1.64,0.27,147.0,Good
|
| 70 |
+
69,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_Mannitol_Mix,gw_step_up,6.0,3.0,6.005,0.0952,1.59,0.08,137.0,11.32,3.0029,0.0302,1.01,0.1,134.0,Good
|
| 71 |
+
70,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_Mannitol_Mix,simultaneous_change,8.0,1.5,7.995,0.1195,1.49,0.06,143.0,16.1,1.4943,0.03,2.01,0.38,149.5,Good
|
| 72 |
+
71,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_Mannitol_Mix,high_force_steady,12.0,2.0,12.014,0.0862,0.72,0.12,145.5,2.69,2.0002,0.0354,1.77,0.01,145.5,Good
|
| 73 |
+
72,pid_scf_gw,PID: SCF + GW Control,single_screw,True,True,MCC_Mannitol_Mix,low_force_wide_gap,2.0,4.0,2.001,0.022,1.1,0.03,147.0,3.05,4.0008,0.0467,1.17,0.02,134.5,Good
|
| 74 |
+
73,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_101,steady_state_baseline,4.0,2.0,4.0,0.0442,1.11,0.01,129.0,7.8,1.9993,0.0185,0.92,0.03,148.5,Good
|
| 75 |
+
74,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_101,scf_step_up,8.0,2.0,7.997,0.0462,0.58,0.04,119.5,14.9,2.0013,0.0216,1.08,0.07,142.5,Excellent
|
| 76 |
+
75,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_101,scf_step_down,4.0,2.0,4.001,0.0198,0.49,0.03,147.0,99.67,1.9977,0.0194,0.97,0.12,136.5,Excellent
|
| 77 |
+
76,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_101,gw_step_down,6.0,1.5,5.999,0.0741,1.24,0.02,135.0,6.38,1.4983,0.0159,1.06,0.11,139.0,Good
|
| 78 |
+
77,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_101,gw_step_up,6.0,3.0,6.003,0.0349,0.58,0.06,133.0,7.11,3.0009,0.0216,0.72,0.03,75.5,Excellent
|
| 79 |
+
78,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_101,simultaneous_change,8.0,1.5,8.001,0.0671,0.84,0.01,111.0,13.22,1.5027,0.0181,1.21,0.18,140.0,Good
|
| 80 |
+
79,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_101,high_force_steady,12.0,2.0,11.993,0.0562,0.47,0.06,130.0,4.7,2.0008,0.0198,0.99,0.04,146.0,Excellent
|
| 81 |
+
80,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_101,low_force_wide_gap,2.0,4.0,2.001,0.0175,0.88,0.04,110.0,1.84,4.0012,0.0245,0.61,0.03,81.5,Excellent
|
| 82 |
+
81,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,Mannitol_SD,steady_state_baseline,4.0,2.0,4.0,0.0397,0.99,0.01,142.0,8.26,2.0004,0.0253,1.26,0.02,149.0,Good
|
| 83 |
+
82,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,Mannitol_SD,scf_step_up,8.0,2.0,8.006,0.0557,0.7,0.08,135.5,14.31,2.0017,0.0273,1.36,0.09,140.0,Good
|
| 84 |
+
83,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,Mannitol_SD,scf_step_down,4.0,2.0,3.996,0.0391,0.98,0.11,124.0,101.31,2.002,0.0262,1.31,0.1,148.0,Good
|
| 85 |
+
84,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,Mannitol_SD,gw_step_down,6.0,1.5,5.995,0.0484,0.81,0.09,146.0,2.11,1.4983,0.0215,1.44,0.12,149.5,Good
|
| 86 |
+
85,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,Mannitol_SD,gw_step_up,6.0,3.0,5.997,0.0797,1.33,0.06,129.5,11.93,2.9966,0.0488,1.63,0.11,140.0,Good
|
| 87 |
+
86,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,Mannitol_SD,simultaneous_change,8.0,1.5,7.997,0.0403,0.5,0.04,117.5,13.8,1.4953,0.0262,1.75,0.31,149.0,Good
|
| 88 |
+
87,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,Mannitol_SD,high_force_steady,12.0,2.0,12.01,0.1305,1.09,0.08,107.5,10.86,1.9999,0.028,1.4,0.0,144.5,Good
|
| 89 |
+
88,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,Mannitol_SD,low_force_wide_gap,2.0,4.0,2.0,0.023,1.15,0.0,127.5,8.11,3.9944,0.0472,1.18,0.14,142.5,Good
|
| 90 |
+
89,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_Mannitol_Mix,steady_state_baseline,4.0,2.0,4.004,0.0418,1.04,0.1,146.5,6.6,1.9998,0.0277,1.38,0.01,148.5,Good
|
| 91 |
+
90,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_Mannitol_Mix,scf_step_up,8.0,2.0,8.0,0.0394,0.49,0.0,103.0,15.47,1.9944,0.0228,1.14,0.28,149.0,Excellent
|
| 92 |
+
91,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_Mannitol_Mix,scf_step_down,4.0,2.0,3.998,0.032,0.8,0.06,108.0,100.07,2.0,0.0204,1.02,0.0,132.0,Excellent
|
| 93 |
+
92,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_Mannitol_Mix,gw_step_down,6.0,1.5,6.004,0.0543,0.9,0.06,138.5,6.13,1.5019,0.0222,1.48,0.13,140.0,Good
|
| 94 |
+
93,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_Mannitol_Mix,gw_step_up,6.0,3.0,5.996,0.0411,0.69,0.07,149.5,2.13,3.0013,0.0319,1.06,0.04,146.0,Excellent
|
| 95 |
+
94,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_Mannitol_Mix,simultaneous_change,8.0,1.5,8.001,0.0346,0.43,0.02,83.0,13.12,1.5006,0.0203,1.35,0.04,149.5,Excellent
|
| 96 |
+
95,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_Mannitol_Mix,high_force_steady,12.0,2.0,12.004,0.0938,0.78,0.03,139.5,5.61,1.9991,0.0188,0.94,0.04,111.5,Excellent
|
| 97 |
+
96,pid_scf_gw_twin_screw,PID: SCF + GW Control + Twin Feed Screw,twin_screw,True,True,MCC_Mannitol_Mix,low_force_wide_gap,2.0,4.0,2.001,0.0168,0.84,0.03,145.5,2.01,3.997,0.0326,0.82,0.08,127.0,Excellent
|
control_performance_timeseries_v1.0.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
generate_dataset.py
ADDED
|
@@ -0,0 +1,392 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
IPA Roll Compactor Control Performance Synthetic Dataset Generator v1.0
|
| 3 |
+
=======================================================================
|
| 4 |
+
Generates synthetic time-series process data simulating PID control behavior
|
| 5 |
+
of roll compactors during dry granulation, grounded in the control performance
|
| 6 |
+
concepts from:
|
| 7 |
+
|
| 8 |
+
Szappanos-Csordás, K. (2018). "Impact of material properties, process
|
| 9 |
+
parameters and roll compactor design on roll compaction." Chapter 3.1:
|
| 10 |
+
Control performance of the different types of roll compactors.
|
| 11 |
+
|
| 12 |
+
Key concepts modeled:
|
| 13 |
+
- PID controller behavior (P, I, D terms) for SCF and gap width control
|
| 14 |
+
- Settling time after setpoint changes (material- and design-dependent)
|
| 15 |
+
- Steady-state deviation from setpoint (mean ± SD, CV%)
|
| 16 |
+
- Control architecture differences:
|
| 17 |
+
* No gap control (AlexanderWerk BT120-type): high GW variability
|
| 18 |
+
* PID with GW + screw speed control (Hosokawa-type): moderate control
|
| 19 |
+
* PID with SCF + GW control (Bohle/Gerteis-type): best control
|
| 20 |
+
- Material-dependent control difficulty: MCC (plastic, compressible) is
|
| 21 |
+
easier to control than mannitol (brittle, less compressible)
|
| 22 |
+
- Overshoot, oscillation, and disturbance rejection behavior
|
| 23 |
+
- Twin feed screw advantage: reduced feed fluctuation → lower SCF variance
|
| 24 |
+
|
| 25 |
+
THIS IS SYNTHETIC EDUCATIONAL DATA. NOT REAL CUSTOMER OR LAB DATA.
|
| 26 |
+
Generated by Innovative Process Applications (IPA) for teaching process
|
| 27 |
+
control, PID tuning, and SPC concepts.
|
| 28 |
+
"""
|
| 29 |
+
|
| 30 |
+
import numpy as np
|
| 31 |
+
import pandas as pd
|
| 32 |
+
|
| 33 |
+
rng = np.random.default_rng(seed=2026)
|
| 34 |
+
|
| 35 |
+
# =============================================================================
|
| 36 |
+
# CONTROL ARCHITECTURES (from Chapter 3.1 / Table 1 of the dissertation)
|
| 37 |
+
# =============================================================================
|
| 38 |
+
CONTROL_CONFIGS = {
|
| 39 |
+
"no_gap_control": {
|
| 40 |
+
"label": "No Gap Control (HP setpoint only)",
|
| 41 |
+
"description": "Hydraulic pressure setpoint, no closed-loop gap control",
|
| 42 |
+
"has_scf_pid": False,
|
| 43 |
+
"has_gw_pid": False,
|
| 44 |
+
"scf_settling_base_s": 15.0,
|
| 45 |
+
"gw_settling_base_s": 50.0, # gap drifts until material equilibrates
|
| 46 |
+
"scf_noise_base": 0.012, # CV fraction — higher without PID
|
| 47 |
+
"gw_noise_base": 0.030, # high GW variability (3% CV from Table 2)
|
| 48 |
+
"overshoot_factor": 0.08,
|
| 49 |
+
"feed_type": "single_screw",
|
| 50 |
+
},
|
| 51 |
+
"pid_gw_screw": {
|
| 52 |
+
"label": "PID: GW + Screw Speed Control",
|
| 53 |
+
"description": "Gap width controlled via PID adjusting screw speed",
|
| 54 |
+
"has_scf_pid": False,
|
| 55 |
+
"has_gw_pid": True,
|
| 56 |
+
"scf_settling_base_s": 12.0,
|
| 57 |
+
"gw_settling_base_s": 20.0,
|
| 58 |
+
"scf_noise_base": 0.010,
|
| 59 |
+
"gw_noise_base": 0.015,
|
| 60 |
+
"overshoot_factor": 0.12, # GW PID can overshoot on fast changes
|
| 61 |
+
"feed_type": "single_screw",
|
| 62 |
+
},
|
| 63 |
+
"pid_scf_gw": {
|
| 64 |
+
"label": "PID: SCF + GW Control",
|
| 65 |
+
"description": "Both SCF and GW controlled via independent PID loops",
|
| 66 |
+
"has_scf_pid": True,
|
| 67 |
+
"has_gw_pid": True,
|
| 68 |
+
"scf_settling_base_s": 8.0,
|
| 69 |
+
"gw_settling_base_s": 10.0,
|
| 70 |
+
"scf_noise_base": 0.006, # best control performance
|
| 71 |
+
"gw_noise_base": 0.008,
|
| 72 |
+
"overshoot_factor": 0.05,
|
| 73 |
+
"feed_type": "single_screw",
|
| 74 |
+
},
|
| 75 |
+
"pid_scf_gw_twin_screw": {
|
| 76 |
+
"label": "PID: SCF + GW Control + Twin Feed Screw",
|
| 77 |
+
"description": "Dual PID loops with twin feed screw for uniform feeding",
|
| 78 |
+
"has_scf_pid": True,
|
| 79 |
+
"has_gw_pid": True,
|
| 80 |
+
"scf_settling_base_s": 6.0,
|
| 81 |
+
"gw_settling_base_s": 8.0,
|
| 82 |
+
"scf_noise_base": 0.004, # twin screw reduces feed fluctuation
|
| 83 |
+
"gw_noise_base": 0.006,
|
| 84 |
+
"overshoot_factor": 0.04,
|
| 85 |
+
"feed_type": "twin_screw",
|
| 86 |
+
},
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
# =============================================================================
|
| 90 |
+
# MATERIALS (control difficulty varies with deformation behavior)
|
| 91 |
+
# =============================================================================
|
| 92 |
+
MATERIALS = {
|
| 93 |
+
"MCC_101": {
|
| 94 |
+
"label": "MCC 101 (Plastic)",
|
| 95 |
+
"control_difficulty": 0.8, # easier — plastic deformation is smoother
|
| 96 |
+
"settling_multiplier": 0.9,
|
| 97 |
+
"disturbance_sensitivity": 0.7,
|
| 98 |
+
},
|
| 99 |
+
"Mannitol_SD": {
|
| 100 |
+
"label": "Mannitol (Brittle)",
|
| 101 |
+
"control_difficulty": 1.3, # harder — brittle fragmentation causes spikes
|
| 102 |
+
"settling_multiplier": 1.3,
|
| 103 |
+
"disturbance_sensitivity": 1.4,
|
| 104 |
+
},
|
| 105 |
+
"MCC_Mannitol_Mix": {
|
| 106 |
+
"label": "1:1 Mixture",
|
| 107 |
+
"control_difficulty": 1.0,
|
| 108 |
+
"settling_multiplier": 1.0,
|
| 109 |
+
"disturbance_sensitivity": 1.0,
|
| 110 |
+
},
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
# =============================================================================
|
| 114 |
+
# SETPOINT CHANGE SCENARIOS (from Table 2/3 patterns in the dissertation)
|
| 115 |
+
# =============================================================================
|
| 116 |
+
SCENARIOS = [
|
| 117 |
+
{"scf_from": 4.0, "scf_to": 4.0, "gw_from": 2.0, "gw_to": 2.0,
|
| 118 |
+
"label": "steady_state_baseline"},
|
| 119 |
+
{"scf_from": 4.0, "scf_to": 8.0, "gw_from": 2.0, "gw_to": 2.0,
|
| 120 |
+
"label": "scf_step_up"},
|
| 121 |
+
{"scf_from": 8.0, "scf_to": 4.0, "gw_from": 2.0, "gw_to": 2.0,
|
| 122 |
+
"label": "scf_step_down"},
|
| 123 |
+
{"scf_from": 6.0, "scf_to": 6.0, "gw_from": 3.0, "gw_to": 1.5,
|
| 124 |
+
"label": "gw_step_down"},
|
| 125 |
+
{"scf_from": 6.0, "scf_to": 6.0, "gw_from": 1.5, "gw_to": 3.0,
|
| 126 |
+
"label": "gw_step_up"},
|
| 127 |
+
{"scf_from": 4.0, "scf_to": 8.0, "gw_from": 3.0, "gw_to": 1.5,
|
| 128 |
+
"label": "simultaneous_change"},
|
| 129 |
+
{"scf_from": 12.0, "scf_to": 12.0, "gw_from": 2.0, "gw_to": 2.0,
|
| 130 |
+
"label": "high_force_steady"},
|
| 131 |
+
{"scf_from": 2.0, "scf_to": 2.0, "gw_from": 4.0, "gw_to": 4.0,
|
| 132 |
+
"label": "low_force_wide_gap"},
|
| 133 |
+
]
|
| 134 |
+
|
| 135 |
+
# =============================================================================
|
| 136 |
+
# TIME-SERIES GENERATION
|
| 137 |
+
# =============================================================================
|
| 138 |
+
SAMPLE_RATE_HZ = 2.0 # 2 samples/second (0.5s intervals)
|
| 139 |
+
RUN_DURATION_S = 180.0 # 3-minute runs — enough to see settling + steady state
|
| 140 |
+
SETPOINT_CHANGE_AT_S = 30.0 # setpoint changes at t=30s
|
| 141 |
+
|
| 142 |
+
def pid_response(t, setpoint_from, setpoint_to, change_time,
|
| 143 |
+
settling_time, overshoot_factor, noise_cv,
|
| 144 |
+
has_pid, disturbance_sensitivity, rng_local):
|
| 145 |
+
"""
|
| 146 |
+
Simulate PID controller response to a setpoint change.
|
| 147 |
+
|
| 148 |
+
Without PID: parameter drifts slowly toward equilibrium with high noise.
|
| 149 |
+
With PID: second-order underdamped response (overshoot + settling).
|
| 150 |
+
"""
|
| 151 |
+
n = len(t)
|
| 152 |
+
values = np.zeros(n)
|
| 153 |
+
step_size = setpoint_to - setpoint_from
|
| 154 |
+
|
| 155 |
+
for i, ti in enumerate(t):
|
| 156 |
+
if ti < change_time:
|
| 157 |
+
# Pre-change: at old setpoint with noise
|
| 158 |
+
base = setpoint_from
|
| 159 |
+
else:
|
| 160 |
+
elapsed = ti - change_time
|
| 161 |
+
if has_pid and abs(step_size) > 0.01:
|
| 162 |
+
# Underdamped PID: exponential decay with overshoot
|
| 163 |
+
tau = settling_time / 4.0 # time constant
|
| 164 |
+
zeta = 0.4 + rng_local.uniform(-0.05, 0.05) # damping ratio
|
| 165 |
+
omega_n = 1.0 / tau
|
| 166 |
+
omega_d = omega_n * np.sqrt(1 - zeta**2) if zeta < 1 else omega_n
|
| 167 |
+
decay = np.exp(-zeta * omega_n * elapsed)
|
| 168 |
+
oscillation = np.cos(omega_d * elapsed)
|
| 169 |
+
overshoot_amp = overshoot_factor * abs(step_size)
|
| 170 |
+
response = 1.0 - decay * (oscillation + (zeta/np.sqrt(1-zeta**2)) *
|
| 171 |
+
np.sin(omega_d * elapsed)) if zeta < 1 else \
|
| 172 |
+
1.0 - (1 + omega_n * elapsed) * np.exp(-omega_n * elapsed)
|
| 173 |
+
response = np.clip(response, -0.5, 1.5)
|
| 174 |
+
base = setpoint_from + step_size * response
|
| 175 |
+
elif not has_pid and abs(step_size) > 0.01:
|
| 176 |
+
# No PID: slow exponential approach, never quite gets there
|
| 177 |
+
tau = settling_time / 2.0
|
| 178 |
+
response = 1.0 - np.exp(-elapsed / tau)
|
| 179 |
+
# Steady-state offset (no integral term to eliminate it)
|
| 180 |
+
offset = 0.03 * step_size * disturbance_sensitivity
|
| 181 |
+
base = setpoint_from + step_size * response * 0.95 + offset
|
| 182 |
+
else:
|
| 183 |
+
base = setpoint_to
|
| 184 |
+
|
| 185 |
+
# Process noise (proportional to setpoint magnitude)
|
| 186 |
+
noise = rng_local.normal(0, noise_cv * abs(base) + 0.01)
|
| 187 |
+
|
| 188 |
+
# Occasional disturbances (feed fluctuations, powder bridging)
|
| 189 |
+
if rng_local.random() < 0.02 * disturbance_sensitivity:
|
| 190 |
+
noise += rng_local.normal(0, 0.05 * abs(base))
|
| 191 |
+
|
| 192 |
+
values[i] = base + noise
|
| 193 |
+
|
| 194 |
+
return values
|
| 195 |
+
|
| 196 |
+
def compute_run_metrics(t, scf_actual, gw_actual, scf_setpoint, gw_setpoint,
|
| 197 |
+
change_time):
|
| 198 |
+
"""Compute the control performance metrics from Chapter 3.1."""
|
| 199 |
+
# Steady-state region: last 60 seconds of the run
|
| 200 |
+
ss_mask = t >= (t[-1] - 60.0)
|
| 201 |
+
# Settling region: after change, before steady state
|
| 202 |
+
settling_mask = (t >= change_time) & (t < change_time + 90.0)
|
| 203 |
+
|
| 204 |
+
# SCF metrics
|
| 205 |
+
scf_ss = scf_actual[ss_mask]
|
| 206 |
+
scf_mean = np.mean(scf_ss)
|
| 207 |
+
scf_std = np.std(scf_ss)
|
| 208 |
+
scf_cv = (scf_std / abs(scf_mean) * 100) if abs(scf_mean) > 0.1 else 0.0
|
| 209 |
+
scf_deviation_pct = abs(scf_mean - scf_setpoint) / scf_setpoint * 100 \
|
| 210 |
+
if scf_setpoint > 0.1 else 0.0
|
| 211 |
+
|
| 212 |
+
# GW metrics
|
| 213 |
+
gw_ss = gw_actual[ss_mask]
|
| 214 |
+
gw_mean = np.mean(gw_ss)
|
| 215 |
+
gw_std = np.std(gw_ss)
|
| 216 |
+
gw_cv = (gw_std / abs(gw_mean) * 100) if abs(gw_mean) > 0.1 else 0.0
|
| 217 |
+
gw_deviation_pct = abs(gw_mean - gw_setpoint) / gw_setpoint * 100 \
|
| 218 |
+
if gw_setpoint > 0.1 else 0.0
|
| 219 |
+
|
| 220 |
+
# Settling time: time after change until value stays within ±2% of final
|
| 221 |
+
scf_settled_s = _find_settling_time(t, scf_actual, scf_setpoint,
|
| 222 |
+
change_time, tolerance=0.02)
|
| 223 |
+
gw_settled_s = _find_settling_time(t, gw_actual, gw_setpoint,
|
| 224 |
+
change_time, tolerance=0.02)
|
| 225 |
+
|
| 226 |
+
# Overshoot
|
| 227 |
+
post_change = scf_actual[t >= change_time]
|
| 228 |
+
if len(post_change) > 0 and scf_setpoint > 0.1:
|
| 229 |
+
scf_overshoot_pct = (max(post_change) - scf_setpoint) / scf_setpoint * 100
|
| 230 |
+
else:
|
| 231 |
+
scf_overshoot_pct = 0.0
|
| 232 |
+
|
| 233 |
+
return {
|
| 234 |
+
"scf_ss_mean": round(scf_mean, 3),
|
| 235 |
+
"scf_ss_std": round(scf_std, 4),
|
| 236 |
+
"scf_ss_cv_pct": round(scf_cv, 2),
|
| 237 |
+
"scf_deviation_from_setpoint_pct": round(scf_deviation_pct, 2),
|
| 238 |
+
"scf_settling_time_s": round(scf_settled_s, 1),
|
| 239 |
+
"scf_overshoot_pct": round(max(scf_overshoot_pct, 0), 2),
|
| 240 |
+
"gw_ss_mean_mm": round(gw_mean, 4),
|
| 241 |
+
"gw_ss_std_mm": round(gw_std, 4),
|
| 242 |
+
"gw_ss_cv_pct": round(gw_cv, 2),
|
| 243 |
+
"gw_deviation_from_setpoint_pct": round(gw_deviation_pct, 2),
|
| 244 |
+
"gw_settling_time_s": round(gw_settled_s, 1),
|
| 245 |
+
}
|
| 246 |
+
|
| 247 |
+
def _find_settling_time(t, values, setpoint, change_time, tolerance=0.02):
|
| 248 |
+
"""Find time after change when value stays within tolerance band."""
|
| 249 |
+
if abs(setpoint) < 0.1:
|
| 250 |
+
return 0.0
|
| 251 |
+
band = tolerance * abs(setpoint)
|
| 252 |
+
post_mask = t >= change_time
|
| 253 |
+
post_t = t[post_mask]
|
| 254 |
+
post_v = values[post_mask]
|
| 255 |
+
# Walk backwards from end to find last excursion outside band
|
| 256 |
+
for i in range(len(post_v) - 1, -1, -1):
|
| 257 |
+
if abs(post_v[i] - setpoint) > band:
|
| 258 |
+
if i < len(post_v) - 1:
|
| 259 |
+
return post_t[i+1] - change_time
|
| 260 |
+
else:
|
| 261 |
+
return post_t[-1] - change_time
|
| 262 |
+
return 0.0 # already settled
|
| 263 |
+
|
| 264 |
+
# =============================================================================
|
| 265 |
+
# GENERATE ALL RUNS
|
| 266 |
+
# =============================================================================
|
| 267 |
+
t = np.arange(0, RUN_DURATION_S, 1.0 / SAMPLE_RATE_HZ)
|
| 268 |
+
n_samples = len(t)
|
| 269 |
+
|
| 270 |
+
summary_rows = []
|
| 271 |
+
timeseries_rows = []
|
| 272 |
+
run_id = 0
|
| 273 |
+
|
| 274 |
+
for ctrl_key, ctrl in CONTROL_CONFIGS.items():
|
| 275 |
+
for mat_key, mat in MATERIALS.items():
|
| 276 |
+
for scenario in SCENARIOS:
|
| 277 |
+
run_id += 1
|
| 278 |
+
|
| 279 |
+
# Adjusted settling times and noise for material
|
| 280 |
+
scf_settling = (ctrl["scf_settling_base_s"] *
|
| 281 |
+
mat["settling_multiplier"])
|
| 282 |
+
gw_settling = (ctrl["gw_settling_base_s"] *
|
| 283 |
+
mat["settling_multiplier"])
|
| 284 |
+
scf_noise = ctrl["scf_noise_base"] * mat["control_difficulty"]
|
| 285 |
+
gw_noise = ctrl["gw_noise_base"] * mat["control_difficulty"]
|
| 286 |
+
|
| 287 |
+
# Twin screw reduces feed fluctuation → lower noise
|
| 288 |
+
if ctrl["feed_type"] == "twin_screw":
|
| 289 |
+
scf_noise *= 0.75
|
| 290 |
+
gw_noise *= 0.80
|
| 291 |
+
|
| 292 |
+
# Generate time series
|
| 293 |
+
scf_actual = pid_response(
|
| 294 |
+
t, scenario["scf_from"], scenario["scf_to"],
|
| 295 |
+
SETPOINT_CHANGE_AT_S, scf_settling,
|
| 296 |
+
ctrl["overshoot_factor"], scf_noise,
|
| 297 |
+
ctrl["has_scf_pid"], mat["disturbance_sensitivity"], rng
|
| 298 |
+
)
|
| 299 |
+
gw_actual = pid_response(
|
| 300 |
+
t, scenario["gw_from"], scenario["gw_to"],
|
| 301 |
+
SETPOINT_CHANGE_AT_S, gw_settling,
|
| 302 |
+
ctrl["overshoot_factor"] * 0.7, gw_noise,
|
| 303 |
+
ctrl["has_gw_pid"], mat["disturbance_sensitivity"], rng
|
| 304 |
+
)
|
| 305 |
+
|
| 306 |
+
# Clip to physical limits
|
| 307 |
+
scf_actual = np.clip(scf_actual, 0.5, 25.0)
|
| 308 |
+
gw_actual = np.clip(gw_actual, 0.5, 8.0)
|
| 309 |
+
|
| 310 |
+
# Roll speed: constant within a run (not PID-controlled here)
|
| 311 |
+
rs_setpoint = 3.0 + rng.uniform(-1, 1)
|
| 312 |
+
rs_actual = rs_setpoint + rng.normal(0, 0.02 * rs_setpoint, n_samples)
|
| 313 |
+
|
| 314 |
+
# Screw speed: varies if GW PID adjusts it
|
| 315 |
+
ss_base = 30.0 + rng.uniform(-5, 5)
|
| 316 |
+
if ctrl["has_gw_pid"]:
|
| 317 |
+
# Screw speed adapts inversely to gap error
|
| 318 |
+
gw_error = scenario["gw_to"] - gw_actual
|
| 319 |
+
ss_actual = ss_base + 5.0 * gw_error + rng.normal(0, 0.5, n_samples)
|
| 320 |
+
else:
|
| 321 |
+
ss_actual = ss_base + rng.normal(0, 0.3, n_samples)
|
| 322 |
+
|
| 323 |
+
# Store time-series (subsample to every 2s for manageable file size)
|
| 324 |
+
subsample = np.arange(0, n_samples, 4) # every 2 seconds
|
| 325 |
+
for idx in subsample:
|
| 326 |
+
timeseries_rows.append({
|
| 327 |
+
"run_id": run_id,
|
| 328 |
+
"time_s": round(t[idx], 1),
|
| 329 |
+
"scf_setpoint_kN_per_cm": scenario["scf_to"] if t[idx] >= SETPOINT_CHANGE_AT_S else scenario["scf_from"],
|
| 330 |
+
"scf_actual_kN_per_cm": round(scf_actual[idx], 3),
|
| 331 |
+
"gw_setpoint_mm": scenario["gw_to"] if t[idx] >= SETPOINT_CHANGE_AT_S else scenario["gw_from"],
|
| 332 |
+
"gw_actual_mm": round(gw_actual[idx], 4),
|
| 333 |
+
"roll_speed_rpm": round(rs_actual[idx], 2),
|
| 334 |
+
"screw_speed_rpm": round(ss_actual[idx], 1),
|
| 335 |
+
})
|
| 336 |
+
|
| 337 |
+
# Compute summary metrics
|
| 338 |
+
metrics = compute_run_metrics(
|
| 339 |
+
t, scf_actual, gw_actual,
|
| 340 |
+
scenario["scf_to"], scenario["gw_to"],
|
| 341 |
+
SETPOINT_CHANGE_AT_S
|
| 342 |
+
)
|
| 343 |
+
|
| 344 |
+
# Classify control quality
|
| 345 |
+
total_cv = metrics["scf_ss_cv_pct"] + metrics["gw_ss_cv_pct"]
|
| 346 |
+
if total_cv < 2.0 and metrics["scf_deviation_from_setpoint_pct"] < 1.0:
|
| 347 |
+
control_quality = "Excellent"
|
| 348 |
+
elif total_cv < 5.0 and metrics["scf_deviation_from_setpoint_pct"] < 3.0:
|
| 349 |
+
control_quality = "Good"
|
| 350 |
+
elif total_cv < 10.0:
|
| 351 |
+
control_quality = "Acceptable"
|
| 352 |
+
else:
|
| 353 |
+
control_quality = "Poor"
|
| 354 |
+
|
| 355 |
+
summary_rows.append({
|
| 356 |
+
"run_id": run_id,
|
| 357 |
+
"control_architecture": ctrl_key,
|
| 358 |
+
"control_label": ctrl["label"],
|
| 359 |
+
"feed_type": ctrl["feed_type"],
|
| 360 |
+
"has_scf_pid": ctrl["has_scf_pid"],
|
| 361 |
+
"has_gw_pid": ctrl["has_gw_pid"],
|
| 362 |
+
"material": mat_key,
|
| 363 |
+
"scenario": scenario["label"],
|
| 364 |
+
"scf_setpoint_kN_per_cm": scenario["scf_to"],
|
| 365 |
+
"gw_setpoint_mm": scenario["gw_to"],
|
| 366 |
+
**metrics,
|
| 367 |
+
"control_quality_grade": control_quality,
|
| 368 |
+
})
|
| 369 |
+
|
| 370 |
+
# =============================================================================
|
| 371 |
+
# SAVE
|
| 372 |
+
# =============================================================================
|
| 373 |
+
df_summary = pd.DataFrame(summary_rows)
|
| 374 |
+
df_timeseries = pd.DataFrame(timeseries_rows)
|
| 375 |
+
|
| 376 |
+
df_summary.to_csv("control_performance_summary_v1.0.csv", index=False)
|
| 377 |
+
df_timeseries.to_csv("control_performance_timeseries_v1.0.csv", index=False)
|
| 378 |
+
|
| 379 |
+
print(f"Summary: {len(df_summary)} runs, {len(df_summary.columns)} columns")
|
| 380 |
+
print(f"Time series: {len(df_timeseries)} rows, {len(df_timeseries.columns)} columns")
|
| 381 |
+
print()
|
| 382 |
+
print("=== Control quality distribution ===")
|
| 383 |
+
print(df_summary["control_quality_grade"].value_counts())
|
| 384 |
+
print()
|
| 385 |
+
print("=== Mean SCF CV% by architecture ===")
|
| 386 |
+
print(df_summary.groupby("control_architecture")["scf_ss_cv_pct"].mean().round(2))
|
| 387 |
+
print()
|
| 388 |
+
print("=== Mean GW CV% by architecture ===")
|
| 389 |
+
print(df_summary.groupby("control_architecture")["gw_ss_cv_pct"].mean().round(2))
|
| 390 |
+
print()
|
| 391 |
+
print("=== Mean SCF settling time by architecture ===")
|
| 392 |
+
print(df_summary.groupby("control_architecture")["scf_settling_time_s"].mean().round(1))
|