Personal tools

Solution with LS-OPTui

  

Strategy

Strategy

Select a Strategy for Metamodel-based Optimization

 

  1. Select the Strategy tab.strategy.png

  2. Switch the radio button of the section Strategy for Metamodel-based Optimizationto “Sequential with Domain Reduction (SRSM)” so that we can set the "Number of Iterations" later.

 

 

 

 

 

 

 

 

 

Solver

Solver

Define Solver and Input File

 

  1. Select the Solvers tab.solver.png
  2. For Solver Package Name select User-Defined because our example will not work with LS-DYNA but use Perl as the solver.
  3. For Command specify perl (since this is the solver)
  4. For Input File browse the file function.
  5. For Name of Analysis Case enter 1.
  6. Push the Add button.

 

 

 

 

 

 

Variables

Variables

Define the Variables

 

  1. Select the Variables tab.variables.png
  2. For Type of ”X switch the combo box to Variable.
  3. Enter -1 for the Minimum of the variable.
  4. Enter 3 for the Maximum of the variable.
  5. For Type of “Y“switch the combo box to Variable.
  6. Enter -1 for the Minimum of the variable.
  7. Enter 3 for the Maximum of the variable.

 

 

 

 

 

 

Sampling

Sampling

Sampling Panel

 

  1. Select the Sampling Panel.Sampling.png
  2. Switch the radio button of the section “METAMODEL” to “Polynomial” and the radio button of the section “Order” to “Linear”. In “POINT SELECTION” use the default options “D-Optimal” and “Number of Simulation Points per Iteration per Case” = 5.

  

 

 

 

 

 

 

 

Responses

Responses

Responses Panel

 

  1. Select the Responses panel.responses.png
  2. Select USERDEFINED.
  3. We obtain the output of the response with the shell command cat out.txt. This file was written by our perl script. Note: Windows user may use the DOS command type instead of the shell command cat.
  4. For the Response Name we enter "F".
  5. Push the Add button to create the new response

 

 

 

 

 

 

 

 

Objective

Objective

Objective Function

  

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

 

 

 

 

 

 

 

 

 

 

 

 

Run

Run

Run the Optimization

 

  1. Select the Run panel.run.png
  2. For Numer of iterations enter 10.
  3. Push the Run button to start the optimization. (Save the project as com in the same folder where you'd put the file function)


 

 

 

 

 

 

 

 

 

Com-file

Com-file

The created command file may look like this: 

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Command file "com"
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ Generated using LS-OPT Version 4.1
$
"Optimization Problem"
$
$ Created on Fri Nov 19 11:32:44 2010
solvers 1
responses 1
$
$ NO HISTORIES ARE DEFINED
$
$
$ DESIGN VARIABLES
$
variables 2
 Variable 'X' 0.
  Lower bound variable 'X' -1.
  Upper bound variable 'X' 3.
 Variable 'Y' 0.
  Lower bound variable 'Y' -1.
  Upper bound variable 'Y' 3.

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$      OPTIMIZATION METHOD   
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$
Optimization Method SRSM

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$      SOLVER "1"
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$
$ DEFINITION OF SOLVER "1"
$
 solver own '1'
  solver command "perl"
  solver input file "/home/yu/optimierung/function"
$ ------ Pre-processor --------
$   NO PREPROCESSOR SPECIFIED
$ ------ Post-processor --------
$   NO POSTPROCESSOR SPECIFIED
$ ------ Metamodeling ---------
  solver order linear
  solver experiment design dopt
$ ------ Job information ------
  solver concurrent jobs 1
$
$ RESPONSES FOR SOLVER "1"
$
 response 'F' 1 0 "cat out.txt"

$
$ OBJECTIVE FUNCTIONS
$
 objectives 1
 objective 'F' 1
$
$ THERE ARE NO CONSTRAINTS!!!
$
 constraints 0
$
$ 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
  Use GSA
$
$ JOB INFO
$
 iterate 10
STOP