removeBindingConstraint(
name = NULL,
group = NULL,
opts = antaresRead::simOptions()
)
Name(s) of the binding constraint(s) to remove.
character
Name(s) of group to delete
List of simulation parameters returned by the function
antaresRead::setSimulationPath()
An updated list containing various information about the simulation.
Starting with version v8.7.0, you can delete binding constraints by name or by group.
Other binding constraints functions:
createBindingConstraintBulk()
,
createBindingConstraint()
,
editBindingConstraint()
if (FALSE) { # \dontrun{
# < v8.7.0 :
removeBindingConstraint(name = "mybindingconstraint")
# >= v8.7.0 (delete by names group) :
# read
bc <- readBindingConstraints()
# select all groups
group_to_delete <- sapply(bc, function(x){
x$properties$group
})
# delete all groups
removeBindingConstraint(group = group_to_delete)
} # }