教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 文库大全 > 资格考试 >

On the Flexibility of Constraint Programming Models From Sin(2)

来源:网络收集 时间:2026-09-04
导读: on the cost are not explicitly computed in constraint programming but are rather a consequence of constraint propagation, we cannot easily record the exceeding lower bounds at the leaves of the curre

on the cost are not explicitly computed in constraint programming but are rather a consequence of constraint propagation, we cannot easily record the exceeding lower bounds at the leaves of the current search tree. Instead, we base our computation of a new upper bound on the greatest depth achieved in the previous iteration, according to n Bi+1= (1+ i d ) Bii

where B1 is the optimal cost of the tsptw instance obtained by relaxing (6'), di is the maximum depth reached at iteration i and 1= 0:03; 2= 0:06. We allow a maximum of four iterations: the rst one with initial upper bound B1 in case the optimal solution of the relaxed tsptw instance remains feasible for the tspmtw instance; the next two iterations with increasing computed bounds B2 and B3; the nal iteration with no bound at all, to nd a solution if there is one. Of course, as soon as an iteration has successfully terminated with a solution, we do not perform the following ones. The intuition behind the use of ratio n=di 5

1 Centre de recherche sur les transports, Universit'e de Montr'eal,

DMm

1 Centre de recherche sur les transports, Universit'e de Montr'eal,

thus preserving its span.

high density, coarse-grained (type D): randomly pick the number of holes

in the window, between 1 and 4; randomly select their location; randomly determine their size, between 1% and 5% of the original window. medium density, ne-grained (type M): 10 (sub-)windows in all, but 2 must be located respectively at the beginning and the end of the original window; randomly select the location of the 8 remaining (sub-)windows; randomly determine their size, between 3% and 7% of the original window. medium density, coarse-grained (type m): 2 (sub-)windows, leaving one gap; randomly determine their size, between 20% and 30% of the original window. heterogeneous (type H): for each city, choose with equal probability one of the above three types or the original window. The 108 instances thus generated are grouped and identi ed according to the tsptw instance from which they originate and di erentiated by the appropriate su x according to their type. For example, rc205.2-M refers to the type M instance generated from the second route associated with instance rc205 in Solomon's test set.

4 Computational resultsWe report in this section the performance of our algorithm on the problems described in section 3. The tests were carried out on a Sun SS1000 as in 6]. However by the time we ran our experiments, the tsptw algorithm had been re-implemented using ilog Solver 4], a C++ library implementing constraint programming for combinatorial problems. This allows a comparison between the e ciency of the two cp languages used: we observed that the new implementation is roughly 5 times faster. We obtained solutions (or proved infeasibility in 4 cases) for about half of the problems generated (63) within our preset time limit. Most of these (55) were solved to optimality. These statistics are not surprising since about the same proportion of original RC2 tsptw instances had been solved in 6]. The optimal values for the tspmtw instances solved are listed in the appendix. Missing vertical lines in the gures 3 to 6 represent infeasible instances or instances for which feasibility or infeasibility could not be proven within the preset time limit. In gures 3 and 4, the top graphs give the ratios of the solution cost for the tspmtw instance over the solution cost for the corresponding tsptw instance. We can make the following observations: 1. The optimal cost of type D instances is almo

st always the same as that of the original instance. 7

1 Centre de recherche sur les transports, Universit'e de Montr'eal,

2

(D)(M)

1.8(m)(H)o

i

t1.6

ar

t

s

o

c

n1.4

oi

t

ul

o

s1.2

1

0.81.01.11.21.3d1e+06n

uof

n100000(D)(1)

o(M)i

t(m)

ul

o(H)

s10000

ts

e

b

r

o1000

f

de

s

p100al

e

s

d

n10

o

c

e

s

U1

P

C0.11.01.11.21.3y

t

i

l

a1e+06

mi

tp(D)(1)o

100000f(M)o

f(m)

o

o

r10000(H)

p

gn

i

d

u1000l

c

n

i

,d

e100

s

pa

l

e 10s

dn

o

c

e1s

U

P

C0.11.01.11.21.32(D)(M)1.8(m)(H)oit1.6ar tsoc n1.4oitulos1.210.82.02.12.22.3d1e+06nuof n100000(D)(1)o(M)it(m)ulo(H)s10000 tseb ro1000f desp100ale sdn10oces U1PC0.12.02.12.22.3ytila1e+06mitp(D)(1)o 100000f(M)o f(m)oor10000(H)p gnidu1000lcni ,de100spale 10sdnoce1s UP

C0.12.02.12.22.3

1 Centre de recherche sur les transports, Universit'e de Montr'eal,

2

(D)(M)

1.8(m)(H)o

i

t1.6

ar

t

s

o

c

n1.4

oi

t

ul

o

s1.2

1

0.85.05.15.25.3d1e+06n

uof

n100000(D)(1)

o(M)i

t(m)

ul

o(H)

s10000

ts

e

b

r

o1000

f

de

s

p100al

e

s

d

n10

o

c

e

s

U1

P

C0.15.05.15.25.3y

t

i

l

a1e+06

mi

tp(D)(1)o

100000f(M)o

f(m)

o

o

r10000(H)

p

gn

i

d

u1000l

c

n

i

,d

e100

s

pa

l

e 10s

dn

o

c

e1s

U

P

C0.15.05.15.25.32(D)(M)1.8(m)(H)oit1.6ar tsoc n1.4oitulos1.210.83.04.16.06.16.27.07.28.2d1e+06nuof n100000(D)(1)o(M)it(m)ulo(H)s10000 tseb ro1000f desp100ale sdn10oces U1PC0.13.04.16.06.16.27.07.28.2ytila1e+06mitpo 100000(D)(1)f(M)o f(m)oor10000(H)p gnidu1000lcni ,de100spale 10sdnoce1s UP

C …… 此处隐藏:5061字,全部文档内容请下载后查看。喜欢就下载吧 ……

On the Flexibility of Constraint Programming Models From Sin(2).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wenku/95922.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)