Questions tagged [lpsolve]

lp_solve is a free linear (integer) programming solver. The solver is a callable library written in ANSI C.

lp_solve is a free (see LGPL for the GNU lesser general public license) linear (integer) programming solver based on the revised simplex method and the Branch-and-bound method for the integers.

lp_solve solves pure linear, (mixed) integer/binary, semi-continuous and special ordered sets (SOS) models.

It can also be called as a library from different languages like C, VB, .NET, Delphi, Excel, Java, ... It can also be called from AMPL, MATLAB, O-Matrix, Scilab, Octave, R via a driver program. lp_solve is written in ANSI C and can be compiled on many different platforms like linux and WINDOWS.

More details, including an FAQ, and an intro to lp_solve can be found here.

271 questions
0
votes
2 answers

Integrating Qt C++ with lp_solve - compiler error

In my project I have to solve an Integer Linear Programming problem, so I have decided to integrate lp_solve solver package with Qt 4.8.4 mingw32 compiler on my Windows 7 Platform. I am statically compiling my standalone Qt application. I have…
Abhishek Bansal
  • 12,589
  • 4
  • 31
  • 46
0
votes
1 answer

Linear programming (lpSolve) error using Big Data in R

I trying to optimize my model with 30000 variables and 1700 contraints, but i got this error´s when i put some more contraints. n<-lp ("max", f.obj, f.con, f.dir, f.rhs)$solution Error: cannot allocate vector of size 129.9 Mb I´m working in win 32…
Forstools
  • 15
  • 3
0
votes
1 answer

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

Hi i formulated a linear programing problem using java and i want to send it to be solved by lpsolve without the need to create each constraint seperatlly. i want to send the entire block (which if i insert it to the ide works well) and get a…
Gabriel H
  • 1,558
  • 2
  • 14
  • 35
0
votes
1 answer

Lpsolve installing problems. OSX

I'm trying to install lpsolve using this: http://jeyroz.tumblr.com/post/605709794/lpsolve-php So, I'm trying to execute commands: $ phpize $ ./configure --enable-maintainer-zts --with-phplpsolve[version]=../.. $ make $ make test When I execute…
Sergey Scopin
  • 2,217
  • 9
  • 39
  • 67
0
votes
1 answer

How to set a free variable with lp_solve and Java wrapper

I do not understand how to set free variables in a LP problem that I am trying to solve with lp_solve and the Java wrapper. I use the method public void setUnbounded(int colnr) throws LpSolveException that from javadocs…
Jack
  • 1,066
  • 2
  • 10
  • 22
0
votes
1 answer

Why does lp_solve fail on trivial instance?

I'm trying to solve instances like the following with lp-solve /* Objective function */ min: +x; /* Constraints */ +2046853249 x +2046853248 y +c = 0; +1954481150 x +1954481149 y +c = 0; R3: +x >= 1; /* Variable bounds */ -10000 <= x <=…
Holger Watt
  • 175
  • 8
0
votes
1 answer

How to set Sensitivity to "true" in LpSolve

I'm looking to enable sensitivity in LpSolve (http://lpsolve.sourceforge.net/5.5/sensitivity.htm). The docs indicate that you enable sensitivity by passing -S4 to the command line. In R, you can pass compute.sens=true in the lpsolve() function…
marc esher
  • 4,871
  • 3
  • 36
  • 51
-1
votes
1 answer

How to get multiple BFS using lpsolve

I'm trying to use lpsolve IDE to solve LPs with multiple BFS, however only one solution is generated. What should I do? min 2x1 + 4x2 + 7x3 st 2x1 + x2 + 6x3 >= 5 4x1 - 6x2 + 5x3 >= 8 x1 >= 0 x2 >= 0 I only get x1 = 2.5, x2 = x3 = 0 But there are…
Clara
  • 1
-1
votes
1 answer

Minimising objective function problem using lpsolve in R

I'm tackling a simple linear optimisation problem. I have a bunch of crops with have their associated land requirements per tonne and their water footprints per tonne. I want to know how many tonnes of each crop I need in order to minimise the water…
Zara Liew
  • 1
  • 3
-1
votes
1 answer

LPSolve IDE cannot find solution

I have following problem that I try to solve with LPSolve IDE: min: x1; r_1: 1.08 - k <= x1; r_2: -1.08 + k <= x1; c_1: y1 + y2 + y3 = k; c_2: 2.29 a1 y1 + 2.28 a2 y1 + 2.27 a3 y1 = 1; c_3: 1.88 b1 y2 + 1.89 b2 y2 + 1.9 b3 y2 = 1; c_4: 8.98 c1 y3 +…
Bojan Vukasovic
  • 2,054
  • 22
  • 43
-1
votes
1 answer

Linear Programming in R: A car company produces 3 models

A car company produces 3 models, model A / B / C. Long-term projections indicate an expected demand of at least 100 model A cars, 80 model B cars and 120 model C cars each day. Because of limitations on production capacity, no more than 200 model A…
daisy
  • 11
-1
votes
1 answer

How to use the result of lp() as a value

I am using the lp() function, but would like to use the optimal parameter as an input for following functions. Is there a way to get them?
Miss Swiss
  • 89
  • 1
  • 9
-1
votes
1 answer

How to get solution report from lp_select gem (lpsolve)

Thank you for your time. I couldn't find how to get variables values after the solution. Make a three row five column equation @lp = LPSolve::make_lp(3, 5) Set some column names LPSolve::set_col_name(@lp, 1, "fred") LPSolve::set_col_name(@lp,…
-1
votes
1 answer

How to create decision variables in R for linear programming?

How should i create a list of n variables indexed by nth index(string - key) For example X['one'] should be treated as decision variable with index value 'one'. After creating the decision variable - Assuming there are two decision variables X(list…
-1
votes
1 answer

How to use lpsolve from python in Windows 64bit

I tried couple of ways to do it but I am finally not able to find the exact way to use lpsolve in python. I referred to this post but somehow I could not get lp_solve55.pyd. Currently I have the lp_solve55.dll, how should I go further from there?
ayush singhal
  • 1,879
  • 2
  • 18
  • 33
1 2 3
18
19