Tutorial/Help on HSTBatch
Hello Community,
I want to run multiple hyperstudies without having to manually click everytime. FOR MULTIPLE OPERATIONS IN THE SAME .hstudy: One solution I found was to use hstbatch.exe which I am able to run through CMD but if I try to open the hstbatch.exe then it shutsdown automatically. FOR MULTIPLE OPERATIONS IN MULTIPLE .hstudy: Also, another solution I found was to use .bat file in hstbatch.exe but not enough information was found to try and execute this.
It'll be great if someone can help.
Best Answer
-
Akhil_22546 said:
Hello Diana,
Thank you for your time. I did indeed find the link you mentioned but I am not familiar with generation and execution of .bat file. Also, if I see correctly the highlighted section of the code in the image only shows study_2.hstx being executed, if this is correct then how do I run all the 3 studies mentioned in the image.
Hello Akhil,
The purpose of the *.bat file mentioned in the blog is to run together several command lines.
If you want to run one hstbatch session to solve *.hstudy or *.hstx, you can do it from cmd window.
If you want to launch several hstbatch sessions, each one solving a distinct *.hstudy or *.hstx, you can set the command lines in a *.bat. This is how the bat file looks like in this example with 3 studies. Note that the bat and the archives are all located in the same folder.For information, you can use -studyfile Study_1.hstudy instead of -archivefile Study_1.hstx.
Hope it helps. If not, please provide more details on what you attempt to do.My understanding is that you have prepared a study with a given Setup, and several approaches (DOE, Optimization,..) ready to be solved, and you would like to run hstbatch to solve all the approaches.
Is that what you attempt to do?
Regards,
Diana
1
Answers
-
Hello Akhil,
I confirm you that it is possible to use hstbatch to solve previously prepared disctinct studies.
Please look at the blog below for more information:
HyperStudy Tips&Tricks #18: Run automatically disctint studies
https://community.altair.com/community?id=community_blog&sys_id=adc1f4581bbc2510c4dfdbd9dc4bcb5dPlease note that you would need to enable the tasks (Write, Execute, Extract) that you would like to run in batch.
Hope it helps. Let un know if further questions.
Diana
Altair Suupport team
0 -
Diana M._20503 said:
Hello Akhil,
I confirm you that it is possible to use hstbatch to solve previously prepared disctinct studies.
Please look at the blog below for more information:
HyperStudy Tips&Tricks #18: Run automatically disctint studies
https://community.altair.com/community?id=community_blog&sys_id=adc1f4581bbc2510c4dfdbd9dc4bcb5dPlease note that you would need to enable the tasks (Write, Execute, Extract) that you would like to run in batch.
Hope it helps. Let un know if further questions.
Diana
Altair Suupport team
Hello Diana,
Thank you for your time. I did indeed find the link you mentioned but I am not familiar with generation and execution of .bat file. Also, if I see correctly the highlighted section of the code in the image only shows study_2.hstx being executed, if this is correct then how do I run all the 3 studies mentioned in the image.
0 -
Akhil_22546 said:
Hello Diana,
Thank you for your time. I did indeed find the link you mentioned but I am not familiar with generation and execution of .bat file. Also, if I see correctly the highlighted section of the code in the image only shows study_2.hstx being executed, if this is correct then how do I run all the 3 studies mentioned in the image.
Hello Akhil,
The purpose of the *.bat file mentioned in the blog is to run together several command lines.
If you want to run one hstbatch session to solve *.hstudy or *.hstx, you can do it from cmd window.
If you want to launch several hstbatch sessions, each one solving a distinct *.hstudy or *.hstx, you can set the command lines in a *.bat. This is how the bat file looks like in this example with 3 studies. Note that the bat and the archives are all located in the same folder.For information, you can use -studyfile Study_1.hstudy instead of -archivefile Study_1.hstx.
Hope it helps. If not, please provide more details on what you attempt to do.My understanding is that you have prepared a study with a given Setup, and several approaches (DOE, Optimization,..) ready to be solved, and you would like to run hstbatch to solve all the approaches.
Is that what you attempt to do?
Regards,
Diana
1 -
Diana M._20503 said:
Hello Akhil,
The purpose of the *.bat file mentioned in the blog is to run together several command lines.
If you want to run one hstbatch session to solve *.hstudy or *.hstx, you can do it from cmd window.
If you want to launch several hstbatch sessions, each one solving a distinct *.hstudy or *.hstx, you can set the command lines in a *.bat. This is how the bat file looks like in this example with 3 studies. Note that the bat and the archives are all located in the same folder.For information, you can use -studyfile Study_1.hstudy instead of -archivefile Study_1.hstx.
Hope it helps. If not, please provide more details on what you attempt to do.My understanding is that you have prepared a study with a given Setup, and several approaches (DOE, Optimization,..) ready to be solved, and you would like to run hstbatch to solve all the approaches.
Is that what you attempt to do?
Regards,
Diana
Hello Diana,
Thank you for the answer. It solves the problem. Just one question related to this, Does the hstbatch.exe open as an individual application, i.e., without cmd?
0