Commit 9cdb3d29 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Jérome Perrin

SkilledOperatorRouter to pass previous assignment to LP method. Default weight...

SkilledOperatorRouter to pass previous assignment to LP method. Default weight set to 0 so that old tests run. weights to be set as input
parent 1ae8d8d8
...@@ -195,7 +195,7 @@ class SkilledRouter(Router): ...@@ -195,7 +195,7 @@ class SkilledRouter(Router):
# as it doesn't support zero WIP levels # as it doesn't support zero WIP levels
#=================================================================== #===================================================================
solution=opAss_LP(self.availableStationsDict, self.availableOperatorList, solution=opAss_LP(self.availableStationsDict, self.availableOperatorList,
self.operators) self.operators, previousAssignment=self.previousSolution)
# print '-------' # print '-------'
# print self.env.now, solution # print self.env.now, solution
# XXX assign the operators to operatorPools # XXX assign the operators to operatorPools
......
...@@ -4,7 +4,7 @@ Created on 2 Jul 2014 ...@@ -4,7 +4,7 @@ Created on 2 Jul 2014
@author: Anna @author: Anna
''' '''
def opAss_LP(machineList, PBlist, PBskills, previousAssignment={}, weightFactors = [2, 1, 0.5, 2, 1, 1], Tool={}): def opAss_LP(machineList, PBlist, PBskills, previousAssignment={}, weightFactors = [2, 1, 0, 2, 1, 1], Tool={}):
from pulp import LpProblem, LpMaximize, LpVariable, LpBinary, lpSum, LpStatus from pulp import LpProblem, LpMaximize, LpVariable, LpBinary, lpSum, LpStatus
import pulp import pulp
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment