jvail / glpk.js

GLPK for browser & node
GNU General Public License v3.0
106 stars 19 forks source link

shift term #3

Closed Mauro-Avendano closed 4 years ago

Mauro-Avendano commented 4 years ago

Hello! how can I include the shift term in the model?

for example: max z = x1 + x2 + 10

I want to include the 10 constant in the model

Thanks!

jvail commented 4 years ago

Hi, I am not an LP expert but I'd guess that adding a constant term to the objective function would not make any difference and the result is the same. It is like solving the LP and adding 10 to the resulting z.

jvail commented 4 years ago

...