lp

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SolveFromFile added in v0.0.12

func SolveFromFile(lpFile string, timeoutSeconds ...int) (*insyra.DataTable, *insyra.DataTable)

SolveFromFile solves an LP file with GLPK and sets a timeout in seconds. Returns two DataTables: one with the parsed results and one with additional info.

func SolveModel added in v0.0.12

func SolveModel(model *lpgen.LPModel, timeoutSeconds ...int) (*insyra.DataTable, *insyra.DataTable)

SolveModel solves an LPModel directly by passing the model to GLPK without generating a model file. Returns two DataTables: one with the parsed results and one with additional info.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL