OpenControl.classiccontrol.controller

Module Contents

Classes

StateFeedBackController

Abstract class for controller based on state feedback .asdkjasd

PoleStatement

Design controller, move the eigvalues of system to desire.

LQR

this class implement Optimal control ,LQR

class OpenControl.classiccontrol.controller.StateFeedBackController

Bases: abc.ABC

Abstract class for controller based on state feedback .asdkjasd

abstract compute(self)

Return the matrix of controller

class OpenControl.classiccontrol.controller.PoleStatement(pole, system, algo='Arckerman')

Bases: StateFeedBackController

Design controller, move the eigvalues of system to desire. this class implement 3 method. Roppernecker, Arckerman, Modal

_Roppernecker(self)

This function Implement Controller, Designed based on Ropernecker algorithms

Raises

ValueError – if system has no matrix B

Returns

2D array, matrix of controller. got the shape (input_shape,state_shape)

Return type

[np.ndarray]

_Arckerman(self)

Implement the arckerman method.

Raises

ValueError – if B is None or system declared without input matrix (B)

Returns

the controller matrix. Result of algorithms. see _Roppernecker funtion for mor detail.

Return type

[nd.array]

_Modal(self)
compute(self)
the system instance call this method to get the controller matrix,

designed based on selected algorithms.

Returns

[description]

Return type

[np.ndarray]

class OpenControl.classiccontrol.controller.LQR(system, E, F)

Bases: StateFeedBackController

this class implement Optimal control ,LQR

compute(self)

Return the matrix of controller