LIRRA  1.0.0
Loading...
Searching...
No Matches
rl_stl.synthesis.istl.RecedingISTL Class Reference

Public Member Functions

 __init__ (self, RecedingProblem problem, int first_window=0, ISTLSettings settings=ISTLSettings())
 
None update (self, np.ndarray x0, History history, np.ndarray x_nom, np.ndarray u_nom, int|None root_age=None, tuple[np.ndarray, np.ndarray]|None start=None)
 
ISTLResult solve (self)
 

Public Attributes

 p
 
 first_window
 
 settings
 
 build_time
 
 md
 
 x
 
 u
 
 face_bins
 
 update_time
 

Protected Member Functions

None _build (self)
 
gp.Var _holds (self, STLFormula node, int j)
 
gp.Var _predicate (self, LinearPredicate pred, int j)
 
gp.Var _interval_predicate (self, IntervalPredicate pred, int j)
 

Protected Attributes

 _x_box
 
 _thr_max
 
 _track_rows
 
 _effort_rows
 

Detailed Description

Persistent Gurobi model for one :class:`RecedingProblem` and ``first_window``.

Constructor & Destructor Documentation

◆ __init__()

rl_stl.synthesis.istl.RecedingISTL.__init__ (   self,
RecedingProblem  problem,
int   first_window = 0,
ISTLSettings   settings = ISTLSettings() 
)

Member Function Documentation

◆ _build()

None rl_stl.synthesis.istl.RecedingISTL._build (   self)
protected

◆ _holds()

gp.Var rl_stl.synthesis.istl.RecedingISTL._holds (   self,
STLFormula  node,
int  j 
)
protected

◆ _interval_predicate()

gp.Var rl_stl.synthesis.istl.RecedingISTL._interval_predicate (   self,
IntervalPredicate  pred,
int  j 
)
protected
Binary ``z`` with ``z = 1 => lower([a]^T [y_j] - [b]) >= threshold`` (module docstring).

◆ _predicate()

gp.Var rl_stl.synthesis.istl.RecedingISTL._predicate (   self,
LinearPredicate  pred,
int  j 
)
protected

◆ solve()

ISTLResult rl_stl.synthesis.istl.RecedingISTL.solve (   self)

◆ update()

None rl_stl.synthesis.istl.RecedingISTL.update (   self,
np.ndarray  x0,
History  history,
np.ndarray  x_nom,
np.ndarray  u_nom,
int | None   root_age = None,
tuple[np.ndarray, np.ndarray] | None   start = None 
)
Apply the time-varying data of one request.

``x0``: plan root; ``root_age``: tube age of the root (None: measured).
``x_nom (N+1, n)`` / ``u_nom (N, m)``: nominal mission reference rollout.
``start``: optional MIP start ``(X, U)`` (e.g. the shifted cached plan).

Member Data Documentation

◆ _effort_rows

rl_stl.synthesis.istl.RecedingISTL._effort_rows
protected

◆ _thr_max

rl_stl.synthesis.istl.RecedingISTL._thr_max
protected

◆ _track_rows

rl_stl.synthesis.istl.RecedingISTL._track_rows
protected

◆ _x_box

rl_stl.synthesis.istl.RecedingISTL._x_box
protected

◆ build_time

rl_stl.synthesis.istl.RecedingISTL.build_time

◆ face_bins

rl_stl.synthesis.istl.RecedingISTL.face_bins

◆ first_window

rl_stl.synthesis.istl.RecedingISTL.first_window

◆ md

rl_stl.synthesis.istl.RecedingISTL.md

◆ p

rl_stl.synthesis.istl.RecedingISTL.p

◆ settings

rl_stl.synthesis.istl.RecedingISTL.settings

◆ u

rl_stl.synthesis.istl.RecedingISTL.u

◆ update_time

rl_stl.synthesis.istl.RecedingISTL.update_time

◆ x

rl_stl.synthesis.istl.RecedingISTL.x

The documentation for this class was generated from the following file: