BystrickyK / HeatFlow

1 stars 0 forks source link

Final results #3

Open BystrickyK opened 3 years ago

BystrickyK commented 3 years ago

Task -> Control heating/cooling elements on a plate to create a heat image according to the reference image In the following animations, the reference is set by this image B The plate is discretized into 50x50 nodes. Each 6th node is an input node and can input or extract heat from the node.

In each simulation step, there's a chance that a 3x3 square with random coordinates will spontaneously cool down by -5. This is to demonstrate the controller's ability to deal with unexpected disturbances.

Unconstrained LQ-MPC regulation, large steady-state error:

https://user-images.githubusercontent.com/55796835/119213661-20ff7880-bac1-11eb-8e09-d3c32b96d526.mp4

Unconstrained LQ-MPC reference tracking with a system augmented with an input integrator, and the controller output defined as the change in system input (rather than the system input directly).

https://user-images.githubusercontent.com/55796835/119213656-1f35b500-bac1-11eb-811c-00c60475d250.mp4

LQ-MPC, ref tracking, system with input integrator. Control sequence computed using quadprog, with asymetric bounds on deltaU (positive deltas can be larger than negative deltas).

https://user-images.githubusercontent.com/55796835/119215882-b9e9c000-bad0-11eb-943f-63804fa51578.mp4

BystrickyK commented 3 years ago

118x118 grid, reference image The state dimension rises rapidly with the size of the image. All matrices had to be defined as sparse matrices for both time and memory purposes. cvut

LQ-MPC, ref tracking, delta U input, unbounded https://user-images.githubusercontent.com/55796835/119216472-2dd99780-bad4-11eb-88a6-29e25a76a7b4.mp4

Bounded, asymmetric bounds, computed using quadprog. Each computation took ~ 1.8 seconds, much longer than the previous unconstrained case.

https://user-images.githubusercontent.com/55796835/119216739-c02e6b00-bad5-11eb-8395-58ae2986e512.mp4