Minimize
and Maximize
options to configure the desired solver type to minimize or maximize the target value, respectively. As a default, the router
uses minimization as its configuration.input.json
file (see input and output for more information on working with input files).main.go
file and use the code snippet below.input.json
file using command-line flags and use jq to extract the solution state (see runners for more information on building and running programs).Minimize
option) should look similar to this one:Maximize
option, the route distance for a single vehicle is maximized to be the longest possible.