nreusch / TSNConf

A tool for optimization and visualization of TSN networks
14 stars 8 forks source link

Problem encountered after setting up Model 3 #2

Closed lingyun888 closed 5 months ago

lingyun888 commented 6 months ago

When I set up Model 3, I found that the printed Found Schedule was 0. May I ask what the reason is?

nreusch commented 6 months ago

Hello @lingyun888,

what do you mean with Model 3? Could you give me the command you are running and the output you receive?

lingyun888 commented 6 months ago

command:python main.py .\testcases\TC3.2_medium.flex_network_description --mode 3 --visualize --no_security output error: Snipaste_2024-03-11_09-20-32 I debugged the code and found that the member variables in solution_object.tc.schedule are all empty. image

nreusch commented 6 months ago

Hello @lingyun888,

I can't quite manage to replicate your error on my setup. Could you share your codebase? What optimization are you trying to run? I assume SA optimization, where routing & scheduling is combined?

lingyun888 commented 6 months ago

Thank you for your reply. I forgot a little bit, there were many small issues when running SA optimization (-- model 3) in this code before, and it is possible that the current error is related to the previous error.

lingyun888 commented 6 months ago

Hello, may I have your email

nreusch commented 6 months ago

Hello @lingyun888,

you were running into these issues because the main branch was using an outdated version of the tool, which did not have the SA heuristic properly implemented yet. I have now updated the main branch to the newest version and I can run the testcase with

python main.py testcases/TC3.2_medium.flex_network_description --mode 13 --visualize --no_security --timeout_scheduling 60

Be aware that there are a lot of changes now. You can reach me via mail at nikre@dtu.dk.

Greetings Niklas

lingyun888 commented 6 months ago

Thank you very much for your help.