You are viewing Nextmv legacy docs. ⚡️ Go to latest docs ⚡️

Upgrade Guide

v0.15.0 Upgrade Guide

Nextmv SDK

Note, this release includes breaking changes and you now must have Go version >= 1.18 installed.

  • Set your go.mod requirements to match the new version.
require (
   github.com/nextmv-io/code/engines v0.15.0
   github.com/nextmv-io/code/hop v0.15.0
)
Copy

If you did not set the solver's limits for duration, nodes, or solutions before, the new default values of 10s and model.MaxInt will be used respectively. The options can be set via environmental variables or directly in code.

opt := solve.DefaultOptions()
opt.Limits.Duration = time.Duration(30 * time.Second)
opt.Limits.Nodes = 10
opt.Limits.Solutions = 10
Copy

Page last updated