[Help-glpk] Calling GLPK from VB scripts

2005-05-23 Thread [EMAIL PROTECTED]
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

Re: [Help-glpk] Re: help linking glpk with visual c++

2005-12-06 Thread [EMAIL PROTECTED]
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

[Help-glpk] glpk49vb

2006-07-24 Thread [EMAIL PROTECTED]
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

[Help-glpk] GLPK on ARM processor?

2007-06-18 Thread [EMAIL PROTECTED]
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

[Help-glpk] How do I see if glpk is installed correctly?

2007-07-16 Thread [EMAIL PROTECTED]
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

Re: [Help-glpk] How do I see if glpk is installed correctly?

2007-07-17 Thread [EMAIL PROTECTED]
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 =

Re: [Help-glpk] How do I see if glpk is installed correctly?

2007-07-17 Thread [EMAIL PROTECTED]
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

[Help-glpk] undefined reference to __getreent()?

2007-07-21 Thread [EMAIL PROTECTED]
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

[Help-glpk] Re: Help-glpk Digest, Vol 56, Issue 19

2007-07-23 Thread [EMAIL PROTECTED]
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

Re: [Help-glpk] Re: Help-glpk Digest, Vol 56, Issue 19

2007-07-24 Thread [EMAIL PROTECTED]
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

Re: [Help-glpk] Re: Help-glpk Digest, Vol 56, Issue 19

2007-07-24 Thread [EMAIL PROTECTED]
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

Re: [Help-glpk] Re: Help-glpk Digest, Vol 56, Issue 19

2007-07-24 Thread [EMAIL PROTECTED]
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 ___

[Help-glpk] Compare two matrices

2007-08-06 Thread [EMAIL PROTECTED]
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

Re: [Help-glpk] Compare two matrices

2007-08-07 Thread [EMAIL PROTECTED]
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

Re: [Help-glpk] Compare two matrices

2007-08-07 Thread [EMAIL PROTECTED]
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

Re: [Help-glpk] subspace problem

2008-02-08 Thread [EMAIL PROTECTED]
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

[Help-glpk] how to install GLPK 4.25 on Windows PC

2008-02-12 Thread [EMAIL PROTECTED]
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

[Help-glpk] GLPK with Code::Blocks

2008-06-25 Thread [EMAIL PROTECTED]
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

[Help-glpk] Write Sensitivity Bounds

2008-07-01 Thread [EMAIL PROTECTED]
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

RE: [Help-glpk] Hi: Question. Please help.

2008-07-25 Thread [EMAIL PROTECTED]
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

[Help-glpk] problem with lpx_read_model

2008-08-06 Thread [EMAIL PROTECTED]
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