.. _MOsetupFile: Muscle Optimizer setup file ########################### There are 7 properties that need to be specified in a Muscle Optimizer setup file: - The model to which the Muscle Optimizer is to be applied; - The model to use as reference; - The coordinates to consider during the optimization process; - The muscles for which optimized parameters will be calculated; - The number of sampling points per coordinate; - The minimum degree interval allowed when sampling coordinate ranges; - The location where to write the optimized output model A sample muscle optimizer setup file is provided in the example below: .. literalinclude:: ../../test/Example1/setup_example1.xml :language: xml :encoding: latin-1 Muscle Optimizer Execution Parameters ------------------------------------- The parameters/properties for running the Muscle Optimizer tool are enclosed inside the opening and closing tags ```` and ````. The name attribute *name="Hamner_optimized_2"* can be used to specify the execution name, and it will be used as name for the optimized output model. Model ===== The ```` property specifies the file name of the OpenSim (.osim) model for which you want to optimize muscle parameters, so that the same operative range as a reference model is kept. Typically this will be a scaled model generated by the Scale Tool, or a subject-specific model generated from medical images. Reference model =============== The ```` property specifies the file name of the OpenSim (.osim) model to be used as reference for muscle optimization, i.e. the operational ranges of muscles included in this model are used to calculate muscle parameters in the model defined at the previous point. Coordinates =========== The ```` property specifies which coordinates to consider when optimizing muscle parameters. If the property is empty or is *ALL*, all input model coordinates are considered. Limiting the coordinate set might be useful to ignore degrees of freedom that are not relevant for the tasks that the optimized model will be employed for, thus reducing computation time and accuracy for the relevant degrees of freedom. Note that all the enabled coordinates must be present in both input and reference models. Muscles ======= The ```` property specifies for which muscles the optimization is to be performed. If the property is empty or is *ALL*, all input model muscles are considered. Note that all the enabled muscles must be present in both input and reference models. Number of evaluation points =========================== The ```` property is an integer specifying the number of sampling points to consider for each coordinate of the model that is involved in the action of a muscle. Default value: 10. Minimum degree increment ======================== The ```` property specifies the minimum interval between two consecutive sampling points on each coordinate. This is useful to avoid over-sampling on coordinates with a very small range, which might affect optimization on other coordinates with larger range of motion. Output file =========== The ```` property specifies the file name of the OpenSim (.osim) model that will be created after the optimization is completed.