LS-OPT
Strategy
Strategy
- Select the Strategy panel.

- Switch the radio button of the section “Strategy for Metamodel-based Optimization” to "Sequential with Domain Reduction (SRSM)".
- Select for Tolerance required for termination Design OR Objective.
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
*CONTROL_TERMINATION
$ ENDTIM ENDCYC DTMIN ENDENG ENDMAS
60. 0 0. 0. 0.
*DATABASE_BINARY_D3PLOT
1.
*INCLUDE
ansaout
*END |
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:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Command file "com.ansa"
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ Generated using LS-OPT Version 4.1
$
"Optimization Problem"
$
$ Created on Mon Mar 21 14:37:02 2011
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 "ls971_R4_2"
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.ansa"
prepro input file "rail_DV.txt"
$ ------ Post-processor --------
$ NO POSTPROCESSOR SPECIFIED
$ ------ 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 MAX -start_time 0.0000 -filter SAE -filter_freq 180.0"
response 'displacement' 1 0 "BinoutResponse -res_type Nodout -cmp x_displacement -id 7710
-select TIME "
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
$
$ PARAMETERS FOR METAMODEL OPTIMIZATION
$
Metamodel Optimization Strategy DOMAINREDUCTION
$
iterate param design 0.01
iterate param objective 0.01
iterate param stoppingtype or
$
$ OPTIMIZATION ALGORITHM
$
Optimization Algorithm hybrid simulated annealing
Use GSA
$
$ JOB INFO
$
iterate 10
STOP
Download LS-OPT
Download LS-OPT
The complete data set (input and command files) is available for download:
For Linux
For Windows










