Description Usage Arguments Value Examples
View source: R/constraint_element.R
Function to build a constraint element.
1 2 | ConstraintElement(name, expr, position = 1, state = "active",
description = "")
|
name |
constraint name. |
expr |
constraint expression. |
position |
constraint position. |
state |
constraint state. Possibilities c("active", "deactive"). |
description |
constraint description. |
object of ConstraintElementClass class.
1 2 | D <- Var("D")
ConstraintElement("Demand", D <= 2, description = "Max demand.")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.