Jump to content

GLPK/Visual Basic .NET

From Wikibooks, open books for an open world

GLPK for C#/CLI

[edit | edit source]

GLPK for C#/CLI provides a common language interface (CLI) binding for GLPK. It is licensed under GPL V3. The coding is generated using SWIG.

GLPK for C#/CLI supports callback and terminal listeners. Errors occurring in the GLPK native library are thrown as exceptions. All functions of the GLPK API are available as methods of the GLPK object as shown in the example below:

Imports System
Imports org.gnu.glpk

Public Module module1
   Sub Main()
     Console.WriteLine ("GLPK " + GLPK.glp_version())
   End Sub
End Module

References

[edit | edit source]