is there
any parallel implementation of GLPK? My other 23 cores are sitting
idle.]
Currently not.
I'm having troubles while trying to get the solution variables via C
API. Below is the code I use in my program:
return (int) glp_get_col_prim(lp, i);
Please note that glp_get_col_prim
I'm having troubles while trying to get the solution variables via C
API. Below is the code I use in my program:
return (int) glp_get_col_prim(lp, i);
Please note that glp_get_col_prim returns a floating-point value, so
it would be better to write:
return (int)
Hi,
On Thu, 22 Apr 2010, Andrew Makhorin m...@gnu.org writes:
Most likely your instance has multiple optima, so your program finds
one optimal solution while glpsol finds another. As you can see the
optimal objective value is the same in both cases.
Note that to solve mip you need to call
OTOH, please excuse my ignorance, but assuming all
my variables are marked as binary in CPLEX LP file, do I really need to
call glp_intopt() after glp_simplex() even if glp_get_status(lp) ==
GLP_OPT assertion holds?
Yes. Glp_simplex solves lp relaxation, i.e. it considers all integer
Hi,
I'm trying to solve shortest path problem using glpsol and mps format. I
have it working correct with one example but I'm getting wrong results
with another one and I can't understand if there's something wrong with
my input or if it's glpsol that gives wrong output.
My directed graph
I'm trying to solve shortest path problem using glpsol and mps format. I
have it working correct with one example but I'm getting wrong results
with another one and I can't understand if there's something wrong with
my input or if it's glpsol that gives wrong output.
My directed graph is the
Let me put it more directly:
I replaced glpenv02.c with the version someone posted as being
thread-safe. ./configure worked fine, but make yielded:
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o glpsol
glpsol.o ../src/libglpk.la -lm -L/usr/include/
libtool: link: gcc -g -O2
Pthread_getspecific and pthread_setspecific are part of the pthread
library. On Linux you probably need to specify -lpthread along with
other options passed to gcc and libtool.
So, um, where/how do I put that in?
make LIBS=-lpthread
___