help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Integrating GNU GPLK with .NET


From: Nigel Galloway
Subject: Re: [Help-glpk] Integrating GNU GPLK with .NET
Date: Fri, 08 Jan 2010 15:05:12 +0000

Attached is t1.vb which is glpk/examples/t1.cs converted from C# to Visual
Basic.
C:\Users\Nigel\DevVB>
C:\Users\Nigel\DevVB>vbc t1.vb
Microsoft (R) Visual Basic Compiler version 9.0.30729.1
Copyright (c) Microsoft Corporation.  All rights reserved.


C:\Users\Nigel\DevVB>t1 2424 772
a = 2424, b = 772
Hello Nigel
Trying 772
       0: obj =  0.000000000e+000  infeas = 1.000e+000 (0)
*     1: obj =  0.000000000e+000  infeas = 0.000e+000 (0)
OPTIMAL SOLUTION FOUND
Integer optimization begins...
+     1: mip =     not found yet >=              -inf        (1; 0)
+     3: >>>>>  0.000000000e+000 >=  0.000000000e+000   0.0% (3; 0)
+     3: mip =  0.000000000e+000 >=     tree is empty   0.0% (0; 5)
INTEGER OPTIMAL SOLUTION FOUND
x = 1, y = -3, a*x + b*y = 108
Trying 108
*     3: obj =  0.000000000e+000  infeas = 0.000e+000 (0)
OPTIMAL SOLUTION FOUND
Integer optimization begins...
+     3: mip =     not found yet >=              -inf        (1; 0)
+     7: >>>>>  0.000000000e+000 >=  0.000000000e+000   0.0% (3; 1)
+     7: mip =  0.000000000e+000 >=     tree is empty   0.0% (0; 7)
INTEGER OPTIMAL SOLUTION FOUND
x = -7, y = 22, a*x + b*y = 16
Trying 16
*     7: obj =  0.000000000e+000  infeas = 0.000e+000 (0)
OPTIMAL SOLUTION FOUND
Integer optimization begins...
+     7: mip =     not found yet >=              -inf        (1; 0)
+    21: >>>>>  0.000000000e+000 >=  0.000000000e+000   0.0% (3; 6)
+    21: mip =  0.000000000e+000 >=     tree is empty   0.0% (0; 17)
INTEGER OPTIMAL SOLUTION FOUND
x = -50, y = 157, a*x + b*y = 4
Trying 4
Solution is 4
GoodBye Nigel

C:\Users\Nigel\DevVB>

----- Original Message -----
From: "Greig Oldford"
To: address@hidden
Subject: [Help-glpk] Integrating GNU GPLK with .NET
Date: Thu, 7 Jan 2010 22:24:08 +0300


Hi!

Looking for some info on how to access GPLK libraries from within a
VB.NET framework.  I am doing embedded GIS programming and would
like access to the GNU GLPK math libraries for doing optimization. 
Any suggestions for starting-points?

Greig


_______________________________________________
Help-glpk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-glpk

--

_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com


Powered by Outblaze

Attachment: t1.zip
Description: Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]