@tscircuit/capacity-autorouter 0.0.240 → 0.0.241
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 +27 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1840,7 +1840,11 @@ interface CreatePortPointSectionInput {
|
|
|
1840
1840
|
connectionResults?: ConnectionPathResult[];
|
|
1841
1841
|
}
|
|
1842
1842
|
|
|
1843
|
+
type HyperParameterScheduleEntry = PortPointPathingHyperParameters & {
|
|
1844
|
+
EXPANSION_DEGREES: number;
|
|
1845
|
+
};
|
|
1843
1846
|
interface MultiSectionPortPointOptimizerParams {
|
|
1847
|
+
JUMPER_PF_FN_ENABLED?: boolean;
|
|
1844
1848
|
simpleRouteJson: SimpleRouteJson;
|
|
1845
1849
|
inputNodes: InputNodeWithPortPoints[];
|
|
1846
1850
|
capacityMeshNodes: CapacityMeshNode[];
|
|
@@ -1866,6 +1870,21 @@ interface MultiSectionPortPointOptimizerParams {
|
|
|
1866
1870
|
* even if they would otherwise be kept due to FRACTION_TO_REPLACE.
|
|
1867
1871
|
*/
|
|
1868
1872
|
ALWAYS_RIP_INTERSECTIONS?: boolean;
|
|
1873
|
+
/**
|
|
1874
|
+
* Maximum number of attempts to fix a single node before moving on.
|
|
1875
|
+
* Default is 100.
|
|
1876
|
+
*/
|
|
1877
|
+
MAX_ATTEMPTS_PER_NODE?: number;
|
|
1878
|
+
/**
|
|
1879
|
+
* Maximum total number of section optimization attempts.
|
|
1880
|
+
* Default is 500.
|
|
1881
|
+
*/
|
|
1882
|
+
MAX_SECTION_ATTEMPTS?: number;
|
|
1883
|
+
/**
|
|
1884
|
+
* Custom hyperparameter schedule for optimization.
|
|
1885
|
+
* Each entry defines parameters for one optimization attempt.
|
|
1886
|
+
*/
|
|
1887
|
+
HYPERPARAMETER_SCHEDULE?: HyperParameterScheduleEntry[];
|
|
1869
1888
|
}
|
|
1870
1889
|
/**
|
|
1871
1890
|
* MultiSectionPortPointOptimizer runs local optimization on sections of the
|
|
@@ -1920,6 +1939,7 @@ declare class MultiSectionPortPointOptimizer extends BaseSolver {
|
|
|
1920
1939
|
* Default 1 means rip all connections. Values less than 1 keep some traces.
|
|
1921
1940
|
*/
|
|
1922
1941
|
FRACTION_TO_REPLACE: number;
|
|
1942
|
+
JUMPER_PF_FN_ENABLED: boolean;
|
|
1923
1943
|
/**
|
|
1924
1944
|
* If true, always rip connections that have same-layer intersections,
|
|
1925
1945
|
* even if they would otherwise be kept due to FRACTION_TO_REPLACE.
|
|
@@ -1930,6 +1950,8 @@ declare class MultiSectionPortPointOptimizer extends BaseSolver {
|
|
|
1930
1950
|
*/
|
|
1931
1951
|
ALWAYS_RIP_INTERSECTIONS: boolean;
|
|
1932
1952
|
effort: number;
|
|
1953
|
+
/** Hyperparameter schedule for optimization attempts */
|
|
1954
|
+
HYPERPARAMETER_SCHEDULE: HyperParameterScheduleEntry[];
|
|
1933
1955
|
constructor(params: MultiSectionPortPointOptimizerParams);
|
|
1934
1956
|
/**
|
|
1935
1957
|
* Compute initial Pf map for all nodes
|
|
@@ -1939,6 +1961,11 @@ declare class MultiSectionPortPointOptimizer extends BaseSolver {
|
|
|
1939
1961
|
* Compute the score for the ENTIRE board (all nodes with port points).
|
|
1940
1962
|
*/
|
|
1941
1963
|
computeBoardScore(): number;
|
|
1964
|
+
/**
|
|
1965
|
+
* Compute score for a set of nodes, using the appropriate scoring function
|
|
1966
|
+
* based on JUMPER_PF_FN_ENABLED.
|
|
1967
|
+
*/
|
|
1968
|
+
computeScoreForNodes(nodesWithPortPoints: NodeWithPortPoints[]): number;
|
|
1942
1969
|
/**
|
|
1943
1970
|
* Recompute Pf for nodes in a section
|
|
1944
1971
|
*/
|