nection tasks or the end times of the connection tasks:
s(T
′
i
) ⇒ t
i
(T
′
i
) ≥ t
′
OR
(S) + ∆
mov
(S, m
′
(S), M(T
′
i
)) and
s(T
i
) ⇒ t
f
(T
i
) = t
OR
(S). Related to relations of type
(2), these constraints consider the end time of the
tasks related to the start time and the durations of
them: s(T
′
i
) ⇒ t
f
(T
′
i
) = t
i
(T
′
i
)+ Dur(T
′
i
) and s(T
i
) ⇒
t
f
(T
i
) = t
i
(T
i
) + Dur(T
i
). Related to relations (3), the
next constraints include the equality constraint be-
tween the disconnection times of the Or nodes t
′
OR
and the end time of a disconnection task T
′
above
them: s(T
′
i
) ⇒ t
f
(T
′
i
) = t
′
OR
(S
1
) = t
′
OR
(S
2
), and the
precedence between the connection time of the Or
nodes t
OR
and the start times of connection task T,
and considering the possible delays due to the trans-
portation of subsystems if the two successive tasks
involving it use different machines: s(T
i
) ⇒ t
i
(T
i
) ≥
t
OR
(S
1
)+ ∆
mov
(S
1
, m(S
1
), M(T
i
)) and s(T
i
) ⇒ t
i
(T
i
) ≥
t
OR
(S
2
) + ∆
mov
(S
2
, m(S
2
), M(T
i
)). Related to rela-
tions of type (5), these constraints establish that for
a task T
i
, and its closest predecessor task T
j
us-
ing the same machine m, taking into account the
possible change of configuration: (s(T
i
) ∧ s(T
j
)) ⇒
t
i
(T
j
) ≥ t
f
(T
i
) + ∆
cht
(m, Cf(T
i
), Cf(T
j
)). For each
two tasks T
i
and T
j
requiring the same machine
m, with no precedence constraint among them, and
which may belong to the same repair plan, the con-
straints of type (6) express the two possible orders
of execution of the tasks: (s(T
i
) ∧ s(T
j
)) ⇒ (t
i
(T
i
) ≥
t
f
(T
j
) + ∆
cht
(m, Cf(T
j
), Cf(T
i
)) ∨ t
i
(T
j
) ≥ t
f
(T
i
) +
∆
cht
(m, Cf(T
i
), Cf(T
j
))). For the Or leaf nodes t
′
OR
and t
OR
are equals, except for the faulty component
due to the delay corresponding to the reparation.
Cost Constraints. The cost of a plan can be estab-
lished by the aggregated costs associated to the exe-
cution of the selected tasks. The total cost of selecting
a task T
i
involves:
• the execution cost of the task, Cost(T
i
)
• the cost associated to the possible machine move-
ment of one or two subsystems, cost
mov
(T
i
):
first, in disconnection tasks T
′
i
, the possi-
ble movement of the subsystem related to
the Or nodes above it, related to relation
(1), cost
mov
(T
′
i
) = Cost
mov
(S, m
′
(S), M(T
′
i
)); sec-
ondly, in connection tasks T
i
, the possi-
ble movement of the two subsystems related
to Or nodes below it, related to relation
(3), cost
mov
(T
i
) = Cost
mov
(S
1
, m(S
1
), M(T
i
)) +
Cost
mov
(S
2
, m(S
2
), M(T
i
)).
• the possible cost associated to a change of config-
uration on M(T
i
), cost
cht
(T
i
). If M(T
i
) has been
used before by another task with a different con-
figuration, it is necessary to change it. The cost
of the change of configuration depends of the se-
quence of tasks for each machine, so there must be
considered the precedent task executed on m(T
i
).
Taking into account this, cost
cht
(T
i
) =
Cost
cht
(M(T
i
), Cf(PM(T
i
)), Cf(T
i
)), where
PM(T
i
) is the precedent task executed on m(T
i
).
Also, the total cost of a plan can be defined as
∑
T
i
s(T
i
)(Cost(T
i
) + cost
mov
(T
i
) + cost
cht
(T
i
)).
4 CONCLUSIONS AND FUTURE
WORK
This work proposes a CSP model for the planning and
optimal sequencing of disconnection and connection
multi-mode tasks when repairing faulty components,
taking into account the minimization of time and cost.
The proposed model can be solved using conventional
methods for a generic CSP. As future work, it is in-
tended to use different strategies to solve the problem,
working with heuristic algorithms based on the result-
ing state of the constraint propagation process and on
the objective functions to be optimized.
ACKNOWLEDGEMENTS
This work has been partially supported by the Span-
ish Ministerio de Educaci´on y Ciencia through a coor-
dinated research project (Grant DIP2006-15476-C02-
01) and Feder (ERDF).
REFERENCES
Boddy, M., Cesta, A., and Smith, S. (2004). ICAPS-04 Ws.
Integrating Planning into Scheduling. AAAI Press.
Deb, K. (2008). Introduction to evolutionary multiobjec-
tive optimization. Lecture Notes in Computer Science
5252 LNCS, pages 59–96.
Del Valle, C., M´arquez, A., and Barba, I. (2009). A csp
model for simple non-reversible and parallel repair
plans. Journal of Intelligent Manufacturing. To ap-
pear (DOI 10.1007/s10845-008-0162-9).
Homem de Mello, L. and Sanderson, A. (1990). And/or
graph representation of assembly plans. IEEE Trans-
actions on Robotics and Automation, 6(2):188–189.
Kolisch, R. and Drexl, A. (1999). Local for multi-mode
resource-constrained project. IIE Transactions (Insti-
tute of Industrial Engineers), 29(11):987–999.
Rossi, F., Van Beek, P., and Walsh, T. (2006). Handbook of
Constraint Programming. Elsevier.
Smith, D., Frank, J., and J´onsson, A. (2000). Bridging the
gap between planning and scheduling. Knowledge En-
gineering Review, 15(1):47–83.
ICINCO 2009 - 6th International Conference on Informatics in Control, Automation and Robotics
358