jsLPSolver icon indicating copy to clipboard operation
jsLPSolver copied to clipboard

Get some data in array

Open ManhVuTien opened this issue 3 years ago • 0 comments

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.

ManhVuTien avatar Jan 12 '22 12:01 ManhVuTien