distr.root: Objective function value of one stratum (distribution)

View source: R/distr.root.R

distr.rootR Documentation

Objective function value of one stratum (distribution)

Description

Calculates the value of the objective function for one stratum under an assumed distribution, given the remaining range d and the stratum width y (on the scaled axis).

Usage

distr.root(d, y, c, my_env)

Arguments

d

numeric: remaining distance/range on the (scaled) axis

y

numeric: width of the first stratum on the (scaled) axis

c

numeric: per stratum cost multiplier (Ch[k])

my_env

environment: holds distribution name, scaled parameters, and scaling constants ('initval', 'maxval', etc.)

Details

Used by the DP recurrences in the "distribution-known" pathway. All distribution parameters are interpreted on the "scaled" axis (initval .. initval+dist), consistent with 'strata.distr()'.

Value

numeric: sqrt(objective) or -1 if branch is infeasible/invalid

Author(s)

Karuna Reddy <karuna.reddy@auckland.ac.nz>
MGM Khan <mgm.khan@usp.ac.fj>


stratifyR documentation built on Nov. 13, 2026, 9:06 a.m.