callaltairbatch

Runs the Altair Compute Console to submit a job to a specified solver using the specified target file. By default, the job will run synchronously and the function will wait for the process to complete. If Compose is not installed in the same directory with the Altair solvers, the setaltairfolder option must be called before running callaltairbatch.

Syntax

callaltairbatch (stringSolver, stringFilepath, ...)

R1 = callaltairbatch (stringSolver, stringFilepath, ...)

[ R1, R2 ] = callaltairbatch (stringSolver, stringFilepath, ...)

Inputs

stringSolver
Solver name to be invoked.
Type: string
stringFilepath
File name to be submitted to the above solver.
Type: string
...
Additional arguments will all be strings appended to the call to launch Altair Compute Console.
Type: string

Outputs

R1
The status of the system command to launch Altair Compute Console.
Type: integer
R2
Contains any text output by the Altair Compute Console or the solver or program executed.
Type: string

Examples

callaltairbatch('RD', 'RDTest.rad')
(No output when no output arguments are specified.
R1 = callaltairbatch('RD', 'RDTest.rad')
R1 = 0
[ R1, R2 ] = callaltairbatch('RD', 'RDTest.rad')
R1 = 0
	  R2 = Output from a solver call is returned.  Output from a solver call can be quite lengthy and is not included here.

Comments

callaltairbatch leverages shell commands and as such, it is necessary to use double quotes in parameter values if they contain spaces, otherwise the spaces will be interpreted as new arguments. Other default shell command rules and best practices apply as well.