Commit 0a119b4c authored by Tjerk Vreeken's avatar Tjerk Vreeken

Fix formatting of broken escape sequences

Flake8 only started reporting this formatting error starting with
version 3.6 (error code W605), causing our test pipeline to fail even
though there were no changes to the codebase. This commit makes sure
that the formatting checks pass again.
parent a93ccfdb
......@@ -109,13 +109,13 @@ class CollocatedIntegratedOptimizationProblem(OptimizationProblem, metaclass=ABC
.. math::
\dot{x} = f(x, u)
\\dot{x} = f(x, u)
using the :math:`\\theta`-method
.. math::
x_{i+1} = x_i + \Delta t \\left[\\theta f(x_{i+1}, u_{i+1}) + (1 - \\theta) f(x_i, u_i)\\right]
x_{i+1} = x_i + \\Delta t \\left[\\theta f(x_{i+1}, u_{i+1}) + (1 - \\theta) f(x_i, u_i)\\right]
The default is :math:`\\theta = 1`, resulting in the implicit or backward Euler method. Note that in this
case, the control input at the initial time step is not used.
......
......@@ -83,7 +83,7 @@ class Goal(metaclass=ABCMeta):
The goal violation value is taken to the order'th power in the objective function of the final
optimization problem.
Example definition of the point goal :math:`x(t) \geq 1.1` for :math:`t=1.0` at priority 1::
Example definition of the point goal :math:`x(t) \\geq 1.1` for :math:`t=1.0` at priority 1::
class MyGoal(Goal):
def function(self, optimization_problem, ensemble_member):
......@@ -95,7 +95,7 @@ class Goal(metaclass=ABCMeta):
target_min = 1.1
priority = 1
Example definition of the path goal :math:`x(t) \geq 1.1` for all :math:`t` at priority 2::
Example definition of the path goal :math:`x(t) \\geq 1.1` for all :math:`t` at priority 2::
class MyPathGoal(Goal):
def function(self, optimization_problem, ensemble_member):
......@@ -226,7 +226,7 @@ class StateGoal(Goal, metaclass=ABCMeta):
:cvar critical: If ``True``, the algorithm will abort if this goal cannot be fully met.
Default is ``False``.
Example definition of the goal :math:`x(t) \geq 1.1` for all :math:`t` at priority 2::
Example definition of the goal :math:`x(t) \\geq 1.1` for all :math:`t` at priority 2::
class MyStateGoal(StateGoal):
state = 'x'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment