<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Christopher Iliffe Sprague on Medium]]></title>
        <description><![CDATA[Stories by Christopher Iliffe Sprague on Medium]]></description>
        <link>https://medium.com/@cisprague?source=rss-a85f51a1168d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lrtfiZjH-YE7ARY7k-0qsw.jpeg</url>
            <title>Stories by Christopher Iliffe Sprague on Medium</title>
            <link>https://medium.com/@cisprague?source=rss-a85f51a1168d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 23:09:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cisprague/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Learning optimal multi-objective state-feedback controllers]]></title>
            <link>https://medium.com/@cisprague/learning-optimal-multi-objective-state-feedback-controllers-55b2203e3d3?source=rss-a85f51a1168d------2</link>
            <guid isPermaLink="false">https://medium.com/p/55b2203e3d3</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[space-exploration]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Christopher Iliffe Sprague]]></dc:creator>
            <pubDate>Sat, 09 Mar 2019 15:11:08 GMT</pubDate>
            <atom:updated>2019-03-09T15:21:09.741Z</atom:updated>
            <content:encoded><![CDATA[<h4>With deep imitation learning</h4><p>Imagine you are a spacecraft tasked with the mission of travelling from Earth to Mars. How would you control yourself at every moment in time to fulfil this mission? This is the question that optimal control asks.</p><p>For most interesting systems, however, this question is not easily answered, due to, e.g., unknown or overly complex dynamics. In fact, it is often impossible to find the optimal control u as a function of the state u(s) in closed form. So the alternative open-loop solution is often sought instead, which yields an optimal trajectory[(s, u)_0, …, (s, u)_n]. Although this solution isn’t the optimal control, it is a trajectory which demonstrates the optimal control.</p><p>This is the key! We can obtain <strong>demonstrations</strong> of the expert (optimal) behaviour, which we may then use for learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lw75MNzMkj1XS5wBtAXUMw.jpeg" /><figcaption>An example expert demonstration. (Columbia Pictures — Everett Collection)</figcaption></figure><p>In Karate Kid, we know Mr. Miyagi is an expert, but we don’t know what’s going on in his head (unknown dynamics). Despite this, Daniel was able to learn from his expert demonstrations (optimal trajectories).</p><h4>Objectives</h4><p>Now, imagine you are a spacecraft again, what would your objectives be?</p><ol><li>First, of course, we should make it to the destination (Mars) to fulfil the mission.</li><li>Second, we should minimise some sort of running cost, e.g., time of travel or fuel consumption.</li></ol><p>The first objective, or rather constraint, is uncompromising, as the mission would be under-defined without it. The second objective, however, is a little bit more complex, as the control behaviour could change vastly based on how we define the running cost.</p><p>Let’s assume we have two possible cost functions (Lagrangian) that get integrated from an initial time t = 0 to a final time t = T:</p><ol><li>time of travel: L = 1</li><li>fuel consumption: L = u</li></ol><p>We could solve for an optimal trajectory with either function, but what if we want to achieve a balance of optimality between the two?</p><p>In comes <a href="https://en.wikipedia.org/wiki/Homotopy">homotopy</a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*h9bdcVZUT7PqCVklVwmg0w.gif" /><figcaption>A homotopy path</figcaption></figure><p>We can define a homotopic cost function L that combines one cost L1 with another L2 using a <em>homotopy parameter </em><em>0 &lt;= a &lt;= 1:</em></p><p>L = a*L1 + (1-a)*L2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*FvsG1YgPTXZvQOcGBs2eZw.png" /><figcaption>The homotopy path between fuel optimal control (solid line) and time optimal control (dashed line) shown in the spacecraft’s state trajectory.</figcaption></figure><p>Now we can simply adjust a to adjust the priority of L1 and L2. You can use a = 0 to satisfy only L1 and a = 1 to satisfy only L2. If you want a trade-off in satisfaction you can use 0 &lt; a &lt; 1.</p><h4>Learning</h4><p>Cool! So we can give expert demonstrations under a certain cost function and learn the resulting behaviour.</p><p>But what if we want to learn <strong>more than one behaviour</strong>. We can do this as humans, so why couldn’t deep learning achieve this given its remarkable progress in recent years? It sounded reasonable, so we gave it a try!</p><p>In previous works [<a href="https://arxiv.org/abs/1610.08668">1</a>, <a href="https://arxiv.org/abs/1802.00180">2</a>, <a href="https://arxiv.org/abs/1901.02369">3</a>, <a href="https://arxiv.org/abs/1809.10283">4</a>], the optimal state-feedback control u(s), was learnt from demonstrations of optimal trajectories from <a href="https://en.wikipedia.org/wiki/Pontryagin%27s_maximum_principle">Pontryagin’s maximum principle</a>, using deep multi-layer perceptrons.</p><p>With a large database of optimal trajectories, we can generate a training database like this:</p><pre>State     Control<br>s_0       u_0<br>s_1       u_1<br>s_2       u_2<br>...       ...<br>s_m       u_m</pre><p>With a neural network and this database we can learn the mapping from the state to the optimal control s -&gt; u.</p><p>To learn this mapping for different objectives we extend the input of the neural network to include the implemented homotopy parameter. So we end up with a new database like this:</p><pre>State     Homotopy Parameter     Control<br>s_0       a_0                    u_0<br>s_1       a_1                    u_1<br>s_2       a_2                    u_2<br>...       ...                    ...<br>s_m       a_m                    u_m</pre><p>With this type of database we learn the mapping from the state and homotopy parameter to the optimal control (s, a) -&gt; u. This enables us to use the neural network as an optimal state-feedback controller, which allows us to <strong>change the criteria that is optimised on the fly</strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vEPjvIGzR17i4KI3JInzrQ.png" /><figcaption>The homotopic state-feedback controller implemented in <a href="https://arxiv.org/abs/1902.10139">Learning a Family of Optimal State Feedback Controllers</a>.</figcaption></figure><h4>Performance</h4><p>Amazingly, the implemented neural network was able to learn a discontinuous homotopy path between fuel optimal control (bang-off-bang) and time optimal control (bang).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*PRptDf0XenPqM27XydEOjA.png" /><figcaption>Neural network control trajectories from Earth to Mars for many different homotopy parameters.</figcaption></figure><h4>Conclusions</h4><p>We came up with a new method to learn a family of optimal state feedback controllers. The key benefit is that we can use the trained neural network in real-time with a chosen homotopy parameter.</p><p>Suppose you’re a spacecraft once again. You’re travelling form Earth to Mars using a time-optimal control policy. Then, all of a sudden you realise there is a fuel leakage. No problem, change the homotopy parameter to switch to fuel optimal control!</p><p>This was a rather brief overview of this new method. If you want to learn more have a look at:</p><p><a href="https://arxiv.org/abs/1902.10139">Sprague, Christopher Iliffe, Dario Izzo, and Petter Ögren. “Learning a Family of Optimal State Feedback Controllers.” (2019).</a></p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55b2203e3d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>