rxOptExpr: Optimize RxODE for computer evaluation

rxOptExprR Documentation

Optimize RxODE for computer evaluation

Description

This optimizes RxODE code for computer evaluation by only calculating redundant expressions once.

Usage

rxOptExpr(x, msg = "model")

Arguments

x

RxODE model that can be accessed by rxNorm

msg

This is the name of type of object that RxODE is optimizing that will in the message when optimizing. For example "model" will produce the following message while optimizing the model:

finding duplicate expressions in model...

Value

Optimized RxODE model text. The order and type lhs and state variables is maintained while the evaluation is sped up. While parameters names are maintained, their order may be modified.

Author(s)

Matthew L. Fidler


RxODE documentation built on March 23, 2022, 9:06 a.m.