create.mat: Create the matrices for the dynamic programming solver

View source: R/create.mat.R

create.matR Documentation

Create the matrices for the dynamic programming solver

Description

Creates and stores the values of the objective function used by the dynamic programming solver.

Usage

create.mat(my_env)

Arguments

my_env

The environment my_env has various constants stored from earlier operations dealing with information on the data

Details

This function creates a matrix whose rows and columns depend on the range or distance of the data and the number of strata solutions that the user is seeking to compute. The matrix stores the objective function values calculated by the algorithm only to be accessed later for the purpose of presenting the OSB.

Value

stores numerical quantities of the objective function and stores in the two matrices inside the my_env to be accessed by other functions

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.