I am trying to convert a JMT model into LINE but I get the following error:
LINE2SCRIPT(JMT2LINE('myModelJMT.jsimg'),'myModelLine.m')
Dot indexing is not supported for variables of this type.
Error in JMT2LINE (line 68)
xsvc{i} = {xsection_i{i}(2).parameter.subParameter};
Any suggestion for this?
Kind regards, Catia
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everyone,
I have a similar problem with the conversion of my JMT model to LINE. I'm trying to concept a model similar to the "jackson network" (multiples sources, multiples sinks, multiple queueus, forks, and joins) using JMT. I received these errors:
Operands to the logical and (&&) and or (||) operators must be convertible to logical scalar values.
Error in Network/sanitize (line 125)
if isempty(self.getIndexSourceStation) || i ~= self.getIndexSourceStation
Error in Network/refreshStruct (line 7)
sanitize(self);
Error in NetworkSolver (line 34)
self.model.refreshStruct(); % force model to refresh
Error in SolverJMT (line 35)
self@NetworkSolver(model, mfilename);
Thank you for your help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I understand now. You used multiple Sources, but LINE requires there's a single Source in the model for technical reasons. You need to use a single Source in JMT and place after it a router to split probabilistically the arrivals.
Alternatively, you can use a single Source in JMT and assign the arriving jobs to different classes (possibly with identical arrival rates if they were the same class in the original model). You can also put a class switch after the Source in JMT.
I will open a ticket to see if in future releases we can support multiple sources in LINE.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
Perhaps, I had to ask from the beginning if LINE accepts managing multi-sources because I tried to run all models in the folders gallery and examples, and I haven't found an example using multi-sources or multi-sinks.
Thank you a lot for your help and quick response.
LINE is a wonderful tool, easy to use. It will be great if it will provide managing multi-sources and multi-sinks in future releases.
Last edit: Ines Gharbi 2022-02-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you very much for your interest and support and please do not hesitate to flag other bugs or feature requests. We'll sort out this issue of multi-sources within JMT2LINE but it will take some weeks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ines, I've checked your model in JMT and what you are doing with the multiple sources can be easily avoided: when you define the classes map them to the same Source node (use a single Source in the model) and then in the Routing section of that Source you configure the routing probabilities to Queue1, Queue2 and Queue3 for each class.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I am trying to convert a JMT model into LINE but I get the following error:
LINE2SCRIPT(JMT2LINE('myModelJMT.jsimg'),'myModelLine.m')
Dot indexing is not supported for variables of this type.
Error in JMT2LINE (line 68)
xsvc{i} = {xsection_i{i}(2).parameter.subParameter};
Any suggestion for this?
Kind regards, Catia
Hi.
This problem is now fixed in the latest commit.
Best wishes,
Giuliano
Hi everyone,
I have a similar problem with the conversion of my JMT model to LINE. I'm trying to concept a model similar to the "jackson network" (multiples sources, multiples sinks, multiple queueus, forks, and joins) using JMT. I received these errors:
Operands to the logical and (&&) and or (||) operators must be convertible to logical scalar values.
Error in Network/sanitize (line 125)
if isempty(self.getIndexSourceStation) || i ~= self.getIndexSourceStation
Error in Network/refreshStruct (line 7)
sanitize(self);
Error in NetworkSolver (line 34)
self.model.refreshStruct(); % force model to refresh
Error in SolverJMT (line 35)
self@NetworkSolver(model, mfilename);
Thank you for your help.
Thanks a lot for the bug report. Can you share the JMT model in this thread? Thanks
PS: I think that if you replace || with | at line 125 it should work.
Hello,
This is my model.
Thank you for your help.
Best Regards,
Ines Gharbi
Computer Engineer, PhD Student in IIoT at CNAM Paris/FS Tunis
President 2019 JCI RADES (JCI TUNISIA)
Director Project "Rades Smart City" * Email: iness.gharbi@gmail.com hebiri@gmail.com Mobile :
+21696337151
<96%20337%20151> // + <96%20337%20151>33624137318*
Le mar. 15 févr. 2022 à 16:58, Giuliano Casale casaleggg@users.sourceforge.net a écrit :
Hi,
This is my model.
I tried to replace || with | at line 125 as you mentioned it but it doesn't work.
Thank you for your help.
Thanks, I've tried it but JMT2LINE works on my LINE and MATLAB R2021a. Which MATLAB are you using? Are you using the latest version of LINE?
Giuliano
I'm using Matlab R 2021a and line-2.0.17
This is the used script to generate the code:
Otherwise, would you please share the source code that you generated.
Thank you for your help
Last edit: Ines Gharbi 2022-02-15
I understand now. You used multiple Sources, but LINE requires there's a single Source in the model for technical reasons. You need to use a single Source in JMT and place after it a router to split probabilistically the arrivals.
Alternatively, you can use a single Source in JMT and assign the arriving jobs to different classes (possibly with identical arrival rates if they were the same class in the original model). You can also put a class switch after the Source in JMT.
I will open a ticket to see if in future releases we can support multiple sources in LINE.
Hi all,
Perhaps, I had to ask from the beginning if LINE accepts managing multi-sources because I tried to run all models in the folders gallery and examples, and I haven't found an example using multi-sources or multi-sinks.
Thank you a lot for your help and quick response.
LINE is a wonderful tool, easy to use. It will be great if it will provide managing multi-sources and multi-sinks in future releases.
Last edit: Ines Gharbi 2022-02-16
Thank you very much for your interest and support and please do not hesitate to flag other bugs or feature requests. We'll sort out this issue of multi-sources within JMT2LINE but it will take some weeks.
Ines, I've checked your model in JMT and what you are doing with the multiple sources can be easily avoided: when you define the classes map them to the same Source node (use a single Source in the model) and then in the Routing section of that Source you configure the routing probabilities to Queue1, Queue2 and Queue3 for each class.
Thank you for your suggestion, I will try this method.