feat: support for model-requested horizons
This commit is contained in:
parent
685de96eec
commit
ac4e066bf8
24 changed files with 170 additions and 93 deletions
|
|
@ -66,10 +66,10 @@ let sqrt () =
|
|||
let reset _ _ = s_init in
|
||||
let jump _ = true in
|
||||
HNode { state = s_init;
|
||||
fder = (fun s _ y -> fder s y yd; yd);
|
||||
fzer = (fun s _ y -> fzero s y zout; zout);
|
||||
fout = (fun s _ y -> fout s y);
|
||||
step = (fun s a -> fstep s a);
|
||||
fder = (fun s _ _ y -> fder s y yd; yd);
|
||||
fzer = (fun s _ _ y -> fzero s y zout; zout);
|
||||
fout = (fun s _ _ y -> fout s y);
|
||||
step = (fun s _ a -> fstep s a);
|
||||
horizon = (fun s -> if s.s_encore then 0.0 else max_float);
|
||||
cset; cget; zset; zsize; csize; reset; jump }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue