LS-OPT
Solvers
Solvers
In this step the coupling of ANSA with the LS-OPT will be demonstrated. The presented functionality is available since ANSA 12.1.3 and LS-OPT 3.3. In order to skip the previous sections the user can use the rail_final.ansa file where the morphing actions and the Optimization Task are already defined. However there is the need to rename the file as rail.ansa.
→ Open LS-OPTui.
Define Pre-Processor and Solver
| ![]() |
| ![]() |
| The input file main.key. | *KEYWORD |
Variables
Variables
Check Variables
Note that the created variables are read in from the file rail_DV.txt. | ![]() |
Sampling
Sampling
Sampling
| ![]() |
Responses
Responses
Create the Response (Accel.)
| ![]() |
Create the Response (Displ.)
* NOTE: 7710 is the ID of the reference node where acceleration and intrusion will be measured. | ![]() |
Create the Response (Mass)
| ![]() |
Objective
Objective
Objective Function
| ![]() |
Constraints
Constraints
Constraints
| ![]() |
Run
Run
Run the Optimization
| ![]() |
Com-file
Com-file
The created command file may look like this:
"Optimization Problem"
$ Created on Tue Apr 29 10:59:44 2008
solvers 1
responses 3
$
$ NO HISTORIES ARE DEFINED
$
$
$ DESIGN VARIABLES
$
variables 4
Variable 'Emboss_Depth' -1
Lower bound variable 'Emboss_Depth' -6
Upper bound variable 'Emboss_Depth' 0
Variable 'Emboss_Width' 1
Variable 'Emboss_Width' discrete {-2 -1 0 1 2 }
Variable 'Emboss_Dist' 1
Lower bound variable 'Emboss_Dist' -5
Upper bound variable 'Emboss_Dist' 10
Variable 'Thickness' 1.2
Variable 'Thickness' discrete {0.8 0.9 1 1.2 1.4 1.7 }
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ OPTIMIZATION METHOD
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$
Optimization Method SRSM
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ SOLVER "case_1"
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$
$ DEFINITION OF SOLVER "case_1"
$
solver dyna960 'case_1'
solver command "dyn971"
solver input file "main.key"
solver check output on
solver compress d3plot off
$ ------ Pre-processor --------
prepro ANSA
prepro command "ansa.sh"
prepro database file "rail_final.ansa"
prepro input file "rail_DV.txt"
$ ------ Metamodeling ---------
solver order linear
solver experiment design dopt
$ ------ Job information ------
solver concurrent jobs 1
$
$ RESPONSES FOR SOLVER "case_1"
$
response 'acceleration' 1 0 "BinoutResponse -res_type Nodout -cmp x_acceleration -id 7710 -select MIN -start_time 0.0000 -filter SAE -filter_freq 180.000"
response 'displacement' 1 0 "BinoutResponse -res_type Nodout -cmp x_displacement -id 7710 -select MIN -start_time 0.0000 -filter SAE -filter_freq 180.000"
response 'mass' 1 0 "DynaMass 2 MASS"
$
$ OBJECTIVE FUNCTIONS
$
objectives 1
objective 'acceleration' 1
$
$ CONSTRAINT DEFINITIONS
$
constraints 2
constraint 'displacement'
upper bound constraint 'displacement' -300
constraint 'mass'
upper bound constraint 'mass' 1.8
$
$ JOB INFO
$
iterate param design 0.01
iterate param objective 0.01
iterate param stoppingtype or
iterate 10
STOP
Download LS-OPT
Download LS-OPT
The complete data set (input and command files) is available for download as tar.gz ANSA_LS-OPT.tar.gz or as .zip ANSA_LS-OPT.zip.










