# Collection Sequence

> Used to evaluate a collection sequence in the solver.

Page: https://docs.icepack.ai/isr/collectionsequence/

## Overview

A collection sequence is used to provide a fixed sequence to the solver, either to be used as a starting incumbent in a reoptimise procedure or as a fixed sequence to be evaluated for infeasibilities.

### Applicable models

* ISR `isr-z4foi53qznrv`

<hr>

## Collection Sequence

The collection sequence is a list of task id's, which are mostly collection identifiers with the dropoff site id's where applicable. In other words, its the sequence that the vehicle should follow through collection, offloading and then potentially collecting again.

### Schema definition 

```protobuf
message CollectionSequence {
  required string vehicleId = 1;
  repeated string taskId = 2;
}
```




### Fields

vehicleId
: The vehicle identifier corresponding to a vehicle instance specified in the [model](/isr/model/) [vehicles](/isr/vehicle/).

taskId
: Either a [collection](/isr/collection/) or [offload site](/isr/offloadsite/) id. This is the sequence that the vehicle specified in the `vehicleId` field should follow.

### Examples
This example illustrates two sequences of collections which are performed on vehicle `ABC123`. Three collections are performed before the vehicle returns to the Landfill (which is the [offload site](/isr/offloadsite/)) and then one more stop before returning again to the offload site.

```protobuf
vehicleId: "ABC123"
collectionId: "Fleet street 1"
collectionId: "Major Street"
collectionId: "Colonel Ave"
collectionId: "Landfill"
collectionId: "Minor Cres"
collectionId: "Landfill"
```



<hr>

