How to launch Optimate ?
Hi!
I am working on optimization problems using the add-on Optimate in Star-CCM+. I want to launch Optimate in batch using a command line (Linux). I have followed the steps from the manual : create environment variables and enter the command "[STAR-CCM+_INSTALL_DIR]/optimate/[VERSION]/LX64/solver/Optimate i=Agent_Group_1.in overwrite skipEvalCheck". I get an error : END of HEEDS RUN Somehow, when I launch Optimate using the interface on Star-CCM+, the calculation is performed. Do you have any idea on how we can launch Optimate without opening the Star-CCM+ interface :confused: ? Thank you for your help |
That's not the complete error is it? Please post the rest.
|
Error output Optimate
Thanks for your reply.
After defining the environment variables, I've used the command line in my batch window : [Directory of solver]/Optimate i=Agent_Group_1.in (knowing that this same input file is running when I launch it via the interface on Star-CCM+). I get this error within the file "Agent_Group_1.mes" : Search parameter input file name for this process is: Agent_Group_1.in *ERROR The required environment variable HEEDS_ROOT is not set. Run exiting due to an error *NOTE ************END OF RUN INFORMATION************ Elapsed time: 0 seconds Current time: Tue May 16 11:40:35 2017 *NOTE End of HEEDS run. I've checked, and my environment variables are well defined. Any ideas ? |
Please, anyone who launched Optimate without using the interface Star-CCM+ ?
|
Optimate obviously disagrees that the environment variables are set. I would try launching it from a script and set the variables in that script.
|
1 Attachment(s)
I tried to launch Optimate from a script (image attached).
I get the same error : Search parameter input file name for this process is: Agent_Group_1.in *ERROR The required environment variable HEEDS_ROOT is not set. Run exiting due to an error *NOTE End of HEEDS run. Any leads, community ? |
I'm not sure what shell you're using but ensure that's the proper method of setting environment variables. Before you call optimate in your script you should be able to say:
echo $HEEDS_ROOT and get back the path you specified. Normally in bash/csh you will need an export/setenv command to set an environment variable. Also note that an environment variable is not the same as a local variable. Like I said I'm not sure what shell you're using, but to me it looks like you are assigning the latter, not the former. You can test if you set an environment variable by running: env | grep HEEDS_ROOT If this returns nothing then you have not set the variable properly. |
All times are GMT -4. The time now is 23:24. |