Documentation ¶
Index ¶
Constants ¶
View Source
const ( UNKNOWN int = iota NAME ROWS COLUMNS RHS RANGES BOUNDS ENDDATA )
View Source
const OBJECTIVE_CONST_TERM string = "const_term"
Variables ¶
View Source
var InequalityCode2InequalityType = map[string]InequalityType{ "E": EQUALITY, "G": GE, "L": LE, }
Functions ¶
Types ¶
type Constraint ¶
type Constraint struct { Name string Type InequalityType Coefficients map[string]float64 Rhs float64 }
type LPData ¶
type LPData struct { Name string A matrix.MatrixRO // Constriant coeff matrix B matrix.MatrixRO // RHS of constriants in std form C matrix.MatrixRO // Variable coeffs in objective function CConst float64 // Constant term in objective function Orig2UsedVars map[string][]int // key = orig var name, value = slice of actually used var index OrigVarsMap map[string]VarTrans // key = orig var name, value = function(actual vars) returning orig var }
func ParseCompressedMPS ¶
Click to show internal directories.
Click to hide internal directories.