<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Comput. Neurosci.</journal-id>
<journal-title>Frontiers in Computational Neuroscience</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Comput. Neurosci.</abbrev-journal-title>
<issn pub-type="epub">1662-5188</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fncom.2016.00143</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Neuroscience</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Predictive Simulation of Reaching Moving Targets Using Nonlinear Model Predictive Control</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Mehrabi</surname> <given-names>Naser</given-names></name>
<xref ref-type="author-notes" rid="fn001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/241611/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Sharif Razavian</surname> <given-names>Reza</given-names></name>
<uri xlink:href="http://loop.frontiersin.org/people/217355/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Ghannadi</surname> <given-names>Borna</given-names></name>
<uri xlink:href="http://loop.frontiersin.org/people/402602/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>McPhee</surname> <given-names>John</given-names></name>
</contrib>
</contrib-group>
<aff><institution>Systems Design Engineering, University of Waterloo</institution> <country>Waterloo, ON, Canada</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Massimo Sartori, University of G&#x000F6;ttingen, Germany</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Leonardo Abdala Elias, University of Campinas, Brazil; Ton Van Den Bogert, Cleveland State University, USA</p></fn>
<fn fn-type="corresp" id="fn001"><p>&#x0002A;Correspondence: Naser Mehrabi <email>nmehrabi&#x00040;uwaterloo.ca</email></p></fn>
</author-notes>
<pub-date pub-type="epub">
<day>13</day>
<month>01</month>
<year>2017</year>
</pub-date>
<pub-date pub-type="collection">
<year>2016</year>
</pub-date>
<volume>10</volume>
<elocation-id>143</elocation-id>
<history>
<date date-type="received">
<day>14</day>
<month>09</month>
<year>2016</year>
</date>
<date date-type="accepted">
<day>20</day>
<month>12</month>
<year>2016</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2017 Mehrabi, Sharif Razavian, Ghannadi and McPhee.</copyright-statement>
<copyright-year>2017</copyright-year>
<copyright-holder>Mehrabi, Sharif Razavian, Ghannadi and McPhee</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license>
</permissions>
<abstract>
<p>This article investigates the application of optimal feedback control to trajectory planning in voluntary human arm movements. A nonlinear model predictive controller (NMPC) with a finite prediction horizon was used as the optimal feedback controller to predict the hand trajectory planning and execution of planar reaching tasks. The NMPC is completely predictive, and motion tracking or electromyography data are not required to obtain the limb trajectories. To present this concept, a two degree of freedom musculoskeletal planar arm model actuated by three pairs of antagonist muscles was used to simulate the human arm dynamics. This study is based on the assumption that the nervous system minimizes the muscular effort during goal-directed movements. The effects of prediction horizon length on the trajectory, velocity profile, and muscle activities of a reaching task are presented. The NMPC predictions of the hand trajectory to reach fixed and moving targets are in good agreement with the trajectories found by dynamic optimization and those from experiments. However, the hand velocity and muscle activations predicted by NMPC did not agree as well with experiments or with those found from dynamic optimization.</p>
</abstract>
<kwd-group>
<kwd>reaching</kwd>
<kwd>NMPC</kwd>
<kwd>prediction horizon</kwd>
<kwd>motor control</kwd>
</kwd-group>
<counts>
<fig-count count="9"/>
<table-count count="3"/>
<equation-count count="16"/>
<ref-count count="50"/>
<page-count count="10"/>
<word-count count="6741"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>Introduction</title>
<p>The human central nervous system (CNS), consisting of brain, and spinal cord, is responsible for controlling and maintaining body motions. As first formulated by Bernstein (<xref ref-type="bibr" rid="B3">1967</xref>), the CNS simultaneously coordinates the kinematics and kinetics of body motions, despite uncertain/unknown (future) trajectories and the redundancy in muscle actuators. As an example, in a goal-directed planar reaching task, where only the final position of the hand is specified, an infinite solution set of hand trajectories and muscle activation patterns exist to reach the final position. The early observations of reaching and pointing tasks led to the well-known &#x0201C;Minimum-X&#x0201D; models [e.g., minimum-jerk model (Flash and Hogan, <xref ref-type="bibr" rid="B8">1985</xref>; Wada et al., <xref ref-type="bibr" rid="B48">2001</xref>), minimum-torque-change model (Uno et al., <xref ref-type="bibr" rid="B47">1989</xref>), minimum-variance model (Harris and Wolpert, <xref ref-type="bibr" rid="B13">1998</xref>), and minimum-work model (Soechting et al., <xref ref-type="bibr" rid="B38">1995</xref>)] to predict the hand trajectory. These models hypothesize that the CNS coordinates the body movement such that an exertion (X) is minimized. Later, this hypothesis is extended to consider physiologically-motivated exertions such as muscle activation effort (Crowninshield and Brand, <xref ref-type="bibr" rid="B5">1981</xref>; Happee and Van der Helm, <xref ref-type="bibr" rid="B12">1995</xref>; Ackermann and van den Bogert, <xref ref-type="bibr" rid="B1">2010</xref>), metabolic energy expenditure (Anderson and Pandy, <xref ref-type="bibr" rid="B2">2001</xref>; Peasgood et al., <xref ref-type="bibr" rid="B33">2006</xref>), and muscle fatigue (Sharif Razavian and McPhee, <xref ref-type="bibr" rid="B36">2015</xref>).</p>
<p>In computer simulations, the Minimum-X model has been successfully implemented using dynamic optimization (DO) to predict the average human motion for a given task. A common DO approach parameterizes the muscle activation profiles for the period of motion and searches the feasible space to find the profiles that minimize X (Davy and Audu, <xref ref-type="bibr" rid="B6">1987</xref>; Yamaguchi and Zajac, <xref ref-type="bibr" rid="B49">1990</xref>; Neptune and Hull, <xref ref-type="bibr" rid="B30">1998</xref>; Anderson and Pandy, <xref ref-type="bibr" rid="B2">2001</xref>; Kaplan and Heegaard, <xref ref-type="bibr" rid="B16">2001</xref>; Sha and Thomas, <xref ref-type="bibr" rid="B35">2013</xref>; Kistemaker et al., <xref ref-type="bibr" rid="B17">2014</xref>). This approach provides an open-loop (feedforward) command of muscle activations to control the given task. This command can represent the descending command of a well-repeated/well-learned task [e.g., platform diving (Koschorreck and Mombaur, <xref ref-type="bibr" rid="B18">2011</xref>)]. In this model, the CNS only recalls the learned information, and does not intelligently adjust the commands in real-time. However, during conscious voluntary movements, the CNS has to continuously update the motor commands to correct for errors (Todorov, <xref ref-type="bibr" rid="B42">2004</xref>). For example, previous studies (Sarlegna and Pratik, <xref ref-type="bibr" rid="B34">2015</xref>) on pointing and reaching have shown that the CNS constantly updates the hand trajectory based on sensory (feedback) information. This sensory information can be received from vision, proprioception, audition, the vestibular system, and internal models that can predict the motion (Desmurget and Grafton, <xref ref-type="bibr" rid="B7">2000</xref>).</p>
<p>Dynamic optimization implementation of minimum-X models raises an interesting question: does the CNS predict the trajectory at the beginning of the motion? Or does it constantly readjust the trajectory? If the latter is true, how far in advance does the CNS predict the motion, and how does that affect the motion? This article focuses on these questions and provides a computational platform to study the effects of the prediction horizon using optimal feedback control theory. Optimal control methods have been previously used to find a unique solution for motor coordination (Meyer et al., <xref ref-type="bibr" rid="B27">1988</xref>; Loeb et al., <xref ref-type="bibr" rid="B23">1990</xref>; Sporns and Edelman, <xref ref-type="bibr" rid="B39">1993</xref>; Kuo, <xref ref-type="bibr" rid="B20">1995</xref>; Anderson and Pandy, <xref ref-type="bibr" rid="B2">2001</xref>; Todorov and Jordan, <xref ref-type="bibr" rid="B44">2002b</xref>; Liu and Todorov, <xref ref-type="bibr" rid="B21">2007</xref>); however, there are few applications of optimal feedback control to a nonlinear redundantly-actuated musculoskeletal model. The LQR (linear quadratic regulator) and LQG (linear quadratic Gaussian) control methods have been applied to a linear arm model to describe the hand trajectory (Harris and Wolpert, <xref ref-type="bibr" rid="B13">1998</xref>; Todorov and Jordan, <xref ref-type="bibr" rid="B43">2002a</xref>; Liu and Todorov, <xref ref-type="bibr" rid="B21">2007</xref>). Later, to control the nonlinear dynamics of the neuromuscular system, an iterative LQG (iLQG) controller has been developed, in which the nonlinear model is iteratively linearized (Todorov and Li, <xref ref-type="bibr" rid="B45">2005</xref>).</p>
<p>In the present research, a nonlinear model predictive controller (NMPC) with a finite prediction horizon is employed. Predicting infinitely into the future is highly improbable in humans, and a finite prediction horizon allows more realistic simulation. The NMPC allows us to consider the complexity and nonlinearity of the musculoskeletal system without compromising the accuracy and optimality, as occurs using model linearization. It can be formulated to simulate trajectory tracking and goal-oriented tasks with both fixed and moving targets where it only corrects the deviations from the task goal (Todorov and Jordan, <xref ref-type="bibr" rid="B43">2002a</xref>). The NMPC is a simultaneous control method because the optimal trajectory and its required muscular activities are calculated at the same time. To the best of the authors&#x00027; knowledge, this work is the first use of NMPC for fully predictive simulation of human reaching tasks.</p>
<p>In this research, we are not focused on the source of the sensory information; we assume that the current biomechanical states (posture and velocities) are available to the CNS when necessary. This assumption seems to be valid for healthy individuals, as a wide range of sensory organs is available to sense and transmit information to the CNS. However, a pathological condition might limit the CNS access to this available sensory information. For instance, in a deafferented patient, the sense of position (and therefore the motor skills) is largely lost due to the loss of somatosensory inputs (Bringoux et al., <xref ref-type="bibr" rid="B4">2016</xref>).</p>
<p>This paper is organized as follows. In the Method section, the experimental procedure, the planar arm model, the nonlinear model predictive controller, and forward dynamic simulation framework are provided. Next, in the Results and Discussion section, the use of NMPC as the motor control unit in human reaching tasks is presented and discussed. This study investigates the use of anticipatory planning with continuous error correction by the CNS during reaching tasks. The first goal of this study is to study the effects of varying the prediction horizon on the hand trajectory and muscle activities in a reaching task. Therefore, we ran a number of NMPC simulations with various prediction horizons, as well as a DO simulation to obtain a &#x0201C;gold standard&#x0201D; for comparison. Secondly, the capability of the NMPC as an optimal feedback controller for tracking predefined trajectories has been investigated. This ability is useful when an expected/desired trajectory is available. Lastly, the effectiveness of the proposed NMPC for the simulation of reaching to moving targets is studied. We hypothesize that the anticipatory behavior of the CNS can be modeled by NMPC and verified by comparing the hand trajectory predicted by NMPC to those collected in experiments. Finally, Conclusions and Future Work are presented.</p>
</sec>
<sec sec-type="methods" id="s2">
<title>Methods</title>
<sec>
<title>Experiments</title>
<p>To examine the accuracy of the NMPC predictions, a 27 year old male subject was selected to perform reaching tasks. An Optotrak Certus motion capture system (Northern Digital Inc., NDI) was used to measure the arm trajectory at 30 Hz. In these experiments, the subject was seated with the arm elevated at the shoulder level. An active marker attached to the back of the hand (as shown in Figure <xref ref-type="fig" rid="F1">1A</xref>) has been used to capture center-out hand motion trajectories. The subject was asked to move his hand from an initial central position to one of eight final targets spread evenly on a circle of 20 cm radius at a self-selected convenient speed. The experiment was repeated 10 times for each target with 2 min rest intervals between each set. The subject also performed reaching to moving targets. He was instructed to reach to a target, which was relocated to another position midway through the movement. The subject was instructed to adjust his motion to reach to the moving target. The subject was also given 5 min to rest before performing the reaching moving targets experiment.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p><bold>(A)</bold> Measuring the hand trajectory using NDI Optotrak, <bold>(B)</bold> A schematic of the planar arm model.</p></caption>
<graphic xlink:href="fncom-10-00143-g0001.tif"/>
</fig>
<p>During the reaching trails, the electromyography (EMG) activity of seven muscles (anterior/middle/posterior deltoid, long/lateral triceps brachii, biceps brachii, and brachioradialis) were collected at 2000 Hz using a Trigno portable EMG system (Delsys Inc.). The EMGs were band-pass filtered (5&#x02013;800 Hz cut-off), rectified, low-pass filtered (4 Hz cut-off), and normalized to maximum voluntary contractions (MVCs). We performed a Pearson correlation analysis to investigate the correlation between the EMGs and muscle activity predicted by NMPC and DO simulations. We resampled both the captured EMGs and simulation results with a sampling rate of 100 Hz, and performed the Pearson correlation analysis using the &#x0201C;Corr&#x0201D; command in MATLAB. The experiments have been approved by the Office of Research Ethics at the University of Waterloo and carried out with written informed consent from the subject. The subject gave written informed consent in accordance with the Declaration of Helsinki.</p>
</sec>
<sec>
<title>Planar arm model</title>
<p>In this research, a planar arm model similar to the one developed by Ghannadi et al. (<xref ref-type="bibr" rid="B9">2015</xref>) was used. The model consisted of torso, upper arm, and forearm to simulate the hand motion. The torso was fixed and the shoulder and elbow were modeled using revolute joints. Six muscle groups including shoulder and elbow mono-articular flexors/extensors and two bi-articular flexors/extensors were used to actuate the arm as shown in Figure <xref ref-type="fig" rid="F1">1B</xref>. A modified Hill-type muscle model with muscle excitation-to-activation dynamics was used to simulate the skeletal muscle contraction dynamics (see Appendix A for details). The muscle parameters of the planar arm model (i.e., insertion and origin positions, maximum isometric force, fiber optimal length, slack length, and pennation angle) were tuned to represent the dynamics of the upper extremity in the experimental condition (reaching targets in a horizontal plane elevated at the shoulder level). These parameters were tuned through a series of optimizations so that the planar model provides the same joint torques as a high-fidelity three-dimensional upper extremity model (Ghannadi et al., <xref ref-type="bibr" rid="B9">2015</xref>). Kinematic and dynamic parameters of the arm model and the Hill muscle model parameters used here can be found in Tables <xref ref-type="table" rid="T1">1</xref>, <xref ref-type="table" rid="T2">2</xref>, respectively.</p>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p><bold>Kinematic and dynamic parameters of the planar arm model</bold>.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>Segment</bold></th>
<th valign="top" align="center"><bold>Mass (Kg)</bold></th>
<th valign="top" align="center"><bold>Inertia [I<sub>yy</sub>] (kg.cm<sup>2</sup>)<xref ref-type="table-fn" rid="TN1"><sup>&#x0002A;</sup></xref></bold></th>
<th valign="top" align="center"><bold>Length (mm)</bold></th>
<th valign="top" align="center"><bold>CoM from proximal (mm)</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">Upper arm</td>
<td valign="top" align="center">1.93</td>
<td valign="top" align="center">141</td>
<td valign="top" align="center">290</td>
<td valign="top" align="center">145</td>
</tr>
<tr>
<td valign="top" align="left">Forearm</td>
<td valign="top" align="center">1.52</td>
<td valign="top" align="center">188</td>
<td valign="top" align="center">300</td>
<td valign="top" align="center">150</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn id="TN1">
<label>&#x0002A;</label>
<p><italic>About the center of mass, the mechanical y axis is assumed to be perpendicular to the plane of movement</italic>.</p></fn>
</table-wrap-foot>
</table-wrap>
<table-wrap position="float" id="T2">
<label>Table 2</label>
<caption><p><bold>Hill-type muscle model parameters</bold>.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>Muscle</bold></th>
<th valign="top" align="center"><bold>ISO force [<inline-formula><mml:math id="M1"><mml:msubsup><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow><mml:mrow><mml:mtext>max</mml:mtext></mml:mrow></mml:msubsup></mml:math></inline-formula>] (N)</bold></th>
<th valign="top" align="center"><bold>Tendon slack length [L<sub>SE</sub>] (mm)</bold></th>
<th valign="top" align="center"><bold>Pennation angle [&#x003B1;<sub><italic>p</italic></sub>] (deg)</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">Shoulder mono-articular flexor (muscle 1)</td>
<td valign="top" align="center">2525</td>
<td valign="top" align="center">29.2</td>
<td valign="top" align="center">21.6</td>
</tr>
<tr>
<td valign="top" align="left">Shoulder mono-articular extensor (muscle 2)</td>
<td valign="top" align="center">1672</td>
<td valign="top" align="center">0</td>
<td valign="top" align="center">19.5</td>
</tr>
<tr>
<td valign="top" align="left">Elbow mono-articular flexor (muscle 3)</td>
<td valign="top" align="center">1452</td>
<td valign="top" align="center">18.1</td>
<td valign="top" align="center">1.4</td>
</tr>
<tr>
<td valign="top" align="left">Elbow mono-articular extensor (muscle 4)</td>
<td valign="top" align="center">1577</td>
<td valign="top" align="center">7.2</td>
<td valign="top" align="center">7.8</td>
</tr>
<tr>
<td valign="top" align="left">Bi-articular flexor (muscle 5)</td>
<td valign="top" align="center">972</td>
<td valign="top" align="center">187.6</td>
<td valign="top" align="center">0</td>
</tr>
<tr>
<td valign="top" align="left">Bi-articular extensor (muscle 6)</td>
<td valign="top" align="center">798</td>
<td valign="top" align="center">119.2</td>
<td valign="top" align="center">12</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<p><italic>The details of how the upper-extremity muscle groups are lumped into these representative muscles can be found in Ghannadi et al. (<xref ref-type="bibr" rid="B9">2015</xref>)</italic>.</p>
</table-wrap-foot>
</table-wrap>
</sec>
<sec>
<title>Principles of nonlinear model predictive control</title>
<p>The arm motion is controlled by complex commands descending from the CNS, which are the combination of the motion prediction (feedforward control) from an internal representation of the body and environment (or so-called internal model; Desmurget and Grafton, <xref ref-type="bibr" rid="B7">2000</xref>), and the corrective command from the sensory organs to correct any errors due to uncertainty or unknown environment (feedback control). This complexity is captured here by a model-based NMPC with a receding horizon. The NMPC uses a control-oriented model (COM) representing the human&#x00027;s internal model to predict the optimal trajectory, and feedback information to correct the prediction errors. The NMPC predicts the optimal dynamics of the system (<overline><italic>x</italic></overline>, <overline><italic>u</italic></overline>) over a prediction horizon as shown in Figure <xref ref-type="fig" rid="F2">2A</xref> by minimizing the following cost function:
<disp-formula id="E1"><label>(1)</label><mml:math id="M3"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>J</mml:mi><mml:mo>=</mml:mo><mml:mi>&#x003A8;</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>h</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x0002B;</mml:mo><mml:mstyle displaystyle="true"><mml:msubsup><mml:mrow><mml:mo>&#x0222B;</mml:mo></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>h</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msubsup></mml:mstyle><mml:mo>&#x003C8;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>u</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mtext>&#x000A0;</mml:mtext><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="E2"><label>(2)</label><mml:math id="M4"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mtext class="textrm" mathvariant="normal">subject&#x000A0;to</mml:mtext><mml:mo>:</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mn>0</mml:mn><mml:mo>&#x0003C;</mml:mo><mml:mi>u</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x0003C;</mml:mo><mml:mn>1</mml:mn></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
where &#x003A8; is the cost evaluated at the end of prediction horizon, &#x003C8; is the cost evaluated during the prediction horizon, and <italic>t</italic><sub><italic>ph</italic></sub> is the length of prediction horizon. The state variables at the current time (<italic>t</italic><sub><italic>o</italic></sub>) are obtained from the current sensory information. The input (&#x0016B;) is an optimal open-loop solution over the prediction horizon. If there are no external disturbances and no model uncertainty in the system, with infinitely long prediction horizon, the open-loop solution can be applied to the system for all time <italic>t</italic> &#x0003E; <italic>t</italic><sub><italic>o</italic></sub>. However, for the finite horizon case and in the presence of noise and uncertainty, the open-loop solution should only be applied until the next sampling time (<italic>t</italic><sub>0</sub> &#x0002B; &#x003B4;). At the new time step, the optimal solution is re-evaluated with the new initial conditions for the receding horizon and iteratively applied to the system. By incorporating the feedback information, the NMPC is converted from a completely open-loop controller to an optimal closed-loop controller. The NMPC can handle constraints on both the states and the inputs. In musculoskeletal models, the muscle activation command must be non-negative and less than one, and constraints on states can be added to avoid unphysiological movements.</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p><bold>(A)</bold> Prediction horizon in NMPC. The solid lines shows the optimal muscle activation and state trajectories in the given prediction horizon. <bold>(B)</bold> Hand position trajectory. The hand moves from its original position to the marked position on its left.</p></caption>
<graphic xlink:href="fncom-10-00143-g0002.tif"/>
</fig>
</sec>
<sec>
<title>Mathematical formulation of NMPC</title>
<p>In this article, the optimal dynamics over the prediction horizon were calculated using the GPOPS-II optimal control package that utilizes an orthogonal collocation method (Patterson and Rao, <xref ref-type="bibr" rid="B32">2014</xref>). This method is a direct (simultaneous) optimization method in which both states (<italic>x</italic>) and inputs (<italic>u</italic>) are parameterized using a series of connected Legendre polynomials and become part of a Nonlinear Programing (NLP) problem. Here, the arm model described in the previous section was used as the COM of the NMPC and the simulation model for planar reaching and pointing tasks. The dynamic equation of the arm model can be described by:
<disp-formula id="E3"><label>(3)</label><mml:math id="M5"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mover accent='true'><mml:mi>x</mml:mi><mml:mo>&#x002D9;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mi>f</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>u</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mi>x</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mn>0</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
where <italic>x</italic> &#x003F5; &#x0211D;<sup>10 &#x000D7; 1</sup> are the arm model state variables consisting of shoulder angle and angular velocity plus elbow angle and angular velocity, and muscle activation states, and <italic>x</italic><sub>0</sub> is the vector of the initial states. The muscle excitation inputs <italic>u</italic> &#x003F5; &#x0211D;<sup>6 &#x000D7; 1</sup> represent the ratio of excited motor units to the maximum number of motor units in that muscle.</p>
<p>In this research, for the particular case of a goal-directed reaching task, the terminal cost of the NMPC cost function (&#x003A8;) was removed, and the integral part (&#x003C8;) is computed from the summation of two terms: (i) a choice of specific physiological cost function, and (ii) a trajectory tracking error. Therefore, the NMPC cost function shown in (1) is converted to:
<disp-formula id="E4"><label>(4)</label><mml:math id="M6"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>J</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:msubsup><mml:mrow><mml:mo>&#x0222B;</mml:mo></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>h</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msubsup></mml:mstyle><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>p</mml:mi><mml:msup><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mo>&#x003B6;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mo>&#x003B6;</mml:mo></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>e</mml:mi><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>&#x0002B;</mml:mo><mml:mi>q</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>G</mml:mi></mml:mrow><mml:mrow><mml:mi>M</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>u</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mtext class="textrm" mathvariant="normal">t</mml:mtext></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mtext>&#x000A0;</mml:mtext><mml:mi>d</mml:mi><mml:mi>t</mml:mi><mml:mtext>&#x000A0;</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
where <italic>p</italic> and <italic>q</italic> are cost function weightings, and &#x003B6; and &#x003B6;<sub><italic>des</italic></sub> are the hand position and its desired final value (in the Cartesian coordinate system), respectively. The simulated hand position &#x003B6; varies on the prediction horizon, while the desired final value &#x003B6;<sub><italic>des</italic></sub> was kept constant. The hand position is calculated from.</p>
<disp-formula id="E5"><label>(5)</label><mml:math id="M7"><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:mi>&#x003B6;</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mi>cos</mml:mi><mml:mtext>&#x0200B;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>&#x003B8;</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mn>2</mml:mn></mml:msub><mml:mi>cos</mml:mi><mml:mtext>&#x0200B;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>&#x003B8;</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>&#x003B8;</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x000A0;</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mi>sin</mml:mi><mml:mtext>&#x0200B;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>&#x003B8;</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mn>2</mml:mn></mml:msub><mml:mi>sin</mml:mi><mml:mtext>&#x0200B;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>&#x003B8;</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>&#x003B8;</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mi>T</mml:mi></mml:msup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where &#x003B8;<sub>1</sub> and &#x003B8;<sub>2</sub> are shoulder and elbow angles, and <italic>L</italic><sub>1</sub> and <italic>L</italic><sub>2</sub> are upper arm and forearm lengths, respectively. The physiological cost <italic>G</italic><sup><italic>M</italic></sup>(<italic>u</italic>(<italic>t</italic>)) is defined as:</p>
<disp-formula id="E6"><label>(6)</label><mml:math id="M9"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mi>G</mml:mi></mml:mrow><mml:mrow><mml:mi>M</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>The term <italic>G</italic><sup><italic>M</italic></sup> in the cost function represents the neural excitation effort to perform the reaching tasks.</p>
<p>GPOPS-II finds the optimal dynamics of each given horizon by minimizing Equation (4) while satisfying inequality constraints related to muscle excitation (2) and equations of motion (3) using the Sparse Nonlinear Optimization (SNOPT) solver (Gill et al., <xref ref-type="bibr" rid="B10">2005</xref>). An <italic>hp-adaptive mesh refinement method</italic> (Liu et al., <xref ref-type="bibr" rid="B22">2015</xref>) has been used within GPOPS-II to refine the individual interval widths and the polynomial degree to reach a final optimal solution. Then, the first five-percent (e.g., 50 for 1000 ms prediction horizon) of optimal activations are applied to the muscles, and the arm motion is simulated. The new position and orientation of the arm are measured and sent back to the NMPC as initial conditions of the next iteration. In this research, we have assumed that the sensory organs can measure the exact joint angles and angular velocities. Uncertainty can be added to the measurements to account for the noise within the sensory organs, and to simulate the variability in the movement repetition. However, this has not been included in the scope of this work. The optimal muscle activations are shifted and considered as the initial guess of the next iteration.</p>
</sec>
<sec>
<title>Dynamic optimization</title>
<p>In addition to the NMPC simulations, a dynamic optimization (DO) using GPOPS-II was performed to simulate the same task. Unlike the NMPC simulations, which continue until the position tracking error passes a certain threshold, the final simulation time and the final position of the hand are explicitly specified in the DO simulations. The DO cost function is:</p>
<disp-formula id="E7"><label>(7)</label><mml:math id="M10"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>J</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:msubsup><mml:mrow><mml:mo>&#x0222B;</mml:mo></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>f</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msubsup></mml:mstyle><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mi>G</mml:mi></mml:mrow><mml:mrow><mml:mi>M</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>u</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mtext class="textrm" mathvariant="normal">t</mml:mtext></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mtext>&#x000A0;</mml:mtext><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="E8"><label>(8)</label><mml:math id="M11"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mtext class="textrm" mathvariant="normal">subject&#x000A0;to</mml:mtext><mml:mo>:</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mn>0</mml:mn><mml:mo>&#x0003C;</mml:mo><mml:mi>u</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x0003C;</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;and&#x000A0;</mml:mtext><mml:mi>x</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>f</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>f</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where <italic>t</italic><sub><italic>f</italic></sub> is the final simulation time, and <italic>x</italic><sub><italic>f</italic></sub> is the state vector corresponding to the target position. The same physiological cost function as in the NMPC simulations (Equation 6) was used in DO to compute the optimal hand position trajectory and muscle activations.</p>
</sec>
</sec>
<sec sec-type="results" id="s3">
<title>Results</title>
<sec>
<title>Effects of the prediction horizon length</title>
<p>In this section, a goal-directed reaching task is simulated and the effect of prediction horizon length variation on the hand trajectory and muscle activation is studied. Here, the hand is initially at rest and in a natural position (<inline-formula><mml:math id="M12"><mml:msub><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mn>44</mml:mn></mml:mrow><mml:mrow><mml:mstyle class="text"><mml:mtext class="textrm" mathvariant="normal">o</mml:mtext></mml:mstyle></mml:mrow></mml:msup></mml:math></inline-formula> and <inline-formula><mml:math id="M13"><mml:msub><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mn>58</mml:mn></mml:mrow><mml:mrow><mml:mstyle class="text"><mml:mtext class="textrm" mathvariant="normal">o</mml:mtext></mml:mstyle></mml:mrow></mml:msup></mml:math></inline-formula>) and moves toward a target 20 <italic>cm</italic> to the left of its initial position as shown in Figure <xref ref-type="fig" rid="F2">2B</xref>. This task was simulated using NMPC with 0.2, 0.3, 0.4, 0.5, and 0.8 <italic>s</italic> prediction horizons, and DO with a fixed time duration. In the NMPC simulations, the cost function weightings (<italic>p</italic> &#x0003D; <italic>20</italic> and <italic>q</italic> &#x0003D; <italic>1</italic>) were kept the same. The DO final simulation time was chosen to be 1.5 s, in accordance with the experimental reach duration (1.431 &#x000B1; 0.176 s in 10 repetitions).</p>
<p>Figure <xref ref-type="fig" rid="F2">2B</xref> demonstrates the hand trajectories for the aforementioned prediction horizons (<italic>t</italic><sub><italic>ph</italic></sub>). Despite the slight differences between the trajectories, the solutions with 0.4, 0.5, and 0.8 s prediction horizons closely correlate with the experimental results. The Pearson correlation factors between NMPC simulations and the experimental trajectories are 0.9351, 0.9758, 0.9947, 0.9991, 0.9994 respectively for 0.2, 0.3, 0.4, 0.5, 0.8 s. The Pearson factor between the DO and experiment is 0.867.</p>
<p>As shown in Figure <xref ref-type="fig" rid="F3">3</xref>, the elbow and shoulder angle variations with 0.2 <italic>s</italic> prediction horizon are less than those with longer prediction horizons. This signifies the importance of prediction horizon; with short prediction horizons, the controller is more cautious and takes longer to reach a desired position. Simultaneously, this results in smaller muscle activations for shorter horizons since the transient time to reach the final position is longer (see Figure <xref ref-type="fig" rid="F4">4</xref>). The reaching error at 1.5 s of the simulation is about 23% for 0.2 <italic>s</italic> prediction horizon, and reduces to 0.36% for 0.8 s prediction horizon. As expected for this motion, the shoulder mono-articular flexor (muscle 1), elbow mono-articular flexor (muscle 3) and bi-articular flexor (muscle 5) are activated at the beginning to accelerate the body; then, the antagonistic muscles are activated to reach a full stop at the desired position.</p>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p><bold>(A)</bold> Shoulder angle variation during the reaching task, <bold>(B)</bold> Elbow angle variation during the reaching task.</p></caption>
<graphic xlink:href="fncom-10-00143-g0003.tif"/>
</fig>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p><bold>Optimal activations of flexor and extensor muscles: (A)</bold> Optimal activation of shoulder mono-articular flexor (muscle 1), <bold>(B)</bold> Optimal activation of elbow mono-articular flexor (muscle 3), <bold>(C)</bold> Optimal activation of bi-articular flexor (muscle 5), <bold>(D)</bold> Optimal activation of shoulder mono-articular extensor (muscle 2), <bold>(E)</bold> Optimal activation of elbow mono-articular extensor (muscle 4), <bold>(F)</bold> Optimal activation of bi-articular extensor (muscle 6)</p></caption>
<graphic xlink:href="fncom-10-00143-g0004.tif"/>
</fig>
<p>In the DO, similar to NMPC, flexor muscles are active at the beginning of the motion to accelerate the hand toward the target, then the extensor muscles are activated to stop the hand movement (a bang-bang control strategy). Since DO has to stop at the specified final time (1.5 s) the extensor muscle activities are larger than NMPC predictions at the decelerating phase of motion. On the other hand, the flexor muscle activities at the accelerating phase of the simulation are larger for NMPC than DO because the trajectory error at the beginning of the motion is large and exponentially reducing when it gets closer to target.</p>
<p>As shown in Figure <xref ref-type="fig" rid="F4">4</xref>, the muscle activations predicted by NMPC and DO simulations can capture the general trends of the experimental measurements. It can be observed that as the prediction horizon increases, the NMPC predicts larger muscle activities at the beginning of the motion. A Pearson correlation analysis was performed between the flexor muscle activities predicted by the NMPC and DO simulations and the EMGs from experimental measurements; the correlation coefficients are presented in Table <xref ref-type="table" rid="T3">3</xref>. The correlation coefficient for extensor muscles are not reported since the EMG activity of these muscles were minimal in the experiments. As shown in Table <xref ref-type="table" rid="T3">3</xref>, the correlation coefficient of flexor muscles reduces when the prediction horizon increases in the NMPC simulations, while the DO predictions correlate better with the experiments.</p>
<table-wrap position="float" id="T3">
<label>Table 3</label>
<caption><p><bold>Pearson correlation analysis of flexor muscle activations predicted by NMPC and DO vs. experimental measurements</bold>.</p></caption>
<table frame="hsides" rules="groups">
<thead><tr>
<th valign="top" align="left"><bold>Muscle</bold></th>
<th valign="top" align="center" colspan="6" style="border-bottom: thin solid #000000;"><bold>Pearson correlation coefficient</bold></th>
</tr>
<tr>
<th/>
<th valign="top" align="center"><bold>NMPC 0.2 <italic>s</italic></bold></th>
<th valign="top" align="center"><bold>NMPC 0.3 <italic>s</italic></bold></th>
<th valign="top" align="center"><bold>NMPC 0.4 <italic>s</italic></bold></th>
<th valign="top" align="center"><bold>NMPC 0.5 <italic>s</italic></bold></th>
<th valign="top" align="center"><bold>NMPC 0.8 <italic>s</italic></bold></th>
<th valign="top" align="center"><bold>DO</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">Shoulder mono-articular flexor (muscle 1)</td>
<td valign="top" align="char" char=".">0.322</td>
<td valign="top" align="char" char=".">0.300</td>
<td valign="top" align="char" char=".">0.291</td>
<td valign="top" align="char" char=".">0.284</td>
<td valign="top" align="char" char=".">0.276</td>
<td valign="top" align="char" char=".">0.479</td>
</tr>
<tr>
<td valign="top" align="left">Elbow mono-articular flexor (muscle 3)</td>
<td valign="top" align="char" char=".">0.117</td>
<td valign="top" align="char" char=".">&#x02212;0.051</td>
<td valign="top" align="char" char=".">&#x02212;0.131</td>
<td valign="top" align="char" char=".">&#x02212;0.177</td>
<td valign="top" align="char" char=".">&#x02212;0.214</td>
<td valign="top" align="char" char=".">0.335</td>
</tr>
<tr style="border-bottom: thin solid #000000;">
<td valign="top" align="left">Bi-articular flexor (muscle 5)</td>
<td valign="top" align="char" char=".">0.465</td>
<td valign="top" align="char" char=".">0.356</td>
<td valign="top" align="char" char=".">0.297</td>
<td valign="top" align="char" char=".">0.277</td>
<td valign="top" align="char" char=".">0.262</td>
<td valign="top" align="char" char=".">0.565</td>
</tr>
<tr>
<td valign="top" align="left">Average</td>
<td valign="top" align="char" char=".">0.301</td>
<td valign="top" align="char" char=".">0.202</td>
<td valign="top" align="char" char=".">0.153</td>
<td valign="top" align="char" char=".">0.128</td>
<td valign="top" align="char" char=".">0.108</td>
<td valign="top" align="char" char=".">0.422</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>As suggested by Morasso (<xref ref-type="bibr" rid="B29">1981</xref>), subjects tend to move in straight lines with bell-shaped tangential-velocity profiles when reaching for a target. Figure <xref ref-type="fig" rid="F2">2B</xref> shows that the NMPC with long-enough prediction horizon can realistically predict the hand trajectory, while Figure <xref ref-type="fig" rid="F5">5</xref> shows the differences in the velocity profiles of the NMPC and DO predictions. In these simulations, the NMPC tends to accelerate the hand more quickly than the DO; in DO, the optimization knows the final time and can distribute the acceleration over a longer time. On the contrary, in the receding horizon NMPC, the controller can only predict the motion as far as the prediction horizon. This results in the fast acceleration at the beginning the motion due to large tracking errors and slow deceleration at the end of motion due to small tracking errors.</p>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p><bold>(A)</bold> Hand speed vs. displacement. In DO simulation, the final time is specified as 1.5 s. <bold>(B)</bold> Hand speed vs. time. The hand moves to a target 20 cm to the left of its initial position.</p></caption>
<graphic xlink:href="fncom-10-00143-g0005.tif"/>
</fig>
</sec>
<sec>
<title>Reaching targets using a predefined trajectory</title>
<p>Reaching to eight different directions was also simulated using NMPC with 0.8 s prediction horizon. The target positions of the hand are located on a circle centered at the initial position of the hand with a radius of 20 cm (see Figure <xref ref-type="fig" rid="F1">1</xref>). In the NMPC simulations, a smooth 5th-order polynomial with zero initial and final velocities and accelerations is used as the desired straight-line hand trajectory. These trajectories begin at the initial position of the hand and end at the target positions. As shown in Figure <xref ref-type="fig" rid="F6">6</xref>, the NMPC is able to follow the desired trajectories, which are qualitatively correlated with the measured trajectories in experiments.</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p><bold>Optimal trajectories of reaching motions in all directions</bold>.</p></caption>
<graphic xlink:href="fncom-10-00143-g0006.tif"/>
</fig>
</sec>
<sec>
<title>Reaching a moving target</title>
<p>We have assumed that the CNS plans a trajectory to reach a target and constantly monitors the deviations from this trajectory and the target position. In this section, we study the case where the target position is suddenly relocated. Here, the hand is initially at rest at point O (Figure <xref ref-type="fig" rid="F7">7A</xref>) and moves toward the target at point A. Then 1 s later, the target position suddenly moves to the point B. This protocol was achieved in the lab by manually moving the target from its initial point A to B when the subject reached half the way to A. In this simulation, the time delay related to the visual cognition of this change [about 150 ms, (Jeannerod, <xref ref-type="bibr" rid="B15">2006</xref>)] has not been considered.</p>
<fig id="F7" position="float">
<label>Figure 7</label>
<caption><p><bold>(A)</bold> The hand trajectory when the target is suddenly moved from <bold>A</bold> to <bold>B</bold>, <bold>(B)</bold> Displacement of hand in X and Z directions when the target is suddenly moved from <bold>A</bold> to <bold>B</bold>.</p></caption>
<graphic xlink:href="fncom-10-00143-g0007.tif"/>
</fig>
<p>Figure <xref ref-type="fig" rid="F7">7</xref> depicts that the NMPC controller can track the location of the target and correct the hand trajectory to reach the new target. As shown in Figure <xref ref-type="fig" rid="F7">7A</xref>, it seems that when the target moves, the subject over-compensates by moving the hand to the right, while the NMPC finds a trajectory that minimizes both position error and control effort. It is not possible to simulate this scenario with DO; it is one of its disadvantages compared to NMPC, which is able to make online adjustments to the hand trajectory.</p>
</sec>
</sec>
<sec sec-type="discussion" id="s4">
<title>Discussion</title>
<p>In this research, we presented a NMPC to mimic the human motor control system. The results showed that it can successfully replicate certain features of human motor control such as path planning and target tracking. This controller is a fully predictive optimal controller that simultaneously solves the kinematic redundancy and muscle-sharing problem.</p>
<p>In hierarchical models (Menegaldo et al., <xref ref-type="bibr" rid="B26">2006</xref>; Guigon et al., <xref ref-type="bibr" rid="B11">2007</xref>; Mehrabi et al., <xref ref-type="bibr" rid="B24">2015</xref>), the computational burden is reduced by separating the computation into two steps. In the first step, an optimal trajectory is generated based on a kinematic criterion; then, in the second step, the muscle sharing problem is solved based on another criterion (kinetic criterion). The main drawback of hierarchical models is that they follow a preplanned trajectory (output of the first step); therefore the online movement corrections are in favor of trajectory tracking. However, the NMPC controller simultaneously takes into account both kinetic and kinematic exertions to determine an optimal path along with the optimal muscle activations to achieve it. Therefore, it can be argued that this controller is more similar to the human CNS, as it receives proprioceptive information to adjust the predicted trajectory that satisfies the new condition and in favor of the end goal.</p>
<p>Thelen et al. (<xref ref-type="bibr" rid="B41">2003</xref>) developed a feedback/feedforward controller (computed muscle control, CMC) that uses inverse dynamics and static optimization to find muscle activities that track a set of desired kinematics. However, such an approach is applicable only if the kinematics is known or if there is a desired kinematics. One advantage of NMPC is its ability to control the motion with and without a prescribed motion, or when the target position moves.</p>
<p>In our study and for the first time, the effect of varying the prediction horizon on the path planning ability in reaching tasks has been investigated. As expected, increasing the prediction horizon improves the tracking performance, but makes the solution computationally more expensive. The prediction horizon length can be adjusted to capture the characteristic of a desired motion. Here, simulation results showed that the resultant hand trajectory with long enough prediction horizons resembles those found from the experiments. However, NMPC accelerates the hand faster and decelerates it slower than the bell-shaped speed trajectories reported by Morasso (<xref ref-type="bibr" rid="B29">1981</xref>) and observed in our experiments. This can be due to the fact that the reach time is not specified in the NMPC, or due to the selection of minimum control effort as the physiological cost function. The proposed NMPC is not limited to the suggested cost function; various cost functions can be implemented. For example, Kistemaker et al. (<xref ref-type="bibr" rid="B17">2014</xref>) studied the effect of different cost functions on the trajectory of the hand while performing a reaching task using a DO approach.</p>
<p>The Pearson correlation coefficients reported in Table <xref ref-type="table" rid="T3">3</xref> show that muscle activities predicted by an NMPC with a short horizon can better predict (in a temporal sense) the experimental measurements. In contrast, the hand trajectory predictions (in a spatial sense) of an NMPC with larger prediction horizons can more closely replicate those from the experiments as shown in Figure <xref ref-type="fig" rid="F2">2B</xref>. Finally yet importantly, the NMPC simulations can be used to reproduce the experimental hand trajectories with a moving target as shown in Figure <xref ref-type="fig" rid="F7">7</xref>. The differences between the experiments and simulations may be due to the subject anticipation of another movement of the target point, while the final target position is known to the controller immediately following the shift. This unique feature of NMPC simulations can advance our theoretical understanding of hand movements and enables the next generation of assistive.</p>
<sec>
<title>Online implementation of NMPC</title>
<p>The focus of this paper has been on the proof-of-concept of the NMPC as a possible model for CNS control of human movement. The current implementation of this approach is computationally expensive and is not real-time. For instance, with a prediction horizon of 0.5 s, the NMPC takes 0.45 &#x000B1; 0.24 s to find the optimal dynamics at each time step and re-plan the movement. These simulations were performed on a computer with an Intel Core&#x02122; i7-4790 processor and CPU 3.60 GHZ and RAM 16 GB. However, online NMPC methods such as the Continuation/GMRES method (Ohtsuka, <xref ref-type="bibr" rid="B31">2004</xref>), advanced-step NMPC (Zavala and Biegler, <xref ref-type="bibr" rid="B50">2009</xref>), and explicit MPC (Kouramas et al., <xref ref-type="bibr" rid="B19">2013</xref>) can be used to achieve real-time performance. As an example, Mehrabi et al. (<xref ref-type="bibr" rid="B25">2016</xref>) developed a Newton/GMRES NMPC controller to control the functional electrical stimulation of knee extension. This controller by discretising the system dynamics and employing a fast online optimization method (GMRES), significantly reduced the computational time and allowed the real-time implementation of the NMPC. Furthermore, the COM can be further simplified using muscle synergy theory, in which the CNS coordinates human body movements by bundling individual muscles into groups. This allows a low-dimensional control input that significantly reduces of the size of the control problem (Sharif Razavian et al., <xref ref-type="bibr" rid="B37">2015</xref>).</p>
</sec>
<sec>
<title>Conclusions and future work</title>
<p>In this research, the first use of NMPC to simulate human motor control in reaching movements was presented. It was shown that NMPC can replicate certain properties of the human motor control system (i.e., path-planning, prediction, and target tracking), and can be used to realistically simulate reaching movements. Due to its feedback nature, it can correct the tracking errors for static targets or can follow a moving target seamlessly. The NMPC prediction horizon can represent the time horizon for which the CNS minimizes a physiological cost function. It should be noted that the NMPC conclusions from this research are specific to the cost function used here; stronger conclusions can only be made if more diverse cost functions are investigated. Nonetheless, this method opens up new opportunities to study challenging problems such as predictive forward dynamic simulation of biomechanics and biomechatronic systems.</p>
<p>As a possible future research direction, an online NMPC can be used to represent a user/patient in an assistive devices controller to facilitate the shared control between the device and user. This shared control allows the device to perform some tasks independently of the user by sensing information about the environment (Mill&#x000E1;n et al., <xref ref-type="bibr" rid="B28">2010</xref>). By predicting the motion of the user and adjusting the trajectory online, the NMPC can reduce the cognitive workload imposed on the user, who does not need to consider low-level executions in the presence of external disturbances or obstacles (Tucker et al., <xref ref-type="bibr" rid="B46">2015</xref>). The variability in limb movement is another known characteristic of reaching movements. This characteristic can be incorporated in the NMPC assistive device by accounting for noisy sensory information and sending noisy motor commands to musculotendon units.</p>
</sec>
</sec>
<sec id="s5">
<title>Author contributions</title>
<p>All authors listed, have made substantial, direct and intellectual contribution to the work, and approved it for publication.</p>
<sec>
<title>Conflict of interest statement</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
</sec>
</body>
<back>
<ack>
<p>The authors would like to thank the Natural Sciences and Engineering Research Council of Canada (NSERC) and the Canada Research Chairs program for financial support of this research.</p>
</ack>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ackermann</surname> <given-names>M.</given-names></name> <name><surname>van den Bogert</surname> <given-names>A. J.</given-names></name></person-group> (<year>2010</year>). <article-title>Optimality principles for model-based prediction of human gait</article-title>. <source>J. Biomech.</source> <volume>43</volume>, <fpage>1055</fpage>&#x02013;<lpage>1060</lpage>. <pub-id pub-id-type="doi">10.1016/j.jbiomech.2009.12.012</pub-id><pub-id pub-id-type="pmid">20074736</pub-id></citation>
</ref>
<ref id="B2">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Anderson</surname> <given-names>F. C.</given-names></name> <name><surname>Pandy</surname> <given-names>M. G.</given-names></name></person-group> (<year>2001</year>). <article-title>Static and dynamic optimization solutions for gait are practically equivalent</article-title>. <source>J. Biomech.</source> <volume>34</volume>, <fpage>153</fpage>&#x02013;<lpage>161</lpage>. <pub-id pub-id-type="doi">10.1016/S0021-9290(00)00155-X</pub-id><pub-id pub-id-type="pmid">11165278</pub-id></citation>
</ref>
<ref id="B3">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Bernstein</surname> <given-names>N. A.</given-names></name></person-group> (<year>1967</year>). <source>The Co-Ordination and Regulation of Movements</source>. <publisher-loc>Oxford, UK</publisher-loc>: <publisher-name>Pergamon Press</publisher-name>.</citation>
</ref>
<ref id="B4">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bringoux</surname> <given-names>L.</given-names></name> <name><surname>Scotto Di Cesare</surname> <given-names>C.</given-names></name> <name><surname>Borel</surname> <given-names>L.</given-names></name> <name><surname>Macaluso</surname> <given-names>T.</given-names></name> <name><surname>Sarlegna</surname> <given-names>F. R.</given-names></name></person-group> (<year>2016</year>). <article-title>Do visual and vestibular inputs compensate for somatosensory loss in the perception of spatial orientation? Insights from a Deafferented Patient</article-title>. <source>Front. Hum. Neurosci.</source> <volume>10</volume>:<fpage>181</fpage>. <pub-id pub-id-type="doi">10.3389/fnhum.2016.00181</pub-id><pub-id pub-id-type="pmid">27199704</pub-id></citation>
</ref>
<ref id="B5">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Crowninshield</surname> <given-names>R. D.</given-names></name> <name><surname>Brand</surname> <given-names>R. A.</given-names></name></person-group> (<year>1981</year>). <article-title>A physiologically based criterion of muscle force prediction in locomotion</article-title>. <source>J. Biomech.</source> <volume>14</volume>, <fpage>793</fpage>&#x02013;<lpage>801</lpage>. <pub-id pub-id-type="doi">10.1016/0021-9290(81)90035-X</pub-id><pub-id pub-id-type="pmid">7334039</pub-id></citation>
</ref>
<ref id="B6">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Davy</surname> <given-names>D.</given-names></name> <name><surname>Audu</surname> <given-names>M.</given-names></name></person-group> (<year>1987</year>). <article-title>A dynamic optimization technique for predicting muscle forces in the swing phase of gait</article-title>. <source>J. Biomech.</source> <volume>20</volume>, <fpage>187</fpage>&#x02013;<lpage>201</lpage>. <pub-id pub-id-type="doi">10.1016/0021-9290(87)90310-1</pub-id><pub-id pub-id-type="pmid">3571299</pub-id></citation>
</ref>
<ref id="B7">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Desmurget</surname> <given-names>M.</given-names></name> <name><surname>Grafton</surname> <given-names>S.</given-names></name></person-group> (<year>2000</year>). <article-title>Forward modeling allows feedback control for fast reaching movements</article-title>. <source>Trends Cogn. Sci. (Regul. Ed).</source> <volume>4</volume>, <fpage>423</fpage>&#x02013;<lpage>431</lpage>. <pub-id pub-id-type="doi">10.1016/S1364-6613(00)01537-0</pub-id><pub-id pub-id-type="pmid">11058820</pub-id></citation>
</ref>
<ref id="B8">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Flash</surname> <given-names>T.</given-names></name> <name><surname>Hogan</surname> <given-names>N.</given-names></name></person-group> (<year>1985</year>). <article-title>The coordination of arm movements: an experimentally confirmed mathematical model</article-title>. <source>J. Neurosci.</source> <volume>5</volume>, <fpage>1688</fpage>&#x02013;<lpage>1703</lpage>. <pub-id pub-id-type="pmid">4020415</pub-id></citation>
</ref>
<ref id="B9">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Ghannadi</surname> <given-names>B.</given-names></name> <name><surname>Mehrabi</surname> <given-names>N.</given-names></name> <name><surname>McPhee</surname> <given-names>J.</given-names></name></person-group> (<year>2015</year>). <source>Development of a Human-Robot Dynamic Model to Support Model-Based Control Design of an Upper Limb Rehabilitation Robot</source>. <publisher-loc>Barcelona</publisher-loc>: <publisher-name>ECCOMAS Thematic Conference on Multibody Dynamics</publisher-name>.</citation>
</ref>
<ref id="B10">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gill</surname> <given-names>P. E.</given-names></name> <name><surname>Murray</surname> <given-names>W.</given-names></name> <name><surname>Saunders</surname> <given-names>M. A.</given-names></name></person-group> (<year>2005</year>). <article-title>SNOPT: an SQP algorithm for large-scale constrained optimization</article-title>. <source>SIAM Rev.</source> <volume>47</volume>, <fpage>99</fpage>&#x02013;<lpage>131</lpage>. <pub-id pub-id-type="doi">10.1137/S0036144504446096</pub-id></citation>
</ref>
<ref id="B11">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Guigon</surname> <given-names>E.</given-names></name> <name><surname>Baraduc</surname> <given-names>P.</given-names></name> <name><surname>Desmurget</surname> <given-names>M.</given-names></name></person-group> (<year>2007</year>). <article-title>Computational motor control: redundancy and invariance</article-title>. <source>J. Neurophysiol.</source> <volume>97</volume>, <fpage>331</fpage>&#x02013;<lpage>347</lpage>. <pub-id pub-id-type="doi">10.1152/jn.00290.2006</pub-id><pub-id pub-id-type="pmid">17005621</pub-id></citation>
</ref>
<ref id="B12">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Happee</surname> <given-names>R.</given-names></name> <name><surname>Van der Helm</surname> <given-names>F. C. T.</given-names></name></person-group> (<year>1995</year>). <article-title>The control of shoulder muscles during ing goal directed movements, an inverse dynamic analysis</article-title>. <source>J. Biomech.</source> <volume>28</volume>, <fpage>1179</fpage>&#x02013;<lpage>1191</lpage>. <pub-id pub-id-type="doi">10.1016/0021-9290(94)00181-3</pub-id><pub-id pub-id-type="pmid">8550636</pub-id></citation>
</ref>
<ref id="B13">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Harris</surname> <given-names>C.</given-names></name> <name><surname>Wolpert</surname> <given-names>D.</given-names></name></person-group> (<year>1998</year>). <article-title>Signal-dependent noise determines motor planning</article-title>. <source>Nature</source> <volume>394</volume>, <fpage>780</fpage>&#x02013;<lpage>784</lpage>. <pub-id pub-id-type="doi">10.1038/29528</pub-id><pub-id pub-id-type="pmid">9723616</pub-id></citation>
</ref>
<ref id="B14">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>He</surname> <given-names>J.</given-names></name> <name><surname>Levine</surname> <given-names>W.</given-names></name> <name><surname>Loeb</surname> <given-names>G.</given-names></name></person-group> (<year>1991</year>). <article-title>Feedback gains for correcting small perturbations to standing posture</article-title>. <source>Autom. Control IEEE Trans.</source> <volume>36</volume>, <fpage>322</fpage>&#x02013;<lpage>332</lpage>. <pub-id pub-id-type="doi">10.1109/9.73565</pub-id></citation>
</ref>
<ref id="B15">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Jeannerod</surname> <given-names>M.</given-names></name></person-group> (<year>2006</year>). <source>Motor Cognition: What Actions Tell the Self, 1st Edn.</source> <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Oxford University Press</publisher-name>.</citation>
</ref>
<ref id="B16">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kaplan</surname> <given-names>M. L.</given-names></name> <name><surname>Heegaard</surname> <given-names>J.</given-names></name></person-group> (<year>2001</year>). <article-title>Predictive algorithms for neuromuscular control of human locomotion</article-title>. <source>J. Biomech.</source> <volume>34</volume>, <fpage>1077</fpage>&#x02013;<lpage>1083</lpage>. <pub-id pub-id-type="doi">10.1016/S0021-9290(01)00057-4</pub-id><pub-id pub-id-type="pmid">11448699</pub-id></citation>
</ref>
<ref id="B17">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kistemaker</surname> <given-names>D.</given-names></name> <name><surname>Wong</surname> <given-names>J.</given-names></name> <name><surname>Gribble</surname> <given-names>P.</given-names></name></person-group> (<year>2014</year>). <article-title>The cost of moving optimally: kinematic path selection</article-title>. <source>J. Neurophysiol.</source> <volume>112</volume>, <fpage>1815</fpage>&#x02013;<lpage>1824</lpage>. <pub-id pub-id-type="doi">10.1152/jn.00291.2014</pub-id><pub-id pub-id-type="pmid">24944215</pub-id></citation>
</ref>
<ref id="B18">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Koschorreck</surname> <given-names>J.</given-names></name> <name><surname>Mombaur</surname> <given-names>K.</given-names></name></person-group> (<year>2011</year>). <article-title>Modeling and optimal control of human platform diving with somersaults and twists</article-title>. <source>Optimizat. Eng.</source> <volume>13</volume>, <fpage>29</fpage>&#x02013;<lpage>56</lpage>. <pub-id pub-id-type="doi">10.1007/s11081-011-9169-8</pub-id></citation>
</ref>
<ref id="B19">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kouramas</surname> <given-names>K. I.</given-names></name> <name><surname>Panos</surname> <given-names>C.</given-names></name> <name><surname>Fa&#x000ED;sca</surname> <given-names>N. P.</given-names></name> <name><surname>Pistikopoulos</surname> <given-names>E. N.</given-names></name></person-group> (<year>2013</year>). <article-title>An algorithm for robust explicit/multi-parametric model predictive control</article-title>. <source>Automatica</source> <volume>49</volume>, <fpage>381</fpage>&#x02013;<lpage>389</lpage>. <pub-id pub-id-type="doi">10.1016/j.automatica.2012.11.035</pub-id></citation>
</ref>
<ref id="B20">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kuo</surname> <given-names>A. D.</given-names></name></person-group> (<year>1995</year>). <article-title>An optimal control model for analyzing human postural balance</article-title>. <source>IEEE Trans. Biomed. Eng.</source> <volume>42</volume>, <fpage>87</fpage>&#x02013;<lpage>101</lpage>. <pub-id pub-id-type="doi">10.1109/10.362914</pub-id><pub-id pub-id-type="pmid">7851935</pub-id></citation>
</ref>
<ref id="B21">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Liu</surname> <given-names>D.</given-names></name> <name><surname>Todorov</surname> <given-names>E.</given-names></name></person-group> (<year>2007</year>). <article-title>Evidence for the flexible sensorimotor strategies predicted by optimal feedback control</article-title>. <source>J. Neurosci.</source> <volume>27</volume>, <fpage>9354</fpage>&#x02013;<lpage>9368</lpage>. <pub-id pub-id-type="doi">10.1523/JNEUROSCI.1110-06.2007</pub-id><pub-id pub-id-type="pmid">17728449</pub-id></citation>
</ref>
<ref id="B22">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Liu</surname> <given-names>F.</given-names></name> <name><surname>Hager</surname> <given-names>W.</given-names></name> <name><surname>Rao</surname> <given-names>A.</given-names></name></person-group> (<year>2015</year>). <article-title>Adaptive mesh refinement method for optimal control using nonsmoothness detection and mesh size reduction</article-title>. <source>J. Franklin Inst.</source> <volume>352</volume>, <fpage>4081</fpage>&#x02013;<lpage>4106</lpage>. <pub-id pub-id-type="doi">10.1016/j.jfranklin.2015.05.028</pub-id></citation>
</ref>
<ref id="B23">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Loeb</surname> <given-names>G. E.</given-names></name> <name><surname>Levine</surname> <given-names>W. S.</given-names></name> <name><surname>He</surname> <given-names>J.</given-names></name></person-group> (<year>1990</year>). <article-title>Understanding sensorimotor feedback through optimal control</article-title>. <source>Cold Spring Harbor Symp. Quant. Biol.</source> <volume>55</volume>, <fpage>791</fpage>&#x02013;<lpage>803</lpage>. <pub-id pub-id-type="doi">10.1101/SQB.1990.055.01.074</pub-id><pub-id pub-id-type="pmid">2132855</pub-id></citation>
</ref>
<ref id="B24">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mehrabi</surname> <given-names>N.</given-names></name> <name><surname>Sharif Razavian</surname> <given-names>R.</given-names></name> <name><surname>McPhee</surname> <given-names>J.</given-names></name></person-group> (<year>2015</year>). <article-title>Steering disturbance rejection using a physics-based neuromusculoskeletal driver model</article-title>. <source>Vehicle Syst. Dyn.</source> <volume>53</volume>, <fpage>1393</fpage>&#x02013;<lpage>1415</lpage>. <pub-id pub-id-type="doi">10.1080/00423114.2015.1050403</pub-id></citation>
</ref>
<ref id="B25">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Mehrabi</surname> <given-names>N.</given-names></name> <name><surname>Tajeddin</surname> <given-names>S.</given-names></name> <name><surname>L. Azad</surname> <given-names>N.</given-names></name> <name><surname>McPhee</surname> <given-names>J.</given-names></name></person-group> (<year>2016</year>). <article-title>Application of Newton/GMRES method to nonlinear model predictive control of functional electrical stimulation</article-title>, in <source>Proceedings of the 3rd International Conference on Control, Dynamic Systems, and Robotics (CDSR&#x00027;16)</source> (<publisher-loc>Ottawa</publisher-loc>). <pub-id pub-id-type="doi">10.11159/cdsr16.121</pub-id></citation>
</ref>
<ref id="B26">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Menegaldo</surname> <given-names>L. L.</given-names></name> <name><surname>de Toledo Fleury</surname> <given-names>A.</given-names></name> <name><surname>Weber</surname> <given-names>H. I.</given-names></name></person-group> (<year>2006</year>). <article-title>A &#x02018;cheap&#x02019; optimal control approach to estimate muscle forces in musculoskeletal systems</article-title>. <source>J. Biomech.</source> <volume>39</volume>, <fpage>1787</fpage>&#x02013;<lpage>1795</lpage>. <pub-id pub-id-type="doi">10.1016/j.jbiomech.2005.05.029</pub-id><pub-id pub-id-type="pmid">16033695</pub-id></citation>
</ref>
<ref id="B27">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Meyer</surname> <given-names>D. E.</given-names></name> <name><surname>Abrams</surname> <given-names>R. A.</given-names></name> <name><surname>Kornblum</surname> <given-names>S.</given-names></name> <name><surname>Wright</surname> <given-names>C. E.</given-names></name> <name><surname>Keith Smith</surname> <given-names>J. E.</given-names></name></person-group> (<year>1988</year>). <article-title>Optimality in human motor performance: ideal control of rapid aimed movements</article-title>. <source>Psychol. Rev.</source> <volume>95</volume>, <fpage>340</fpage>&#x02013;<lpage>370</lpage>. <pub-id pub-id-type="doi">10.1037/0033-295X.95.3.340</pub-id><pub-id pub-id-type="pmid">3406245</pub-id></citation>
</ref>
<ref id="B28">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mill&#x000E1;n</surname> <given-names>J. D. R.</given-names></name> <name><surname>Rupp</surname> <given-names>R.</given-names></name> <name><surname>M&#x000FC;ller-Putz</surname> <given-names>G. R.</given-names></name> <name><surname>Murray-Smith</surname> <given-names>R.</given-names></name> <name><surname>Giugliemma</surname> <given-names>C.</given-names></name> <name><surname>Tangermann</surname> <given-names>M.</given-names></name> <etal/></person-group>. (<year>2010</year>). <article-title>Combining brain&#x02013;computer interfaces and assistive technologies: state-of-the-art and challenges</article-title>. <source>Front. Neurosci.</source> <volume>4</volume>:<fpage>161</fpage>. <pub-id pub-id-type="doi">10.3389/fnins.2010.00161</pub-id><pub-id pub-id-type="pmid">20877434</pub-id></citation>
</ref>
<ref id="B29">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Morasso</surname> <given-names>P.</given-names></name></person-group> (<year>1981</year>). <article-title>Spatial control of arm movements</article-title>. <source>Exp. Brain Res.</source> <volume>42</volume>, <fpage>223</fpage>&#x02013;<lpage>227</lpage>. <pub-id pub-id-type="doi">10.1007/bf00236911</pub-id><pub-id pub-id-type="pmid">7262217</pub-id></citation>
</ref>
<ref id="B30">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Neptune</surname> <given-names>R. R.</given-names></name> <name><surname>Hull</surname> <given-names>M. L.</given-names></name></person-group> (<year>1998</year>). <article-title>Evaluation of performance criteria for simulation of submaximal steady-state cycling using a forward dynamic model</article-title>. <source>J. Biomech. Eng.</source> <volume>120</volume>, <fpage>334</fpage>&#x02013;<lpage>341</lpage>. <pub-id pub-id-type="doi">10.1115/1.2797999</pub-id><pub-id pub-id-type="pmid">10412400</pub-id></citation>
</ref>
<ref id="B31">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ohtsuka</surname> <given-names>T.</given-names></name></person-group> (<year>2004</year>). <article-title>A continuation/GMRES method for fast computation of nonlinear receding horizon control</article-title>. <source>Automatica</source> <volume>40</volume>, <fpage>563</fpage>&#x02013;<lpage>574</lpage>. <pub-id pub-id-type="doi">10.1016/j.automatica.2003.11.005</pub-id></citation>
</ref>
<ref id="B32">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Patterson</surname> <given-names>M. A.</given-names></name> <name><surname>Rao</surname> <given-names>A. V.</given-names></name></person-group> (<year>2014</year>). <article-title>GPOPS-II: A MATLAB software for solving multiple-phase optimal control problems using hp-adaptive gaussian quadrature collocation methods and sparse nonlinear programming</article-title>. <source>ACM Trans. Math. Softw.</source> <volume>40</volume>:<fpage>37</fpage>. <pub-id pub-id-type="doi">10.1145/2558904</pub-id></citation>
</ref>
<ref id="B33">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Peasgood</surname> <given-names>M.</given-names></name> <name><surname>Kubica</surname> <given-names>E.</given-names></name> <name><surname>McPhee</surname> <given-names>J.</given-names></name></person-group> (<year>2006</year>). <article-title>Stabilization and energy optimization of a dynamic walking gait simulation</article-title>. <source>ASME J. Comput. Nonlinear Dyn.</source> <volume>2</volume>, <fpage>149</fpage>&#x02013;<lpage>159</lpage>. <pub-id pub-id-type="doi">10.1115/DETC2005-84509</pub-id></citation>
</ref>
<ref id="B34">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sarlegna</surname> <given-names>F. R.</given-names></name> <name><surname>Pratik</surname> <given-names>K. M.</given-names></name></person-group> (<year>2015</year>). <article-title>The influence of visual target information on the online control of movements</article-title>. <source>Vis. Res.</source> <volume>110</volume>, <fpage>144</fpage>&#x02013;<lpage>154</lpage>. <pub-id pub-id-type="doi">10.1016/j.visres.2014.07.001</pub-id><pub-id pub-id-type="pmid">25038472</pub-id></citation>
</ref>
<ref id="B35">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sha</surname> <given-names>D.</given-names></name> <name><surname>Thomas</surname> <given-names>J.</given-names></name></person-group> (<year>2013</year>). <article-title>An optimisation-based model for full-body upright reaching movements</article-title>. <source>Comput. Methods Biomech. Biomed. Engin.</source> <volume>18</volume>, <fpage>847</fpage>&#x02013;<lpage>860</lpage>. <pub-id pub-id-type="doi">10.1080/10255842.2013.850675</pub-id><pub-id pub-id-type="pmid">24161216</pub-id></citation>
</ref>
<ref id="B36">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Sharif Razavian</surname> <given-names>R.</given-names></name> <name><surname>McPhee</surname> <given-names>J.</given-names></name></person-group> (<year>2015</year>). <source>Minimization of Muscle Fatigue as the Criterion to Solve Muscle Forces-Sharing Problem</source>. <publisher-loc>Columbus, OH</publisher-loc>: <publisher-name>ASME Dynamic Systems and Control Conference</publisher-name>.</citation>
</ref>
<ref id="B37">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sharif Razavian</surname> <given-names>R.</given-names></name> <name><surname>Mehrabi</surname> <given-names>N.</given-names></name> <name><surname>McPhee</surname> <given-names>J.</given-names></name></person-group> (<year>2015</year>). <article-title>A model-based approach to predict muscle synergies using optimization: application to feedback control</article-title>. <source>Front. Comput. Neurosci.</source> <volume>9</volume>:<fpage>121</fpage>. <pub-id pub-id-type="doi">10.3389/fncom.2015.00121</pub-id><pub-id pub-id-type="pmid">26500530</pub-id></citation>
</ref>
<ref id="B38">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Soechting</surname> <given-names>J.</given-names></name> <name><surname>Buneo</surname> <given-names>C.</given-names></name> <name><surname>Herrmann</surname> <given-names>U.</given-names></name> <name><surname>Flanders</surname> <given-names>M.</given-names></name></person-group> (<year>1995</year>). <article-title>Moving effortlessly in three dimensions: does donders law apply to arm movement?</article-title>. <source>J. Neurosci.</source> <volume>1</volume>, <fpage>27</fpage>&#x02013;<lpage>32</lpage>.</citation>
</ref>
<ref id="B39">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sporns</surname> <given-names>O.</given-names></name> <name><surname>Edelman</surname> <given-names>G. M.</given-names></name></person-group> (<year>1993</year>). <article-title>Solving Bernstein&#x00027;s problem: a proposal for the development of coordinated movement by selection</article-title>. <source>Child Dev.</source> <volume>64</volume>, <fpage>960</fpage>&#x02013;<lpage>981</lpage>. <pub-id pub-id-type="doi">10.2307/1131321</pub-id><pub-id pub-id-type="pmid">8404271</pub-id></citation>
</ref>
<ref id="B40">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Thelen</surname> <given-names>D.</given-names></name></person-group> (<year>2003</year>). <article-title>Adjustment of muscle mechanics model parameters to simulate dynamic contractions in older adults</article-title>. <source>J. Biomech. Eng.</source> <volume>125</volume>, <fpage>70</fpage>&#x02013;<lpage>77</lpage>. <pub-id pub-id-type="doi">10.1115/1.1531112</pub-id><pub-id pub-id-type="pmid">12661198</pub-id></citation>
</ref>
<ref id="B41">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Thelen</surname> <given-names>D. G.</given-names></name> <name><surname>Anderson</surname> <given-names>F. C.</given-names></name> <name><surname>Delp</surname> <given-names>S. L.</given-names></name></person-group> (<year>2003</year>). <article-title>Generating dynamic simulations of movement using computed muscle control</article-title>. <source>J. Biomech.</source> <volume>3</volume>, <fpage>321</fpage>&#x02013;<lpage>328</lpage>. <pub-id pub-id-type="doi">10.1016/S0021-9290(02)00432-3</pub-id></citation>
</ref>
<ref id="B42">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Todorov</surname> <given-names>E.</given-names></name></person-group> (<year>2004</year>). <article-title>Optimality principles in sensorimotor control</article-title>. <source>Nat. Neurosci.</source> <volume>7</volume>, <fpage>907</fpage>&#x02013;<lpage>915</lpage>. <pub-id pub-id-type="doi">10.1038/nn1309</pub-id><pub-id pub-id-type="pmid">15332089</pub-id></citation>
</ref>
<ref id="B43">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Todorov</surname> <given-names>E.</given-names></name> <name><surname>Jordan</surname> <given-names>M. I.</given-names></name></person-group> (<year>2002a</year>). <article-title>A minimal intervention principle for coordinated movement</article-title>. <source>Adv. Neural Inf. Process. Syst.</source> <volume>15</volume>, <fpage>27</fpage>&#x02013;<lpage>34</lpage>.</citation>
</ref>
<ref id="B44">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Todorov</surname> <given-names>E.</given-names></name> <name><surname>Jordan</surname> <given-names>M. I.</given-names></name></person-group> (<year>2002b</year>). <article-title>Optimal feedback control as a theory of motor coordination</article-title>. <source>Nat. Neurosci.</source> <volume>5</volume>, <fpage>1226</fpage>&#x02013;<lpage>1235</lpage>. <pub-id pub-id-type="doi">10.1038/nn963</pub-id><pub-id pub-id-type="pmid">12404008</pub-id></citation>
</ref>
<ref id="B45">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Todorov</surname> <given-names>E.</given-names></name> <name><surname>Li</surname> <given-names>W.</given-names></name></person-group> (<year>2005</year>). <article-title>A generalized iterative LQG method for locally-optimal feedback control of constrained nonlinear stochastic systems</article-title>. <source>Portland Oreg. Am. Control Conf.</source> <volume>1</volume>, <fpage>300</fpage>&#x02013;<lpage>306</lpage>. <pub-id pub-id-type="doi">10.1109/acc.2005.1469949</pub-id></citation>
</ref>
<ref id="B46">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tucker</surname> <given-names>M. R.</given-names></name> <name><surname>Olivier</surname> <given-names>J.</given-names></name> <name><surname>Pagel</surname> <given-names>A.</given-names></name> <name><surname>Bleuler</surname> <given-names>H.</given-names></name> <name><surname>Bouri</surname> <given-names>M.</given-names></name> <name><surname>Lambercy</surname> <given-names>O.</given-names></name> <etal/></person-group>. (<year>2015</year>). <article-title>Control strategies for active lower extremity prosthetics and orthotics: a review</article-title>. <source>J. Neuroeng. Rehabil.</source> <volume>12</volume>:<fpage>1</fpage>. <pub-id pub-id-type="doi">10.1186/1743-0003-12-1</pub-id><pub-id pub-id-type="pmid">25557982</pub-id></citation>
</ref>
<ref id="B47">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Uno</surname> <given-names>Y.</given-names></name> <name><surname>Kawato</surname> <given-names>M.</given-names></name> <name><surname>Suzuki</surname> <given-names>R.</given-names></name></person-group> (<year>1989</year>). <article-title>Formation and control of optimal trajectory in human multijoint arm movement</article-title>. <source>Biol. Cybern.</source> <volume>61</volume>:<fpage>89</fpage>&#x02013;<lpage>101</lpage>. <pub-id pub-id-type="doi">10.1007/BF00204593</pub-id><pub-id pub-id-type="pmid">2742921</pub-id></citation>
</ref>
<ref id="B48">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wada</surname> <given-names>Y.</given-names></name> <name><surname>Kaneko</surname> <given-names>Y.</given-names></name> <name><surname>Nakano</surname> <given-names>E.</given-names></name> <name><surname>Osu</surname> <given-names>R.</given-names></name> <name><surname>Kawato</surname> <given-names>M.</given-names></name></person-group> (<year>2001</year>). <article-title>Quantitative examinations for multi joint arm trajectory planning&#x02014;using a robust calculation algorithm of the minimumcommanded torque change trajectory</article-title>. <source>Neural Netw.</source> <volume>14</volume>, <fpage>381</fpage>&#x02013;<lpage>393</lpage>. <pub-id pub-id-type="doi">10.1016/S0893-6080(01)00026-0</pub-id><pub-id pub-id-type="pmid">11411627</pub-id></citation>
</ref>
<ref id="B49">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Yamaguchi</surname> <given-names>G. T.</given-names></name> <name><surname>Zajac</surname> <given-names>F. E.</given-names></name></person-group> (<year>1990</year>). <article-title>Restoring unassisted natural gait to paraplegics via functional neuromuscular stimulation: a computer simulation study</article-title>. <source>IEEE Trans. Biomed. Eng.</source> <volume>37</volume>, <fpage>886</fpage>&#x02013;<lpage>902</lpage>. <pub-id pub-id-type="doi">10.1109/10.58599</pub-id><pub-id pub-id-type="pmid">2227975</pub-id></citation>
</ref>
<ref id="B50">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zavala</surname> <given-names>V. M.</given-names></name> <name><surname>Biegler</surname> <given-names>L. T.</given-names></name></person-group> (<year>2009</year>). <article-title>The advanced-step NMPC controller: Optimality, stability and robustness</article-title>. <source>Automatica</source> <volume>45</volume>, <fpage>86</fpage>&#x02013;<lpage>93</lpage>. <pub-id pub-id-type="doi">10.1016/j.automatica.2008.06.011</pub-id></citation>
</ref>
</ref-list>
<app-group>
<app id="A1">
<title>Appendix A</title>
<sec>
<title>Hill-type muscle model</title>
<p>In this research, a Hill-type muscle model is used to simulate the muscle contraction dynamics. The Hill muscle model shown in Figure <xref ref-type="fig" rid="F8">A1A</xref> has three elements: contractile element (CE), parallel elastic element (PE), and series elastic element (SE) (Thelen et al., <xref ref-type="bibr" rid="B41">2003</xref>). In this work, we assume that the SE length is constant during the motion; therefore, the SE is replaced with an inextensible string (see Figure <xref ref-type="fig" rid="F8">A1B</xref>). To justify this assumption, we performed an analysis (in Appendix B) that shows that the SE length variation during an NMPC simulation of a straight-line reaching task is negligibly small.</p>
<fig id="F8" position="float">
<label>Figure A1</label>
<caption><p><bold>(A)</bold> Hill muscle model as shown in Thelen et al. (<xref ref-type="bibr" rid="B41">2003</xref>), <bold>(B)</bold> Adopted Hill-type muscle model for simulations.</p></caption>
<graphic xlink:href="fncom-10-00143-a0001.tif"/>
</fig>
<p>With this assumption, the musculotendon force is simplified to
<disp-formula id="E9"><label>(A1)</label><mml:math id="M14"><mml:mrow><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>T</mml:mi><mml:mi>M</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msubsup><mml:mi>F</mml:mi><mml:mn>0</mml:mn><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x000A0;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>P</mml:mi><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mi>M</mml:mi></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>C</mml:mi><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>a</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mi>M</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mi>M</mml:mi></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x000A0;</mml:mo><mml:mi>c</mml:mi><mml:mi>o</mml:mi><mml:mi>s</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>&#x003B1;</mml:mi><mml:mi>p</mml:mi></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></disp-formula>
where <inline-formula><mml:math id="M15"><mml:msubsup><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula>, <italic>F</italic><sub><italic>CE</italic></sub>, and <italic>F</italic><sub><italic>PE</italic></sub> are the maximum isometric force, CE and PE forces, and &#x003B1;<sub><italic>p</italic></sub> is the muscle pennation angle. Here, <italic>L</italic><sub><italic>M</italic></sub> and <italic>V</italic><sub><italic>M</italic></sub> represent muscle fiber length and velocity. Muscle fiber length is defined as L<sub><italic>M</italic></sub> &#x0003D; (L<sub><italic>TM</italic></sub> &#x02013; L<sub><italic>SE</italic></sub>) cos(&#x003B1;<sub><italic>p</italic></sub>) where L<sub><italic>TM</italic></sub> and <italic>L</italic><sub><italic>SE</italic></sub> are total length of musculotendon unit and slack length of tendon, respectively. The force generated by <italic>F</italic><sub><italic>CE</italic></sub> can be separated into force-length and force-velocity relations scaled by the muscle activation command (<italic>a</italic>):
<disp-formula id="E10"><label>(A2)</label><mml:math id="M16"><mml:mrow><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>C</mml:mi><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>a</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy='false'>)</mml:mo><mml:msubsup><mml:mi>F</mml:mi><mml:mrow><mml:mi>C</mml:mi><mml:mi>E</mml:mi></mml:mrow><mml:mi>L</mml:mi></mml:msubsup><mml:mo stretchy='false'>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mi>M</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo><mml:msubsup><mml:mi>F</mml:mi><mml:mrow><mml:mi>C</mml:mi><mml:mi>E</mml:mi></mml:mrow><mml:mi>V</mml:mi></mml:msubsup><mml:mo stretchy='false'>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>a</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mi>M</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mi>M</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:math></disp-formula>
where the force-length (<inline-formula><mml:math id="M17"><mml:msubsup><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mrow><mml:mi>C</mml:mi><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>L</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula>) and force-velocity (<inline-formula><mml:math id="M18"><mml:msubsup><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mrow><mml:mi>C</mml:mi><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>V</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula>) relations are:
<disp-formula id="E11"><label>(A3)</label><mml:math id="M19"><mml:mrow><mml:msubsup><mml:mi>F</mml:mi><mml:mrow><mml:mi>C</mml:mi><mml:mi>E</mml:mi></mml:mrow><mml:mi>L</mml:mi></mml:msubsup><mml:mo>=</mml:mo><mml:msup><mml:mtext>e</mml:mtext><mml:mrow><mml:mo>&#x02212;</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mfrac><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mi>M</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msubsup><mml:mi>L</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi>p</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup></mml:mrow></mml:mfrac><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mn>2</mml:mn></mml:msup><mml:mo>/</mml:mo><mml:mi>&#x003B3;</mml:mi></mml:mrow></mml:msup></mml:mrow></mml:math></disp-formula>
<disp-formula id="E12"><label>(A4)</label><mml:math id="M20"><mml:mrow><mml:msubsup><mml:mi>F</mml:mi><mml:mrow><mml:mi>C</mml:mi><mml:mi>E</mml:mi></mml:mrow><mml:mi>V</mml:mi></mml:msubsup><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:mfrac><mml:mrow><mml:mfrac><mml:mrow><mml:msub><mml:mi>V</mml:mi><mml:mi>M</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msubsup><mml:mi>V</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>L</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi>p</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup></mml:mrow></mml:mfrac><mml:mo>+</mml:mo><mml:mi>A</mml:mi><mml:msubsup><mml:mi>V</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup></mml:mrow><mml:mrow><mml:mo>&#x02212;</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mi>V</mml:mi><mml:mi>M</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msubsup><mml:mi>V</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>L</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi>p</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mi>A</mml:mi><mml:mi>f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mi>A</mml:mi><mml:msubsup><mml:mi>V</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup></mml:mrow></mml:mfrac></mml:mrow></mml:mfrac><mml:msub><mml:mi>V</mml:mi><mml:mi>M</mml:mi></mml:msub><mml:mo>&#x0003C;</mml:mo><mml:mn>0</mml:mn></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mfrac><mml:mrow><mml:mfrac><mml:mrow><mml:msub><mml:mi>V</mml:mi><mml:mi>M</mml:mi></mml:msub><mml:mi>B</mml:mi><mml:msubsup><mml:mover accent='true'><mml:mi>F</mml:mi><mml:mo>&#x000AF;</mml:mo></mml:mover><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>l</mml:mi><mml:mi>e</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msubsup></mml:mrow><mml:mrow><mml:msubsup><mml:mi>V</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>L</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi>p</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup></mml:mrow></mml:mfrac><mml:mo>+</mml:mo><mml:mi>A</mml:mi><mml:mi>C</mml:mi><mml:msubsup><mml:mi>V</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup></mml:mrow><mml:mrow><mml:mo>&#x02212;</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mi>V</mml:mi><mml:mi>M</mml:mi></mml:msub><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:msubsup><mml:mi>V</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>L</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi>p</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mi>A</mml:mi><mml:mi>f</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mi>A</mml:mi><mml:mi>C</mml:mi><mml:msubsup><mml:mi>V</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup></mml:mrow></mml:mfrac></mml:mrow></mml:mfrac><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mi>V</mml:mi><mml:mi>M</mml:mi></mml:msub><mml:mo>&#x0003E;</mml:mo><mml:mn>0</mml:mn></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:mrow></mml:math></disp-formula>
where &#x003B3;, A, B, and C are shape factors, <inline-formula><mml:math id="M21"><mml:msubsup><mml:mrow><mml:mi>V</mml:mi></mml:mrow><mml:mrow><mml:mi>M</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> is the maximum fiber velocity, <inline-formula><mml:math id="M22"><mml:msubsup><mml:mrow><mml:mi>L</mml:mi></mml:mrow><mml:mrow><mml:mi>M</mml:mi></mml:mrow><mml:mrow><mml:mi>o</mml:mi><mml:mi>p</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> is the optimal length of fiber at which <italic>F</italic><sub><italic>CE</italic></sub> is a maximum, and <inline-formula><mml:math id="M23"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mo>&#x000AF;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>l</mml:mi><mml:mi>e</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> is the maximum normalized muscle force during lengthening. The numerical values of the muscle parameters are taken from (Thelen, <xref ref-type="bibr" rid="B40">2003</xref>).</p>
<p>The Parallel Elastic force of muscle (<italic>F</italic><sub><italic>PE</italic></sub>) is represented by an exponential function:
<disp-formula id="E13"><label>(A5)</label><mml:math id="M24"><mml:mrow><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>P</mml:mi><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msup><mml:mtext>e</mml:mtext><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mfrac><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mi>M</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msubsup><mml:mi>L</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi>p</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup></mml:mrow></mml:mfrac><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>/</mml:mo><mml:msubsup><mml:mi>&#x003F5;</mml:mi><mml:mn>0</mml:mn><mml:mi>m</mml:mi></mml:msubsup></mml:mrow></mml:msup><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:msup><mml:mtext>e</mml:mtext><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msup><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:mfrac></mml:mrow></mml:math></disp-formula>
where <italic>k</italic><sub><italic>pe</italic></sub> (&#x0003D; 0.5) is a shape factor and <inline-formula><mml:math id="M25"><mml:msubsup><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> is passive muscle strain due to maximum isometric force.</p>
<p>In this research, a first-order differential equation based on He et al. (<xref ref-type="bibr" rid="B14">1991</xref>) is used to simulate muscle excitation-to-activation dynamics. In this case, muscle activation (<italic>a</italic>) is related to the excitation (<italic>u</italic>) as follows:
<disp-formula id="E14"><label>(A6)</label><mml:math id="M26"><mml:mrow><mml:mover accent='true'><mml:mi>a</mml:mi><mml:mo>&#x002D9;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mo stretchy='false'>(</mml:mo><mml:mi>u</mml:mi><mml:mo>&#x02212;</mml:mo><mml:mi>a</mml:mi><mml:mo stretchy='false'>)</mml:mo><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mi>u</mml:mi><mml:mo>+</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mn>2</mml:mn></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:math></disp-formula>
where <italic>u</italic> and <italic>a</italic> are muscle excitation and activation respectively, and <italic>t</italic><sub>1</sub> and <italic>t</italic><sub>2</sub> are defined as follows:
<disp-formula id="E15"><label>(A7)</label><mml:math id="M27"><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mn>2</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mrow><mml:msub><mml:mi>&#x003C4;</mml:mi><mml:mrow><mml:mi>f</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>l</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mtext>&#x02003;and&#x02003;</mml:mtext><mml:msub><mml:mi>t</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mrow><mml:msub><mml:mi>&#x003C4;</mml:mi><mml:mrow><mml:mi>r</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mo>&#x02212;</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:math></disp-formula>
where &#x003C4;<sub><italic>fall</italic></sub> is the deactivation time constant (&#x0003D; 50 ms), and &#x003C4;<sub><italic>rise</italic></sub> is the activation time constant (&#x0003D; 15 ms).</p>
</sec>
</app>
<app id="A2">
<title>Appendix B</title>
<p>In this section, we have computed the SE strain using the optimal muscle activations from an NMPC simulation. Since the SE element (representing the tendon) is in series with the PE and CE elements of the Hill muscle model, the tendon force is equal to the muscle fiber force, and to that of the musculotendon unit. Therefore, we used the musculotendon force computed in NMPC simulations (with the prediction horizon of 0.8 s) as the tendon force. Then, based on the tendon force-length relation described in Thelen (<xref ref-type="bibr" rid="B40">2003</xref>), the tendon strain was calculated using following equation:
<disp-formula id="E16"><label>(A8)</label><mml:math id="M28"><mml:mrow><mml:msup><mml:mi>F</mml:mi><mml:mi>T</mml:mi></mml:msup><mml:mo>=</mml:mo><mml:msubsup><mml:mi>F</mml:mi><mml:mn>0</mml:mn><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mtable columnalign='left'><mml:mtr columnalign='left'><mml:mtd columnalign='left'><mml:mrow><mml:mfrac><mml:mrow><mml:msubsup><mml:mover accent='true'><mml:mi>F</mml:mi><mml:mo>&#x000AF;</mml:mo></mml:mover><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>e</mml:mi></mml:mrow><mml:mi>T</mml:mi></mml:msubsup></mml:mrow><mml:mrow><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msup><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:mfrac><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mo>&#x000A0;</mml:mo><mml:msup><mml:mi>&#x003F5;</mml:mi><mml:mi>T</mml:mi></mml:msup><mml:mo>/</mml:mo><mml:msubsup><mml:mi>&#x003F5;</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>e</mml:mi></mml:mrow><mml:mi>T</mml:mi></mml:msubsup></mml:mrow></mml:msup><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>;</mml:mo></mml:mrow></mml:mtd><mml:mtd columnalign='left'><mml:mrow><mml:msup><mml:mi>&#x003F5;</mml:mi><mml:mi>T</mml:mi></mml:msup><mml:mo>&#x02264;</mml:mo><mml:msubsup><mml:mi>&#x003F5;</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>e</mml:mi></mml:mrow><mml:mi>T</mml:mi></mml:msubsup></mml:mrow></mml:mtd></mml:mtr><mml:mtr columnalign='left'><mml:mtd columnalign='left'><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>l</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msup><mml:mi>&#x003F5;</mml:mi><mml:mi>T</mml:mi></mml:msup><mml:mo>&#x02212;</mml:mo><mml:msubsup><mml:mi>&#x003F5;</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>e</mml:mi></mml:mrow><mml:mi>T</mml:mi></mml:msubsup></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msubsup><mml:mover accent='true'><mml:mi>F</mml:mi><mml:mo>&#x000AF;</mml:mo></mml:mover><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>e</mml:mi></mml:mrow><mml:mi>T</mml:mi></mml:msubsup><mml:mo>;</mml:mo></mml:mrow></mml:mtd><mml:mtd columnalign='left'><mml:mrow><mml:msup><mml:mi>&#x003F5;</mml:mi><mml:mi>T</mml:mi></mml:msup><mml:mo>&#x0003E;</mml:mo><mml:msubsup><mml:mi>&#x003F5;</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>e</mml:mi></mml:mrow><mml:mi>T</mml:mi></mml:msubsup></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:mrow></mml:mrow></mml:math></disp-formula>
where <italic>F</italic><sup><italic>T</italic></sup> is the tendon force, <italic>k</italic><sub><italic>toe</italic></sub> (&#x0003D; 3) is an exponential shape factor, <italic>K</italic><sub><italic>lin</italic></sub> (&#x0003D; <inline-formula><mml:math id="M29"><mml:mn>1</mml:mn><mml:mo>.</mml:mo><mml:mn>712</mml:mn><mml:mo>/</mml:mo><mml:msubsup><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula>) is a linear scale factor, <inline-formula><mml:math id="M30"><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mo>&#x000AF;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> (&#x0003D; 0.33), <inline-formula><mml:math id="M31"><mml:mtext>&#x000A0;</mml:mtext><mml:msubsup><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> (&#x0003D; 0.033) is tendon strain due to maximum isometric force, and <inline-formula><mml:math id="M32"><mml:msubsup><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>=</mml:mo><mml:mn>0</mml:mn><mml:mo>.</mml:mo><mml:mn>609</mml:mn><mml:msubsup><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mtext>&#x000A0;</mml:mtext></mml:math></inline-formula> is the tendon strain above which the tendon exhibits linear behavior. The tendon strain &#x003F5;<sup><italic>T</italic></sup> is defined as <inline-formula><mml:math id="M33"><mml:msup><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>L</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>L</mml:mi></mml:mrow><mml:mrow><mml:mi>S</mml:mi><mml:mi>E</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>L</mml:mi></mml:mrow><mml:mrow><mml:mi>S</mml:mi><mml:mi>E</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:math></inline-formula>. To find the tendon strain, the first term of the piecewise equation (B.1) was used. If the calculated strain was within the linear region (less than <inline-formula><mml:math id="M34"><mml:msubsup><mml:mrow><mml:mi>&#x003F5;</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>o</mml:mi><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula>) the strain value is valid; otherwise the second term of (B.1) was used to calculate the tendon strain.</p>
<p>Figure <xref ref-type="fig" rid="F9">A2</xref> shows the tendon strain variations during the NMPC simulation of reaching with a 0.8 s prediction horizon. The tendon strains are less than 0.5%; therefore, the SE element of the Hill muscle model can be neglected in the planar arm model.</p>
<fig id="F9" position="float">
<label>Figure A2</label>
<caption><p><bold>Simulated tendon strain based on the results for NMPC simulation of reaching with the prediction horizon of 0.5 s</bold>.</p></caption>
<graphic xlink:href="fncom-10-00143-a0002.tif"/>
</fig>
</app>
</app-group>
</back>
</article>