Skip to content

Commit 9727c3c

Browse files
authored
[UPD] update docs according to new constraint handling
To merge after PR #111
1 parent e8bda0c commit 9727c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/quickstart_sdp.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ We can instantiate a model that can be solved by SDDP as well::
111111
Or we can instantiate a StochDynProgModel that can be solved only by SDP but we
112112
need to define the constraint function and the final cost function::
113113

114-
function constraints(t, x, u, xi)
115-
return (x[1] >= s_bounds[1][1])&&(x[1] <= s_bounds[1][2])
114+
function constraints(t, x, u, xi) # return true when there is no constraints ecept state and control bounds
115+
return true
116116
end
117117

118118
function final_cost_function(x)

0 commit comments

Comments
 (0)