adapt_constraints: Adapt constraints to a charge input

Description Usage Arguments Value

View source: R/adapt_constraints.R

Description

Constraints built with build_constraints to incorporate the changes when a charge is added at an index. The values in the columns cummax, cummin and dirmax are updated accordingly.

Usage

1
adapt_constraints(constraints, index)

Arguments

constraints

a data frame of constraints, expected to resemble output of build_constraints.

index

a positive integer, the index where a unit of charge is added.

Value

the constraints data frame with updated values


henobe/flexoptr documentation built on March 11, 2021, 6:04 p.m.