Skip to content

Commit 7e982e5

Browse files
Merge pull request #611 from Quantum-Software-Development/FabianaCampanari-patch-1
Update README.md
2 parents fb02d12 + 209811f commit 7e982e5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,9 +1584,41 @@ The **Assignment Problem** aims to allocate *n* tasks to *n* agents (machines, w
15841584

15851585
Each cell is 0 or 1 (to be filled by Solver).
15861586

1587+
<br>
1588+
1589+
#### 3. **Objective Function (K2)**
1590+
1591+
1592+
```
1593+
=SUMPRODUCT(B2:D4, G2:I4)
1594+
```
15871595

1596+
#### 4. **Row Constraints (One task per machine)**
15881597

1598+
- J2: `=SUM(G2:I2)` (should be 1)
1599+
- J3: `=SUM(G3:I3)` (should be 1)
1600+
- J4: `=SUM(G4:I4)` (should be 1)
1601+
1602+
<br>
15891603

1604+
#### 5. **Column Constraints (One machine per task)**
1605+
1606+
- G5: `=SUM(G2:G4)` (should be 1)
1607+
- H5: `=SUM(H2:H4)` (should be 1)
1608+
- I5: `=SUM(I2:I4)` (should be 1)
1609+
1610+
<br>
1611+
1612+
### **B. Solver Configuration**
1613+
1614+
- **Set Objective:** K2 (Minimize)
1615+
- **By Changing Variables:** G2:I4
1616+
- **Add Constraints:**
1617+
- J2:J4 = 1
1618+
- G5:I5 = 1
1619+
- G2:I4 = binary
1620+
1621+
<br>
15901622

15911623

15921624

0 commit comments

Comments
 (0)