Companion

object Companion

Persistence helpers for the bootstrapped OptimizationArtifact.

Functions

Link copied to clipboard

Reads and deserializes the OptimizationArtifact stored at storagePath.

Link copied to clipboard
fun saveArtifact(storagePath: ResilientPath, artifact: OptimizationArtifact)

Serializes artifact as pretty-printed JSON and writes it to storagePath, creating parent directories as needed.