Constructor
new KnapsackGenerator(params)
Class constructor
Parameters:
Name | Type | Description |
---|---|---|
params |
object | parameters of the generated instance |
- Source:
Methods
_fixedSumArray() → {array}
Generate random array with fixed sum
- Source:
Returns:
array with fixed sum of values
- Type
- array
generate() → {String}
Generate instance based on parameters
- Source:
Returns:
instance of knapsack problem coded as String
- Type
- String