Personal tools

Solution with LS-OPTui

Task

Task

Open the file com.2bar.rbdo.start.

RBDO Task

  1. From the main menu bar select Task → Metamodel-based → RBDO.
rbdo1.png

 

Solvers

Solvers

Define the solver (Linux version)

  1. Select the Solvers panel. solvers_linux1.png
  2. For Command type in echo N o r m a l. This signals LS-OPT a normal termination of the solver.
  3. For Name of Analysis Case enter SOLVER_1.
  4. Push the Add button.

 

 

 

 

 

 

 

 

 

Define the solver (Windows version) solvers_win1.png

  1. A direct call of the command echo N o r m a l doesn't work for the Windows version. We have to save the command line type N o r m a l in a .bat file and take it as the solver. NOTE: It's necessary to give the complete path of the solver command.

 

 

 

 

 

 

 

 

 

Distribution

Distribution

Statistical Distribution

  1. Select the Distribution panel.
  2. Choose Normal Type.
  3. For Mean enter 0.
  4. For Standard Dev enter 0.1.
  5. Type in a Distribution Name, e.g. area_dist.
  6. Push the Add button.
dist_area1.png
  1. Choose Uniform Type.
  2. For Lower enter 0.
  3. For Upper enter 0.2.
  4. Type in a Distribution Name, e.g. base_dist.
  5. Push the Add button.
dist_base1.png

 

Variables

Variables

Change Variable

  1. Select the Variables panel.
  2. Choose area_dist as the Distribution of the variable Area.
  3. Choose base_dist as the Distribution of the variable Base.
variables_rbdo1.png

Sampling

Sampling

Sampling Panel

  1. Select the Sampling Panel.
  2. Switch the Order from Linear to Quadratic.
sampling_rbdo1.png

Objective

Objective

Objective Function

  1. Select the Objective panel.
  2. Choose the Response Weight as objective.
objective_rbdo1.png

Constraint

Constraint

Constraints Panel

  1. Select the Constraints panel.
  2. Choose the Response Stress as constraint.
  3. For the probability of exceeding the upper bound of the constraint enter 0.05.
constraint_rbdo1.png

Run

Run

Run Panel

  1. Select the Run panel.
  2. Push the Run button to start the optimization.
run_rbdo1.png

Com-file

Com-file

The created command file may look like this:

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Command file "com.2bar.robust.start"
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ Generated using LS-OPT Version 4.1
$
"Two-bar Truss"
$
$ Created on Wed Dec 15 10:20:36 2010
solvers 1
responses 2
$
$ NO HISTORIES ARE DEFINED
$
$
$ PROBABILISTIC DISTRIBUTIONS
$
distribution 2
 distribution 'area_dist' NORMAL  0  0.1  
 distribution 'base_dist' UNIFORM  0  0.2  
$
$ DESIGN VARIABLES
$
variables 2
 Variable 'Area' 2.
  Lower bound variable 'Area' .2
  Upper bound variable 'Area' 4.
  Range 'Area' 4.
  variable 'Area' distribution 'area_dist'
 Variable 'Base' .8
  Lower bound variable 'Base' .1
  Upper bound variable 'Base' 1.6
  Range 'Base' 1.6
  variable 'Base' distribution 'base_dist'

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$      SOLVER "SOLVER_1"
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$
$ DEFINITION OF SOLVER "SOLVER_1"
$
 solver own 'SOLVER_1'
  solver command "echo N o r m a l"
$ ------ Pre-processor --------
$   NO PREPROCESSOR SPECIFIED
$ ------ Post-processor --------
$   NO POSTPROCESSOR SPECIFIED
$ ------ Metamodeling ---------
  solver order quadratic
  solver experiment design dopt
$ ------ Job information ------
  solver concurrent jobs 1
$
$ WARNING - NO RESPONSES DEFINED FOR SOLVER "SOLVER_1"
$
$
$ RESPONSE EXPRESSIONS FOR SOLVER "SOLVER_1"
$
 response 'Weight' expression { Area * sqrt(1+Base*Base) }
 response 'Stress' expression { 0.124 * sqrt(1+Base*Base) * (8/Area + 1./Area/Base) }

$
$ OBJECTIVE FUNCTIONS
$
 objectives 1
 objective 'Weight' 1
$
$ CONSTRAINT DEFINITIONS
$
 constraints 1
 constraint 'Stress'
  upper bound constraint 'Stress' 1
  probability upper bound constraint 'Stress' 0.05
$
$ PARAMETERS FOR METAMODEL OPTIMIZATION
$
 Metamodel Optimization Strategy DOMAINREDUCTION
$
  iterate param design 0.01
  iterate param objective 0.01
  iterate param stoppingtype and
$
$ OPTIMIZATION ALGORITHM
$
 Optimization Algorithm hybrid simulated annealing
$
$ JOB INFO
$
 iterate 10
STOP