Link Search Menu Expand Document
Converted document
 Section 7.2: Running a Parameter Optimization Up Chapter 7: Parameter Optimization Chapter 8: Troubleshooting 

7.3 An Example Input File

Below follows a complete example of an optimization input file.
---
<febio_optimize version="2.0">
  <Options>
    <obj_tol>0.001</obj_tol>
    <f_diff_scale>0.001</f_diff_scale>
  </Options>
  <Parameters>
    <param name="fem.material[0].E">1, 0, 5</param>
    <param name="fem.material[0].v">-0.5, 0, 0.5</param>
  </Parameters>
  <Objective type="data-fit">
    <fnc type="parameter">
      <param name="fem.rigidbody('rigid').Fz"/>
    </fnc>
    <data>
      <point>0.0, 0</point>
      <point>0.5, 1</point>
      <point>1.0, 2</point>
    </data>
  </Objective>
</febio_optimize>
Comments:
  1. Notice that the xml root element is febio_optimize for the optimization input file. The version number has to be 2.0 (the 1.0 version is no longer supported).
  2. The FEBio input file that contains the actual FE model data has to defined on the command line using the -i command option. This file is a standard FEBio input file that defines all geometry, materials, boundary conditions and more.
  3. The initial values of the parameters are defined in the optimization input file. The values in the model input file are ignored.
  4. The Options section is included here, but can be omitted. If omitted default values will be used for all control parameters.
 Section 7.2: Running a Parameter Optimization Up Chapter 7: Parameter Optimization Chapter 8: Troubleshooting