linear programming - How can i send an query from java to lpsolve as String -


hi formulated linear programing problem using java

and want send solved lpsolve without need create each constraint seperatlly.

i want send entire block (which if insert ide works well) , result

so instead of using like

problem.straddconstraint("", lpsolve.eq, 9); problem.straddconstraint("", lpsolve.le, 5); 

i want send 1 string

min: 0*x11 + 0*x12 + 0*x13  x11 + x12 + x13= 9; x12 + x12<5; 

can done if how?

lpsolve supports lp files mps files. thoroughly detailed in api documentation (see http://lpsolve.sourceforge.net/5.5/).

you can job in java :

lp = lpsolve.readlp("model.lp", normal, "test model"); lpsolve.solve(lp) 

what sad file based approaches not able use warm start features. not suggest use such approach if want optimize successive similar problems.

cheers


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -