Skip to content

Commit a5abd04

Browse files
committed
Update tutorial.rst
1 parent 9cff88c commit a5abd04

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

doc/tutorial.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ Work with PolyhedralFunction
1212

1313
Get Bellman value at a given point
1414
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15-
We could estimate the Bellman value at a given position :code:`xt` with a :code:`PolyhedralFunction` :code:`Vt` ::
15+
To estimate the Bellman value at a given position :code:`xt` with a :code:`PolyhedralFunction` :code:`Vt` ::
1616

1717
vx = get_bellman_value(model, param, t, Vt, xt)
18-
18+
19+
This is a lower bound of the true value.
1920

2021
Get optimal control at a given point
2122
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -24,20 +25,20 @@ To get optimal control at a given point :code:`xt` and for a given alea :code:`x
2425

2526
get_control(model, param, lpproblem, t, xt, xi)
2627

27-
where :code:`lpproblem` is the linear problem storing evaluation of Bellman function at time :math:`t`.
28+
where :code:`lpproblem` is the linear problem storing the evaluation of Bellman function at time :math:`t`.
2829

2930

3031

3132
Save and load pre-computed cuts
3233
===============================
3334

34-
We suppose that we have computed Bellman functions with SDDP. These functions are stored in a vector of :code:`PolyhedralFunctions` denoted :code:`V`
35+
Assume that we have computed Bellman functions with SDDP. These functions are stored in a vector of :code:`PolyhedralFunctions` denoted :code:`V`
3536

36-
These functions could be stored in a text file with the command::
37+
These functions can be stored in a text file with the command::
3738

3839
StochDynamicProgramming.dump_polyhedral_functions("yourfile.dat", V)
3940

40-
And we could load them with the function::
41+
And then be loaded with the function::
4142

4243
Vdump = StochDynamicProgramming.read_polyhedral_functions("yourfile.dat")
4344

@@ -46,15 +47,15 @@ And we could load them with the function::
4647
Build LP Models with PolyhedralFunctions
4748
=======================================
4849

49-
We could build a vector of :code:`JuMP.Model` with a vector of :code:`PolyhedralFunction` to perform simulation. For this, use the function::
50+
We can build a vector of :code:`JuMP.Model` with a vector of :code:`PolyhedralFunction` to perform simulation. For this, use the function::
5051

5152
problems = StochDynamicProgramming.hotstart_SDDP(model, param, V)
5253

5354

5455
SDDP hotstart
5556
=============
5657

57-
If cuts are already available, we could hotstart SDDP while overloading the function :code:`solve_SDDP`::
58+
If cuts are already available, we can hotstart SDDP while overloading the function :code:`solve_SDDP`::
5859

5960
V, pbs = solve_SDDP(model, params, 0, V)
6061

0 commit comments

Comments
 (0)