setConstraintsCplex: Create a list containing rates constraints and bounds for the...

Description Usage Arguments Value Examples

View source: R/setConstraintsCplex.R

Description

It initializes and stores constraints and bounds for each individual rates. By default, given ncell, it sets all reates to be non-negative, exept for differentiation rates matrix main diagonal elements set to 0. Using this function it is possible to set specific rates to fixed values (non-negative).

Usage

1
2
3
4
5
6
7
8
9
setConstraintsCplex(
  ncell,
  duplRatesLB = NA,
  duplRatesUB = NA,
  deathRatesLB = NA,
  deathRatesUB = NA,
  diffRatesLB = NA,
  diffRatesUB = NA
)

Arguments

ncell

The number of cell types over which the process evolves.

duplRatesLB

duplRatesUB deathRatesLB deathRatesUB Vectors of length ncell containing duplication (dupl) and death (death) rates upper- (UB) and lower- (LB) bounds.

diffRatesLB

diffRatesUB Matrix of size ncell x ncell containing differentiation rates upper- (UB) and lower- (LB) bounds.

Value

List with A, (inequality constraints),lb (lower bound), ub (upper bound).

Examples

1
setConstraintsCplex(ncell,duplRatesLB=NA,duplRatesUB=NA,deathRatesLB=NA,deathRatesUB=NA,diffRatesLB=NA,diffRatesUB=NA)

dp3ll1n/SLCDP documentation built on Feb. 6, 2021, 9:17 p.m.