弹性网络ElasticNet
代码说明:
使用到的参数跟谈到弹性网络的那一章里头所讲的是一样的, ke 则是终止条件。如果 step 被打勾,则程式在每一步之间会暂停 100毫秒(或其他使用者输入的数值)。如果 Random 被打勾,则程式会以系统时间作为乱数产生器的种子数,否则,就以使用者输入的数( Random 右边那一格)为种子数。 你可以利用 load 来载入推销员问题档与其最佳解,如此便可比较弹性网络所找出来的解与最佳解差了多少。 Central, Radius, and Error 这三个参数的前两个,只影响弹性网络的起使位置和大小,对求解没有影响。第三个参数代表城市与网络点之间的容忍距离,也就是说,如果某城市与某网络点之间的距离,小于容忍距离,那就把这个城市当成是被该网络点所拜访。 按下小 w按钮会将目前的结果与参数值写到“en.out”这个档案。使得我们可以很方便地来比较不同参数的效果。 (use to turn the parameters of the network flexibility chapter Erlitou have said are the same, ke is the termination conditions. If the step was ticking, every step of the program will be suspended between one hundred milliseconds (or other user input value). If Random was ticking, the program will be the system time as the Random Number Generator the seeds, otherwise, Take the user input (which Random right field) for seeds. You can use load to stall contained salesman problem with the optimal solution, so can be more flexible network to find the best solution and the deficit with a number of questions. Central, Radius, and Error these three parameters of the former two, flexible network affects only the starting position and size so that the solution will not be affected. The third parame)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!