@tscircuit/capacity-autorouter 0.0.74 → 0.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -616,6 +616,7 @@ declare class HyperParameterSupervisorSolver<T extends BaseSolver> extends BaseS
|
|
|
616
616
|
GREEDY_MULTIPLIER: number;
|
|
617
617
|
MIN_SUBSTEPS: number;
|
|
618
618
|
supervisedSolvers?: Array<SupervisedSolver<T>>;
|
|
619
|
+
winningSolver?: T;
|
|
619
620
|
getHyperParameterDefs(): Array<HyperParameterDef>;
|
|
620
621
|
getCombinationDefs(): Array<Array<string>> | null;
|
|
621
622
|
getHyperParameterCombinations(hyperParameterDefs?: Array<HyperParameterDef>): Array<Record<string, any>>;
|
package/dist/index.js
CHANGED
|
@@ -4019,6 +4019,7 @@ var HyperParameterSupervisorSolver = class extends BaseSolver {
|
|
|
4019
4019
|
GREEDY_MULTIPLIER = 1.2;
|
|
4020
4020
|
MIN_SUBSTEPS = 1;
|
|
4021
4021
|
supervisedSolvers;
|
|
4022
|
+
winningSolver;
|
|
4022
4023
|
getHyperParameterDefs() {
|
|
4023
4024
|
throw new Error("Not implemented");
|
|
4024
4025
|
}
|
|
@@ -4117,6 +4118,7 @@ var HyperParameterSupervisorSolver = class extends BaseSolver {
|
|
|
4117
4118
|
supervisedSolver.f = this.computeF(supervisedSolver.g, supervisedSolver.h);
|
|
4118
4119
|
if (supervisedSolver.solver.solved) {
|
|
4119
4120
|
this.solved = true;
|
|
4121
|
+
this.winningSolver = supervisedSolver.solver;
|
|
4120
4122
|
this.onSolve?.(supervisedSolver);
|
|
4121
4123
|
}
|
|
4122
4124
|
}
|
|
@@ -8946,7 +8948,7 @@ var HyperSingleIntraNodeSolver = class extends HyperParameterSupervisorSolver {
|
|
|
8946
8948
|
}
|
|
8947
8949
|
getCombinationDefs() {
|
|
8948
8950
|
return [
|
|
8949
|
-
["closedFormTwoTrace"],
|
|
8951
|
+
// ["closedFormTwoTrace"],
|
|
8950
8952
|
["multiHeadPolyLine"],
|
|
8951
8953
|
["majorCombinations", "orderings6", "cellSizeFactor"],
|
|
8952
8954
|
["noVias"],
|
|
@@ -13337,7 +13339,6 @@ var CapacityPathingSingleSectionPathingSolver = CapacityPathingSingleSectionSolv
|
|
|
13337
13339
|
var range = (n) => Array.from({ length: n }, (_, i) => i);
|
|
13338
13340
|
var HyperCapacityPathingSingleSectionSolver = class extends HyperParameterSupervisorSolver {
|
|
13339
13341
|
constructorParams;
|
|
13340
|
-
winningSolver;
|
|
13341
13342
|
constructor(params) {
|
|
13342
13343
|
super();
|
|
13343
13344
|
this.MAX_ITERATIONS = 1e5;
|