LQM Registry / optimization
Capacity allocation
Exact bounded integer capacity allocation, with a first-fit baseline and scoped assessment of a supplied allocation.
Model key
lq.optimization.capacity-allocationVersion1.0.0
Runtimephp-native
Model contract
Inputs are explicit.
{
"type": "object",
"required": [
"capacity",
"items"
],
"properties": {
"capacity": {
"type": "integer",
"minimum": 0,
"maximum": 5000
},
"items": {
"type": "array",
"minItems": 1,
"maxItems": 64,
"items": {
"type": "object",
"required": [
"id",
"cost",
"value"
],
"properties": {
"id": {
"type": "string",
"maxLength": 64
},
"cost": {
"type": "integer",
"minimum": 1,
"maximum": 5000
},
"value": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
}
}
}
},
"proposed_ids": {
"type": "array",
"maxItems": 64,
"items": {
"type": "string"
}
},
"claimed_objective": {
"type": "integer"
},
"provenance": {
"type": "object"
}
}
}Output contract
Outputs are explicit.
{
"type": "object",
"required": [
"allocation",
"baseline",
"checks",
"method",
"limitations"
]
}Default parameters
[]
Example input
{
"capacity": 10,
"items": [
{
"id": "Job A",
"cost": 6,
"value": 30
},
{
"id": "Job B",
"cost": 5,
"value": 26
},
{
"id": "Job C",
"cost": 5,
"value": 26
}
],
"proposed_ids": [
"Job A"
],
"claimed_objective": 30,
"provenance": {
"source": "Synthetic capacity planning example",
"capacity_unit": "machine-hours",
"objective_unit": "priority points",
"synthetic": true
}
}