[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] [Fwd: VBA dll call]
From: |
Heinrich Schuchardt |
Subject: |
Re: [Help-glpk] [Fwd: VBA dll call] |
Date: |
Thu, 5 Jan 2017 16:52:30 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
Hello Curtis,
please, find appended two examples.
Please, load the module files to your VBA project.
glpk.bas contains the library definitions. You will have to adjust the
path to the glpk libary.
lp.bas contains a linear problem.
mip.bas contains a mixed integer problem.
The definitions assume that you are using a 32bit system. Cf.
https://support.office.com/en-us/article/What-version-of-Office-am-I-using-932788b8-a3ce-44bf-bb09-e334518b8b19
Best regards
Heinrich Schuchardt
On 01/04/2017 10:40 PM, Andrew Makhorin wrote:
> -------- Forwarded Message --------
> To: address@hidden <address@hidden>
> Subject: VBA dll call
> Date: Wed, 4 Jan 2017 19:34:29 +0000
>
> Hello,
>
> I have been working with the GLPK API. I can get most of the functions
> working except when it comes to matrices.
>
> I am trying to fill up the constraint matrix, and it errors out and
> shuts down Excel.
>
> Are there any obvious mistakes?>
> Thanks for all of your hard work,
>
> Curtis Passorelli
glpk.bas.txt
Description: Text document
lp.bas.txt
Description: Text document
mip.bas.txt
Description: Text document
[Help-glpk] Compiling GLPK with stdcall calling convention, Heinrich Schuchardt, 2017/01/07
- Re: [Help-glpk] Compiling GLPK with stdcall calling convention, Andrew Makhorin, 2017/01/08
- Re: [Help-glpk] Compiling GLPK with stdcall calling convention, Andrew Makhorin, 2017/01/08
- Re: [Help-glpk] Compiling GLPK with stdcall calling convention, Heinrich Schuchardt, 2017/01/08
- Re: [Help-glpk] Compiling GLPK with stdcall calling convention, Heinrich Schuchardt, 2017/01/08
- Re: [Help-glpk] Compiling GLPK with stdcall calling convention, Andrew Makhorin, 2017/01/08
- Re: [Help-glpk] Compiling GLPK with stdcall calling convention, Heinrich Schuchardt, 2017/01/08
- Re: [Help-glpk] Compiling GLPK with stdcall calling convention, Andrew Makhorin, 2017/01/08