multi-munkres
Advanced tools
+8
-0
@@ -115,3 +115,11 @@ function _arrayWithHoles(arr) { | ||
| } | ||
| /** | ||
| * | ||
| * @param perSlot 每个空槽需要的人数 | ||
| * @param eachPerson 每个人对应每个空槽的cost | ||
| * @param personMax 每人能接受的最大空槽 | ||
| * @param max 最大不予安排的cost值 | ||
| */ | ||
| function multiMunkres() { | ||
@@ -118,0 +126,0 @@ var perSlot = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [1, 1, 2, 1, 1]; |
@@ -119,3 +119,11 @@ 'use strict'; | ||
| } | ||
| /** | ||
| * | ||
| * @param perSlot 每个空槽需要的人数 | ||
| * @param eachPerson 每个人对应每个空槽的cost | ||
| * @param personMax 每人能接受的最大空槽 | ||
| * @param max 最大不予安排的cost值 | ||
| */ | ||
| function multiMunkres() { | ||
@@ -122,0 +130,0 @@ var perSlot = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [1, 1, 2, 1, 1]; |
| declare function calCost(totalSlot: number[][], eachPerson: number[][]): number; | ||
| /** | ||
| * | ||
| * @param perSlot 每个空槽需要的人数 | ||
| * @param eachPerson 每个人对应每个空槽的cost | ||
| * @param personMax 每人能接受的最大空槽 | ||
| * @param max 最大不予安排的cost值 | ||
| */ | ||
| declare function multiMunkres(perSlot?: number[], eachPerson?: number[][], personMax?: number[], max?: number): any[][]; | ||
| export { calCost, multiMunkres }; |
+1
-2
| { | ||
| "name": "multi-munkres", | ||
| "version": "0.0.11", | ||
| "version": "0.0.12", | ||
| "description": "", | ||
@@ -30,3 +30,2 @@ "files": [ | ||
| "dependencies": { | ||
| "munkres-js": "^1.2.2" | ||
@@ -33,0 +32,0 @@ }, |
14504
4.62%369
6.03%