Commit b401934
committed
feat(ui): polish + warm-start toggles, expose new problem catalog
Solve page
- New 'Post-processing & warm-start' sidebar expander with two toggles:
* Greedy 1-flip polish (default ON, gracefully no-ops on Spin /
Categorical problems where Q_mat is unavailable).
* BFS 2-color warm-start (graph QUBOs only, falls back to random init
if the problem does not expose nx_graph / graph).
- Wire both into the qqa.anneal call via the new (initial_state=,
polish=) parameters.
- Score card now surfaces a 'pre-polish loss = ... (polish improved by
Δ)' badge whenever polish actually moved the needle, so users can
see the contribution at a glance.
- Run history snapshots both flags so the Visualize / Compare pages
see a faithful record of what produced each result.
Home page
- Register the new MinimumDominatingSet (Graph family) and
BalancedGraphPartition (Categorical / assignment) problems so the
UI catalog matches the CLI/Python API one-to-one.
- bgp uses the existing graph-degree slider plus a num_category
('partitions K') and a balance-penalty slider.
_common
- build_problem dispatches the two new kinds.
- render_score_card grows an optional pre_polish_loss kwarg.
Tests
- Add three AppTest regressions: the Solve sidebar must expose both
toggles with the documented defaults, the Home catalog must list
Minimum Dominating Set and Balanced Graph Partition, and the full
Solve flow must succeed end-to-end on min_dominating_set.
Made-with: Cursor1 parent eef8902 commit b401934
4 files changed
Lines changed: 216 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
896 | | - | |
897 | | - | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
898 | 917 | | |
899 | 918 | | |
900 | 919 | | |
| |||
908 | 927 | | |
909 | 928 | | |
910 | 929 | | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
911 | 942 | | |
912 | 943 | | |
913 | 944 | | |
914 | 945 | | |
915 | 946 | | |
916 | 947 | | |
| 948 | + | |
917 | 949 | | |
918 | 950 | | |
919 | 951 | | |
| |||
951 | 983 | | |
952 | 984 | | |
953 | 985 | | |
954 | | - | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
955 | 996 | | |
956 | 997 | | |
957 | 998 | | |
| |||
1054 | 1095 | | |
1055 | 1096 | | |
1056 | 1097 | | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1057 | 1108 | | |
1058 | 1109 | | |
1059 | 1110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 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 | + | |
173 | 203 | | |
174 | 204 | | |
175 | 205 | | |
| |||
444 | 474 | | |
445 | 475 | | |
446 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
447 | 495 | | |
448 | 496 | | |
449 | 497 | | |
| |||
457 | 505 | | |
458 | 506 | | |
459 | 507 | | |
| 508 | + | |
| 509 | + | |
460 | 510 | | |
461 | 511 | | |
462 | 512 | | |
| |||
468 | 518 | | |
469 | 519 | | |
470 | 520 | | |
471 | | - | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
472 | 528 | | |
473 | 529 | | |
474 | | - | |
| 530 | + | |
475 | 531 | | |
476 | 532 | | |
477 | 533 | | |
| |||
484 | 540 | | |
485 | 541 | | |
486 | 542 | | |
| 543 | + | |
| 544 | + | |
487 | 545 | | |
488 | 546 | | |
489 | 547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
184 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
185 | 194 | | |
186 | 195 | | |
187 | 196 | | |
188 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
189 | 204 | | |
190 | 205 | | |
191 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
395 | 481 | | |
396 | 482 | | |
397 | 483 | | |
| |||
0 commit comments