# Model

> Puts it all together to define a stand-alone instance to be solved.

Page: https://docs.icepack.ai/ivr/model/

## Overview

The model object pulls all the individually defined pieces together into a single representation which can then be solved. The model encapsulates all the information required by the solver and can be thought of as "an instance of the problem to be solved". 

### Applicable models
* IVR7 `ivr7-kt461v8eoaif`
* IVR8 `ivr8-yni1c9k2swof`

<hr>

## Model

### Schema definition 

```protobuf
message Model {
  required DimensionConfiguration dimensions = 1;
  repeated Location locations = 2;
  repeated Job jobs = 3;
  repeated Vehicle vehicles = 4;
  repeated VehicleClass vehicleClasses = 5;
  repeated VehicleCostClass vehicleCostClasses = 6;
  repeated TransitRule transitRules = 7;
  repeated TransitGenerator transitGenerators = 8;
  repeated TaskSequence taskSequence = 9;
  repeated Compartment compartments = 10;           //IVR 8 only
  repeated CompartmentSet compartmentSets = 11;     //IVR 8 only
}
```



### Fields

dimensions
: A [Dimension Configuration](/ivr/dimension/) for this model instance.

locations
: A list of [location](/ivr/location/) objects for this model instance.

jobs
: A list of [job](/ivr/job/) objects for this model instance.

vehicles
: A list of [vehicle](/ivr/vehicle/) objects for this model instance.

vehicleClasses
: A list of [vehicleClass](/ivr/vehicle-class/) objects for this model instance.

vehicleCostClasses
: A list of [vehicleCostClass](/ivr/vehicle-cost-class/) objects for this model instance.

transitRules
: A list of [transitRule](/ivr/transit-rule/) objects for this model instance.

transitGenerators
: A list of custom [transitGenerator](/ivr/transit-generator/) objects for this model instance. (advanced usage)

taskSequence
: A list of [taskSequence](/ivr/task-sequence/) objects for this model instance.

compartments
: A list of [compartment](/ivr/compartment/) objects for this model instance.

compartmentSets
: A list of [compartmentSet](/ivr/compartment-set/) objects for this model instance.


### Notes

* The general practice is to pluralise sequence arrays. This is, however, not the case with taskSequence.

<!-- ### Examples

```protobuf

```

 -->

<hr>

