LucaDorigo / webSapo

GUI for SAPO as a web app
MIT License
1 stars 0 forks source link

Plotting Memory Issue and Frame Sampling #11

Open albertocasagrande opened 1 year ago

albertocasagrande commented 1 year ago

webSapo saturates the host memory when plotting long-lasting evolutions. This is due to plotly which requires representing all the polytope vertices along the entire time horizon, even when only a few of them are shown.

A possible way to reduce memory requirements is to display only some time instants of the evolution, for instance, by sampling them. Since this approach affects the accuracy of the flow-pipe representation, we may use a scale to select the most appropriate plot time frame or, equivalently, plot sampling time.

time_sampling