Tutorial/Help on HSTBatch

User: "Akhil_22546"
Altair Community Member
Updated by Akhil_22546

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.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Diana_38240"
    Altair Employee
    Accepted Answer
    Updated by Diana_38240

    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.

    image

    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