I am having difficulty calling glp_lpx_create_prob in the glpk48.dll from a VB
script. (I have no choice but to use VB script So I won't waste time and space
explaining why). The following fragment hopefully will be clear
' ==
Declare Function glp_lpx_create_prob Lib "glpk48.dll () As Object
nction in defined.
a+
> Message du 21/11/05 à 23h16> De : "Andrew Makhorin" <[EMAIL PROTECTED]>> A : "s chakhar" <[EMAIL PROTECTED]>> Copie à : help-glpk@gnu.org> Objet : Re: [Help-glpk] Re: help linking glpk with visual c++> > >> Solvin
I am have been using the VB implementation of GLPK for quite a while and I am
having the following problem. I write a problem in cplex format and load the
file as follows.
' load the problem from file
'
lp = glpk_read_cpxlp(sPath)
' Find Simplex solut
Hello,
I am interested in running GLPK on an ARM processor
(Marvell XScale cpu packaged in Gumstix computers).
I am guessing it should work OK, so I am just wondering
if anyone has been down this road already. I searched
the email archive and came up empty-handed.
Thanks for any info,
Robert Dod
I've got Windows 2000 and that's the only available platform. (I used
to have IBM AIX as well but that's another story.)
I did get cygwin and then gcc -- gcc appears to be running correctly.
I have used it for basic C programs.
To install glpk,
I went into cygwin
did
sh configure
th
gcc sample.c -lm -lglpk
Is there a binary glpsol somewhere in your installation directory?
That helped some -- it reduced the error messages to:
c:/djgpp/bin/ld.exe: cannot find -lglpk
collect2: ld returned 1 exit status
=
Thank you for your patience with a newbie.
When I do sh configure, I get a ton of messages back...some of which
might be of concern are:
checking whether we are cross-compiling... no
checking command to parse /cygdrive/c/djgpp/bin/nm -B output from gcc
object... failed
checking if gcc support
I have tried reinstalling cygwin and gcc. When I try to compile
gcc sample.c -lm -lglpk
(it is finding glpk this time)
I get:
undefined reference to __getreent (several times)
undefined reference to imp__ctype
I also tried installing qsopt from
http://www2.isye.gatech.edu/~wcook/qsopt/lib/C
OK I think I'm getting somewhere.
I altered my compile statement to
gcc sample.c -lm -lglpk -lcygwin
Now I get:
multiple definition of _malloc
multiple definition of _free
section .rdata overlaps section .text
No executable is produced.
Joe McCollum
Information Technology Specialist
Forest
ation Technology Specialist
Forest Inventory and Analysis
Knoxville TN 37919
-- "Ali Baharev" <[EMAIL PROTECTED]> wrote:
Is it important to use cygwin? There should be no trouble with other
native compilers.
Good luck!
Ali
On 7/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrot
Just to be sure...should I choose "Default text type" as UNIX or DOS?
I'm on a Windows 2000 machine.
Joe McCollum
FIA
-- Andrew Makhorin <[EMAIL PROTECTED]> wrote:
> If I put the -lcygwin in there, I get the multiple definition error.
> If I don't put the -lcy
Dang, I've tried reinstalling cygwin several times. Is there a way to
remove an object from a library? Maybe make my own libcygwin2.a,
minus the extra malloc, free, exit, or whateverI'll agree it's a
kludge, but it's the only way out I can see...
Joe McCollum
FIA
Knoxville, TN
___
Hello all,
I have the following problem: I have a parameter A with (3 indices) and a
decision variable X also with 3 indices (same matrix form). The idea is as
follows: Parameter A is the old matrix, X is the new matrix. Now I need to
be sure that at most 10 changes are made. So I would like to ha
three indices, this doesn't work.
I hope that you can help me out.
Regards
Original Message:
-
From: Andrew Makhorin [EMAIL PROTECTED]
Date: Tue, 7 Aug 2007 06:58:58 +0400
To: [EMAIL PROTECTED], help-glpk@gnu.org
Subject: Re: [Help-glpk] Compare two matrices
> I
It worked for me, maybe someone else can use it as well.
Kind regads,
Timo
Original Message:
-
From: Andrew Makhorin [EMAIL PROTECTED]
Date: Tue, 7 Aug 2007 14:48:59 +0400
To: [EMAIL PROTECTED], help-glpk@gnu.org
Subject: Re: [Help-glpk] Compare two matrices
> I am try
Hi Andrew,
Thank you very much for your detailed reply. I'd like to clarify a point
regarding the "max" bit, please scroll down.
Andrew Makhorin wrote:
I want to understand the use of "max" in MathProg and how to specify
"coordinates" in MathProg. I have written a small example to try this ou
I'm trying to install GLPK 4.25 on Windows PC. I have Microsoft Visual Studio
2008. How can I do that? Thank you.
___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk
Dear all,
I am working in C++ using Code::Blocks (under Windows) and I am trying to
get GLPK to run. I could only find information for other software, not for
Code::Blocks so I hope that someone could help me out...
I just need the sample.c file to work :)
I have downloaded GNUWin32, latest vers
Hi all.
As I am going to study a multiobjective problem, I need to
explore Pareto Front with weighted sum method. To improve quality and
speed of search it would be useful to get list of sensitivity bounds
for objective coefficients of variables.
If I "use
lpx_print_sens_bnds" routine I get a
you could give it a try.
I hope this helps.
Regards,
Timo
Original Message:
-
From: Jahnavi Prasad [EMAIL PROTECTED]
Date: Fri, 25 Jul 2008 02:18:20 +0400
To: help-glpk@gnu.org
Subject: [Help-glpk] Hi: Question. Please help.
Hi,
I am trying to use GLPK in a flux-balance ana
Dear all,
I am trying the following code in C++:
glp_prob *mip;
mip = glp_create_prob();
lpx_read_model("model.mod", "data.dat", "output.out");
lpx_simplex(mip);
lpx_integer(mip);
lpx_print_prob(mip, "problem.dat");
The program runs without errors and gives:
Reading model section fro
21 matches
Mail list logo