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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
{
  "metadata": {
    "timestamp": "2026-09-11 17:39:39",
    "total_steps": 100,
    "step_disturbance_step": 30,
    "target_latency_ms": 1.2
  },
  "controllers": {
    "PID_Dual_Controller": {
      "settling_steps_post_disturbance": 70,
      "violation_rate_pct": 64.29,
      "max_overshoot_pct": 35.67,
      "steady_state_error_ms": 0.4932,
      "mean_rank_post_disturbance": 2.93,
      "history_sample": [
        {
          "step": 1,
          "seq_len": 32,
          "chosen_rank": 4,
          "measured_latency_ms": 0.91,
          "target_latency_ms": 1.2,
          "error": -0.29,
          "lambda_latency": 0.9681
        },
        {
          "step": 11,
          "seq_len": 32,
          "chosen_rank": 4,
          "measured_latency_ms": 0.891,
          "target_latency_ms": 1.2,
          "error": -0.309,
          "lambda_latency": 0.355
        },
        {
          "step": 21,
          "seq_len": 32,
          "chosen_rank": 4,
          "measured_latency_ms": 0.929,
          "target_latency_ms": 1.2,
          "error": -0.271,
          "lambda_latency": 0.05
        },
        {
          "step": 31,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.579,
          "target_latency_ms": 1.2,
          "error": 0.379,
          "lambda_latency": 0.05
        },
        {
          "step": 41,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.606,
          "target_latency_ms": 1.2,
          "error": 0.406,
          "lambda_latency": 0.0766
        },
        {
          "step": 51,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.598,
          "target_latency_ms": 1.2,
          "error": 0.398,
          "lambda_latency": 0.6596
        },
        {
          "step": 61,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.582,
          "target_latency_ms": 1.2,
          "error": 0.382,
          "lambda_latency": 1.9008
        },
        {
          "step": 71,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.598,
          "target_latency_ms": 1.2,
          "error": 0.398,
          "lambda_latency": 3.215
        },
        {
          "step": 81,
          "seq_len": 128,
          "chosen_rank": 1,
          "measured_latency_ms": 0.703,
          "target_latency_ms": 1.2,
          "error": -0.497,
          "lambda_latency": 3.8861
        },
        {
          "step": 91,
          "seq_len": 128,
          "chosen_rank": 1,
          "measured_latency_ms": 0.709,
          "target_latency_ms": 1.2,
          "error": -0.491,
          "lambda_latency": 3.3584
        }
      ]
    },
    "P_Only_Controller": {
      "settling_steps_post_disturbance": 70,
      "violation_rate_pct": 82.86,
      "max_overshoot_pct": 35.75,
      "steady_state_error_ms": 0.4175,
      "mean_rank_post_disturbance": 3.49,
      "history_sample": [
        {
          "step": 1,
          "seq_len": 32,
          "chosen_rank": 1,
          "measured_latency_ms": 0.372,
          "target_latency_ms": 1.2,
          "error": -0.828,
          "lambda_latency": 0.9337
        },
        {
          "step": 11,
          "seq_len": 32,
          "chosen_rank": 4,
          "measured_latency_ms": 0.862,
          "target_latency_ms": 1.2,
          "error": -0.338,
          "lambda_latency": 0.6921
        },
        {
          "step": 21,
          "seq_len": 32,
          "chosen_rank": 4,
          "measured_latency_ms": 0.916,
          "target_latency_ms": 1.2,
          "error": -0.284,
          "lambda_latency": 0.4587
        },
        {
          "step": 31,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.56,
          "target_latency_ms": 1.2,
          "error": 0.36,
          "lambda_latency": 0.2713
        },
        {
          "step": 41,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.596,
          "target_latency_ms": 1.2,
          "error": 0.396,
          "lambda_latency": 0.5824
        },
        {
          "step": 51,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.596,
          "target_latency_ms": 1.2,
          "error": 0.396,
          "lambda_latency": 0.8945
        },
        {
          "step": 61,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.572,
          "target_latency_ms": 1.2,
          "error": 0.372,
          "lambda_latency": 1.2079
        },
        {
          "step": 71,
          "seq_len": 128,
          "chosen_rank": 1,
          "measured_latency_ms": 0.689,
          "target_latency_ms": 1.2,
          "error": -0.511,
          "lambda_latency": 1.3141
        },
        {
          "step": 81,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.604,
          "target_latency_ms": 1.2,
          "error": 0.404,
          "lambda_latency": 1.423
        },
        {
          "step": 91,
          "seq_len": 128,
          "chosen_rank": 1,
          "measured_latency_ms": 0.698,
          "target_latency_ms": 1.2,
          "error": -0.502,
          "lambda_latency": 1.4477
        }
      ]
    },
    "Fixed_Multiplier": {
      "settling_steps_post_disturbance": 70,
      "violation_rate_pct": 100.0,
      "max_overshoot_pct": 36.17,
      "steady_state_error_ms": 0.3943,
      "mean_rank_post_disturbance": 4.0,
      "history_sample": [
        {
          "step": 1,
          "seq_len": 32,
          "chosen_rank": 4,
          "measured_latency_ms": 0.907,
          "target_latency_ms": 1.2,
          "error": -0.293,
          "lambda_latency": 1.0
        },
        {
          "step": 11,
          "seq_len": 32,
          "chosen_rank": 4,
          "measured_latency_ms": 0.911,
          "target_latency_ms": 1.2,
          "error": -0.289,
          "lambda_latency": 1.0
        },
        {
          "step": 21,
          "seq_len": 32,
          "chosen_rank": 4,
          "measured_latency_ms": 0.946,
          "target_latency_ms": 1.2,
          "error": -0.254,
          "lambda_latency": 1.0
        },
        {
          "step": 31,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.577,
          "target_latency_ms": 1.2,
          "error": 0.377,
          "lambda_latency": 1.0
        },
        {
          "step": 41,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.575,
          "target_latency_ms": 1.2,
          "error": 0.375,
          "lambda_latency": 1.0
        },
        {
          "step": 51,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.566,
          "target_latency_ms": 1.2,
          "error": 0.366,
          "lambda_latency": 1.0
        },
        {
          "step": 61,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.573,
          "target_latency_ms": 1.2,
          "error": 0.373,
          "lambda_latency": 1.0
        },
        {
          "step": 71,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.62,
          "target_latency_ms": 1.2,
          "error": 0.42,
          "lambda_latency": 1.0
        },
        {
          "step": 81,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.593,
          "target_latency_ms": 1.2,
          "error": 0.393,
          "lambda_latency": 1.0
        },
        {
          "step": 91,
          "seq_len": 128,
          "chosen_rank": 4,
          "measured_latency_ms": 1.587,
          "target_latency_ms": 1.2,
          "error": 0.387,
          "lambda_latency": 1.0
        }
      ]
    },
    "Static_Heuristic": {
      "settling_steps_post_disturbance": 70,
      "violation_rate_pct": 100.0,
      "max_overshoot_pct": 124.67,
      "steady_state_error_ms": 1.4516,
      "mean_rank_post_disturbance": 8.0,
      "history_sample": [
        {
          "step": 1,
          "seq_len": 32,
          "chosen_rank": 8,
          "measured_latency_ms": 1.483,
          "target_latency_ms": 1.2,
          "error": 0.283,
          "lambda_latency": 1.0
        },
        {
          "step": 11,
          "seq_len": 32,
          "chosen_rank": 8,
          "measured_latency_ms": 1.496,
          "target_latency_ms": 1.2,
          "error": 0.296,
          "lambda_latency": 1.0
        },
        {
          "step": 21,
          "seq_len": 32,
          "chosen_rank": 8,
          "measured_latency_ms": 1.502,
          "target_latency_ms": 1.2,
          "error": 0.302,
          "lambda_latency": 1.0
        },
        {
          "step": 31,
          "seq_len": 128,
          "chosen_rank": 8,
          "measured_latency_ms": 2.652,
          "target_latency_ms": 1.2,
          "error": 1.452,
          "lambda_latency": 1.0
        },
        {
          "step": 41,
          "seq_len": 128,
          "chosen_rank": 8,
          "measured_latency_ms": 2.636,
          "target_latency_ms": 1.2,
          "error": 1.436,
          "lambda_latency": 1.0
        },
        {
          "step": 51,
          "seq_len": 128,
          "chosen_rank": 8,
          "measured_latency_ms": 2.658,
          "target_latency_ms": 1.2,
          "error": 1.458,
          "lambda_latency": 1.0
        },
        {
          "step": 61,
          "seq_len": 128,
          "chosen_rank": 8,
          "measured_latency_ms": 2.662,
          "target_latency_ms": 1.2,
          "error": 1.462,
          "lambda_latency": 1.0
        },
        {
          "step": 71,
          "seq_len": 128,
          "chosen_rank": 8,
          "measured_latency_ms": 2.652,
          "target_latency_ms": 1.2,
          "error": 1.452,
          "lambda_latency": 1.0
        },
        {
          "step": 81,
          "seq_len": 128,
          "chosen_rank": 8,
          "measured_latency_ms": 2.635,
          "target_latency_ms": 1.2,
          "error": 1.435,
          "lambda_latency": 1.0
        },
        {
          "step": 91,
          "seq_len": 128,
          "chosen_rank": 8,
          "measured_latency_ms": 2.634,
          "target_latency_ms": 1.2,
          "error": 1.434,
          "lambda_latency": 1.0
        }
      ]
    }
  }
}