Skip to contents

Two equal programs always encode to equal bytes, whichever order their tables happened to be built in. A model that declares no uncertainty encodes to exactly the bytes it would have before the stochastic layer existed, so declaring none costs an ordinary model nothing.

Usage

encode(prog)

Arguments

prog

A program(), or a model built with model() (which is lowered first).

Value

A raw vector: the encoded program.

Details

Encoding is normally invisible: solve_model() does it for you, and what it sends is exactly these bytes. Reach for encode to send them yourself, store them, or check them.