Create (equality or inequality) constraint object

newConstraint(
  name,
  ...,
  eq = "==",
  rhs = data.frame(),
  for.each = NULL,
  defVal = 0,
  arg = NULL
)

Arguments

name

Name of the constrain object (will be used in GAMS or GLPK as an element in sets)

...

Left-hand side (LHS) terms of the statement - list objects with

eq

Type of the relation ('==' default, '<=', '>=')

rhs

list or data frame with named sets ()

for.each

list with sets for which constraint will be created.

defVal

the default value for the rhs.

arg

tbc

Value

Object of class `constraint`.