jsLPSolver
jsLPSolver copied to clipboard
Get some data in array
I have an array of 100 objects like: [{salary:1000, value: 20},{salary:1500, value: 18},{salary:1000, value: 5}...] Can I use this library to get 5 objects with some conditions:
- Total salary of 5 objects <= 6000
- Total value of 5 objects is maximum.