-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于代码运行的问题(A question about how to execute this code) #3
Comments
English version: |
你好!我已经收到了你的邮件,我会尽快给你回复!Hello!I have received your e-mail,I will reply you soon!
|
已经运行成功,感谢博主的耐心指导!要运行代码需要在代码中新建一个文件夹FJSSPinstances,然后将测试数据文件夹都放进去,然后把代码中对应的路径名改为需要运行的文件夹,然后在permissible.py文件的get_imlist函数中修改path_list.sort(key=lambda x:int(x[6:-4]))中的数字6,按照文件夹中数据集文件的英文字母个数进行修改 然后就可以跑通了!最后给博主一个建议,希望可以提供一下environment.txt 这样就不用一个一个的装包了hhhhhh |
没事没事,如果对您有帮助后续可以引用咱们的论文 |
Hello, How to run your file? I am looking to cite your work- I am not sure how to go about running your file though its relevant to mine |
Which file to run to get the makespan |
Hello, thanks for your interest in our work. You can download from FJSP benchmark website https://github.com/leikun-starting/FJSP-benchmarks to test other FJSP instances. Then you can create a file named FJSSPinstances and put the benchmarks in this file. Last, you can run the permissible.py to get the makespan. |
I'd like to stress that you should revise the path of the benchmark instance that you want to test in the permissible.py. |
Thanks alot for the prompt response. |
Looking forward to hearing your thoughts |
I'm sorry I cannot understand the fitness function you mentioned. This code involved eight dispatching rules specifies minimizing the objective function of max makespan. |
Hi ther,
That’s what I mean,
I am wondering which place of the code segments to change for replacing max
makespan with some other function
…On Fri, 11 Nov 2022 at 3:46 PM, Leo ***@***.***> wrote:
Thanks alot for the prompt response. Also, would you be able to let me
know where to modify the fitness function (makespan in this case), but what
if we want another objective function?
I'm sorry I cannot understand the fitness function you mentioned. This
code involved eight dispatching rules specifies minimizing the objective
function of max makespan.
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKV2PF7JYUTRNYXGVBF47C3WHWXRXANCNFSM6AAAAAAQDXFAPA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
I think you need to adjust the computation of the objective in this code if you want to leverage it to optimize other objective functions. And that will need a large-scale adjustment of this code. |
Yes that is alright, |
In the FJSP_env.py, there is an start and end time list for recording the makespan of each job. The main definitions is located in the FJSP_env.py, you can revise it for the objective what you want, I guess. |
注意torch版本问题~
从 Windows 版邮件发送
发件人: William1234nn
发送时间: 2022年12月13日 23:13
收件人: leikun-starting/Dispatching-rules-for-FJSP
抄送: Leo; Manual
主题: Re: [leikun-starting/Dispatching-rules-for-FJSP] 关于代码运行的问题(A question about how to execute this code) (Issue #3)
untimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [32, 1]], which is output 0 of AsStridedBackward0, is at version 4; expected version 3 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).
您好,我在运行训练函数时出现错误这个错误改如何解决?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
你好,我下载了你的代码,发现无法运行,报错为:FileNotFoundError: [Errno 2] No such file or directory: './FJSSPinstances/Vdata',然后我新建了路径/FJSSPinstances/Vdata发现不报错了,但是输出为空,可能是Vdata中没有放文件的缘故,请问Vdata中应该放什么文件进去?我放了0_BehnkeGeiger中的文件,然后代码在permissibleLS.py"中报错, line 320, in
path_list.sort(key=lambda x:int(x[2:-4])) ValueError: invalid literal for int() with base 10: 'hnke50',放入另一个文件夹的文件也是一样报错,请问Vdata中应该放入什么文件才能让代码正常运行?
The text was updated successfully, but these errors were encountered: