File size: 3,102 Bytes
b3aa878
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
  "case_id": "case_assignment",
  "problem_type": "assignment",
  "natural_language": "Assign 4 workers to 4 tasks. Processing times: Worker 1 takes 9, 2, 7, 8 hours; Worker 2 takes 6, 4, 3, 7; Worker 3 takes 5, 8, 4, 6; Worker 4 takes 7, 5, 6, 4. Each worker handles exactly one task and each task is assigned to exactly one worker. Minimize total processing time.",
  "binding": {
    "problem_hint": "assignment",
    "entities": {
      "workers": [
        {
          "id": "W1",
          "label": null,
          "attributes": {}
        },
        {
          "id": "W2",
          "label": null,
          "attributes": {}
        },
        {
          "id": "W3",
          "label": null,
          "attributes": {}
        },
        {
          "id": "W4",
          "label": null,
          "attributes": {}
        }
      ],
      "tasks": [
        {
          "id": "T1",
          "label": null,
          "attributes": {}
        },
        {
          "id": "T2",
          "label": null,
          "attributes": {}
        },
        {
          "id": "T3",
          "label": null,
          "attributes": {}
        },
        {
          "id": "T4",
          "label": null,
          "attributes": {}
        }
      ]
    },
    "parameters": {
      "processing_time": {
        "name": "processing_time",
        "value": [
          [
            9.0,
            2.0,
            7.0,
            8.0
          ],
          [
            6.0,
            4.0,
            3.0,
            7.0
          ],
          [
            5.0,
            8.0,
            4.0,
            6.0
          ],
          [
            7.0,
            5.0,
            6.0,
            4.0
          ]
        ],
        "unit": null,
        "source_span": null
      }
    },
    "scalars": {},
    "binding_confidence": 0.9
  },
  "formulation": {
    "problem_type": "assignment",
    "sets": {
      "I": "workers",
      "J": "tasks"
    },
    "parameters": [
      "processing_time"
    ],
    "variables": [
      {
        "name": "x",
        "indices": [
          "i",
          "j"
        ],
        "domain": "binary",
        "non_negative": true,
        "description": "1 if worker i assigned to task j"
      }
    ],
    "objective": {
      "sense": "minimize",
      "expression": "sum(processing_time[i,j] * x[i,j] for i in I for j in J)",
      "description": "Minimize total processing time"
    },
    "constraints": [
      {
        "name": "one_task_per_worker",
        "expression": "sum(x[i,j] for j in J)",
        "sense": "==",
        "rhs_expression": "1",
        "description": "Each worker gets exactly one task"
      },
      {
        "name": "one_worker_per_task",
        "expression": "sum(x[i,j] for i in I)",
        "sense": "==",
        "rhs_expression": "1",
        "description": "Each task assigned to exactly one worker"
      }
    ],
    "notes": []
  },
  "ground_truth_objective": 14.0
}