Skip to content. | Skip to navigation

Personal tools
Personal tools


Setup of a simple optimization problem in LS-OPT


 Working Directory and Extraction of necessary files

  • Create a working directory in the desired location to keep the main command file, input files and other command files as well as the LS-OPT program output. Make sure that there are no blanks in the path.


LS-OPT user interface (LS-OPTui)

  • On Linux, the user interface is launched with the command

lsoptui [command_file.lsopt]

  • On Windows, the user interface is launched using

A command file can be opened directly by drag and drop or by double-clicking on the .lsopt filename.

Project Details


Open the graphical user interface of LS-OPT. Enter the required specifications, to generate an LS-OPT project file, by the following steps:

  1. Select the Working Directory of the LS-OPT project.
  2. Select a suitable name for the file under Filename. The extension .lsopt is appended by LS-OPT.
  3. Choose a suitable name under the Initial Sampling name.
  4. Choose a suitable name under the Initial Stage name.
  5. Press the Create button to initiate the formation of the input file.




  • The main GUI window of the LS-OPT emerges.
  • The process flow of the selected optimization task is visualized.
  • Selecting a perticular box opens the respective dialog.



Home Screen Process Flowchart


  • Select the icon task_1_1 from the control bar of the main GUI window. A window Task selection shall open.


Define the Main Task


  • The Main Task of LS-OPT can be selected among the several options available. Push the radio button for the corresponding task.
  • The selection of the Strategy for Metamodel-based Optimization is made to any of the options. The Strategy selection is only available for Metamodel-based Optimization and RBDO/Robust Parameter Design.
  • Single Stage: Sampling points are chosen only once and the whole design space is taken as the region of interest. Therefore no iteration is needed.
  • Sequential: Sampling is done sequentially, only a small number of points are chosen for each iteration.
  • Sequential with Domain Reduction: It is the same as the Sequential Strategy, but in each iteration the domain reduction strategy is used to reduce the size of the region of interest.
  • The LS-OPT main GUI window visualizes the process of the selected task and strategy.






Now set up the process chain. In the simplest case, a single Stage is required to interface with a solver, e.g. LS-DYNA. In more complex cases further stages can be added, e.g. for a pre-processor or post-processor.

Home Screen Process Flowchart


  1. Select the already available Stage box in the process flow (here crash).


A window Stage stagename shall open.


Define Input File Name and Command

  1. For Command specify the solver executable .
  2. For Input File browse the parameterized file.
  3. Choice on handling number of concurrent jobs can be made suitably in this section.



Design Parameters.


  • The design parameters in the input files specified in the Setup can be viewed.
  • For LS-DYNA, the input files are usually parameterized using *PARAMETER
  • Otherwise the LS-OPT parameter format <<parameter_name>> may be used.




Now define the results to be extracted from the solver output database (to be used as objectives or constraints in the optimization phase) using the interfaces available in the Histories (curve data) or Responses (scalar values) tab, respectively.



  1. Select a response type from the several options available in Add new  column located on the right side. A response can be a result of a mathematical operation applied to a time history curve or a previously defined response, or can be directly extracted using the standard LS-DYNA interfaces or a user-defined interface.
  • Upon selection a seperate window appears where the user can define the reponse properties.
  1. The responses defined can be reviewed later for alterations if necessary.




Home Screen Process Flowchart


  • Select the Setup box. 


A window Problem global setup shall open.


Define the Parameters


Variables form the input file are automatically displayed.

  1. Select the Type of the desired variables. In most cases Continuous variables are used.
  2. Enter the requested values, i.e. Starting value, Minimum and Maximum values to define the design space for a continious variable..



Home Screen Process Flowchart


  • Select the Sampling crash  box. 


A window Sampling crash shall open.


Define Metamodel Settings


  • Select the Metamodel, its Order and Point selection types, or just use the default values.

The Build Metamodels box is coupled to the same dialog as the Sampling box.


It is displayed at the end of the process to correctly represent the optimization process.






Home Screen Process Flowchart


  • Select the Optimization box.


A window Optimization shall open.



  • Objectives are the functions to be minimized. From the previously defined Responses or Composites enlisted under the Add new  section, the user has the choice to select a single or multiple objective.
  • Make sure to select appropriate weights if multiple objectives are defined.





  • Constraints are the functions to be satisfied. From the previously defined Responses and Composites, select the desired constraints and specify the lower and upper bounds, respectively. 
  • Use the default settings for the algorithm used for the optimization on the metamodel (Algorithms tab).



Home Screen Process Flowchart


  • Select the Termination criteria box.


A window Termination criteria shall open.

  • Change the Maximum number of Iterations to the desired value.
  • Use the default values for the other features.





Run LS-Opt.


  • Select the Run button from the Control Bar.  


  • It is recommended to first run Baseline Run to check if the stage process chain works correctly and the results are extracted as expected.
  • Then select Normal Run to start the full task.
  • During Run LS-OPT presents an option to view the Progress of the run sequence at every stage, by selecting the LED button adjacent to the Stage box in the GUI.







  • Use the Viewer to evaluate the optimization results by selecting the icon LS-OPT Viewer on the control bar of the main LS-OPT GUI window.
  • The Viewer provides features to display metamodels, simulation results and the optimization progress, as well as sensitivities and statistics. 



Metamodel Surface

You can plot the metamodel surface you have built. The plot can be zoomed and rotated. You may also add the sampling points (both feasible and infeasible) and the optimum points (predicted and computed) to the plot. This is a visual way to check the results.




Which variable is the most important for a response? The sensitivity analysis shows the influence of all the variables on the selected response. There are two analysis methods to choose.

  • Linear ANOVA (Analysis of Variance)
  • GSA/Sobol (Sobol's Global Sensitivity Analysis)



Optimization History

Progress of a variable, a response or other entities during the optimization process. If the strategy Sequential with Domain Reduction is applied, the blue curves show the shrink of the domain of a variable.