Homework #5 1.: Table 1: Training Cost Matrix For Each Task and Employee Combination
Homework #5 1.: Table 1: Training Cost Matrix For Each Task and Employee Combination
1.
Table 1: Training Cost Matrix for each task and employee combination
Linear program:
Objective function:
min(∑#!$% ∑#"$% c!" x!" )
Figure 1: CVXPY code for objective function
Constraints:
∑#!$% x!" >= 1, j = 1,2,3,4,5,6 ensuring each employee has at least one task assigned
∑#"$% x!" >= 1, i = 1,2,3,4,5,6 ensuring each task is assigned to at least one employee
Table 2: Task Assignment Matrix Computed for given combination of Task and Employee
Cost calculation matrix (CT*X) and sum of the matrix values is 12:
1
Homework #5
2
Homework #5
3
Homework #5
Determine:
Objective function:
d[j] = min{d[i] + c!" } ∶ (i, k) exitsts}
Table 4: Algorithm to implement Bellman's equation (source: Optimization in Operations Research, Ronald L Rardin)
4
Homework #5
Table 5: Implementation of dynamic programming algorithm above and shortest path for different destinations
Iteration Trace and shortest path to node 6 Iteration Trace and shortest path to node 5 Iteration Trace and shortest path to node 4
In the table above we can see that the all nodes in the given network are evaluated prior to determination
of shortest path between a given pair of origin and destination.
Observation & Feedback: This approach might be very useful for limited number of nodes but can be
computationally intensive and an overkill if we have to evaluate a larger set of nodes even though figuratively
nodes are very close but the good thing about this approach is that it evaluates every edge prior to determination
of all edges.
5
Homework #5
6
Homework #5
3.
a.
Objective: Minimize ∑Gi=1cipi∑i=1Gcipi
Subject to:
Flow Conservation:
∑j∈O(i)fij∑j∈O(i)fij - ∑j∈I(i)=pi∑j∈I(i)=pi for i∈G i∈G (for generator node)
∑j∈O(i)fij∑j∈O(i)fij - ∑j∈I(i)=−di∑j∈I(i)=−di for i∈Di∈D (for consumer node)
∑j∈O(i)fij∑j∈O(i)fij - ∑j∈I(i)=0∑j∈I(i)=0 for i∈N/(G∪D) i∈N/(G∪D)
(for node other than generators or consumer nodes, which does not exists in this problem)
7
Homework #5
b.
8
Homework #5
Optimal solution:
c.
Optimal pricing: