Browsable Linear Programming Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: api/rascal/linear/extracted
Source used for this grammar: Paul Klint, Jurgen J. Vinju, analysis::linearprogramming::LinearProgramming, 2009–2013 [Explore]

Summary

Syntax

Coefficients ::=
	(var⟩:stringcoef⟩:integer)*
LinearExpression ::=
	[linearExp]::(coefficients⟩:Coefficientsconst⟩:integer)
ObjectiveFun ::=
	LinearExpression
ConstraintType ::=
	[leq]::ε
	[eq]::ε
	[geq]::ε
Constraint ::=
	[constraint]::(coefficients⟩:Coefficientsctype⟩:ConstraintTypeconst⟩:integer)
Constraints ::=
	Constraint*
VariableVals ::=
	(var⟩:stringval⟩:integer)*
Solution ::=
	[solution]::(varVals⟩:VariableValsfunVal⟩:integer)

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []