Optimization of dry biomass partitioning coefficients.

Usage

OpMaizeGro(phen = 1, iCoef = NULL, cTT, WetDat, data, plant.day = NULL, emerge.day = NULL, harvest.day = NULL, plant.density = 7, timestep = 1, lat = 40, canopyControl = list(), MaizeSeneControl = list(), photoControl = list(), MaizePhenoControl = list(), MaizeCAllocControl = list(), laiControl = list(), soilControl = list(), MaizeNitroControl = list(), centuryControl = list(), op.method = c("optim", "nlminb"), verbose = FALSE, ...)

Arguments

phen
integer taking values 1 through 6 which indicate the phenological stage being optimized. If all of the phenological stages need to be optimized then use zero (0).
iCoef
initial vector of size 24 for the dry biomass partitioning coefficients.
cTT
WetDat
Weather data.
data
observed data.
plant.day
emerge.day
harvest.day
plant.density
canopyControl
see MaizeGro
seneControl
see MaizeGro
photoControl
see MaizeGro
phenoControl
see MaizeGro
soilControl
see MaizeGro
nitroControl
see MaizeGro
centuryControl
see MaizeGro
op.method
Optimization method. Whether to use optim or nlminb
verbose
Displays additional information, originally used for debugging.
...
additional arguments passed to optim or constrOptim.

Description

Optimizes dry biomass partitioning coefficients using constrained optimization (see below).

Details

The optimization is done over the MaizeGro function. The OpMaizeGro function is a wrapper for optim and the constrOpBioGro is a wrapper for constrOptim.