1

I'm flashing a board where I need to use an algorithm that maximize an expression like s = c1*x1 + c2*x2 + c3*x3 + c4*x4 subject to some constraints.

For example Maximize p = x+y subject to x+y <= 2, 3x+y >= 4 Optimal Solution: p = 2; x = 1, y = 1

there is a free code to use somewhere?

Thank you

rpax
  • 4,468
  • 7
  • 33
  • 57
Temato
  • 11
  • 2

1 Answers1

0

GLPK library is what you need.

robinchm
  • 109
  • 1
  • 1
  • 7