# HG changeset patch # User Frederic Bastien # Date 1284769470 14400 # Node ID 073c2fab7bcd5676f74df1420d334bbc992ae53a # Parent 7d34edde029d975fc60ca5e29d9c2c2c48f757f4 fix rst syntax. diff -r 7d34edde029d -r 073c2fab7bcd doc/v2_planning/API_optimization.txt --- a/doc/v2_planning/API_optimization.txt Fri Sep 17 17:53:35 2010 -0400 +++ b/doc/v2_planning/API_optimization.txt Fri Sep 17 20:24:30 2010 -0400 @@ -33,6 +33,8 @@ optimization algorithms should be global functions with a signature like 'iterative_optimizer'. +.. code-block:: python + def iterative_optimizer(parameters, cost=None, gradients=None, @@ -84,6 +86,8 @@ scipy's. Its arguments are numpy arrays, and functions that manipulate numpy arrays. +.. code-block:: python + def minimize(x0, f, df, opt_algo, **kwargs): """ Return a point x_new with the same type as x0 that minimizes function `f` @@ -114,6 +118,8 @@ control. Technically minimize() is probably implemented using this minimize_iterator interface. +.. code-block:: python + class minimize_iterator(object): """ Attributes