Hypergraph
History and response result extraction using Hypergraph
The program Hypergraph from Altair may be used to extract response and history results in LS-OPT respectively.
Response Results
Hypergraph has the capability to write scalar values to a file. In the example below, the maximal value of a curve is exported to the file Acc_max.
{mynote = max(p1w1c2.y)}
max: {mynote}
{open "Acc_max"}
{mynote}
{close}
The maximal value of the curve is extracted to mynote, displayed on the screen, and everything between open and close is exportet to the file Acc_max.
To use that value as LS-OPT response result, it has to be extracted to standard output.
response 'Acc_max' 1.0 0.0 "cat Acc_max"
Hypergraph is executed in the solver script.
History Results
For extracting history curves, Hypergraph controlled by a *.tcl file may be applied. The *.tcl file exports a curve through a *.mvw file to a file named LsoptHistory, which is automatically imported to LS-OPT.
