Acquire the ability to adjust the parameters of the control system in state feedback for a given nonlinear inverted pendulum

1 view (last 30 days)
The aim of the exercise is to acquire the ability to adjust the parameters of the control system in
state feedback for a given nonlinear inverted pendulum model z
exercises 5. The aim of steering is to stabilize the pendulum at the point of equilibrium for
non-zero starting point.
Please: Define a control criterion with the constraints 𝑐 (𝑥) ≤ 0 and illustrate
graphically.
Tuning criteria to be used in the exercise:
A. Limitations as above hard and the objective function constant, e.g. zero
B. Limitations as above hard and objective function = rise time
C. Limitations as above soft and constant objective function (only minimization of overrun)
D. Limitations as above soft and objective function = rise time (minimize tn +
overrun)
E. Limitations as above but with the minimization of time t2 (dynamic restriction displacement)
only t2 criterion
F. Limitations as above but with the minimization of time t2 (dynamic restriction displacement)
criterion t2 + tn
I'm really fresh new in this case. I did optimalization and calling program. I did also constraints program, but i'm exactly sure that I did it wrong. If you could please tell me how to manage with point A
Simulink:
  3 Comments
Sam Chak
Sam Chak on 20 Dec 2021
Edited: Sam Chak on 20 Dec 2021
The pendulum equation can be used if you want to balance the inverted position at the unstable equilibrium or . However, the reference position is not shown in your Simulink model. Futhermore, I'm unsure about the input term, .
Anyhow, to swing up the pendulum from any position and balance it at the inverted position , the following controller can be used:
, where and .
But swinging up from the lowest point requires a relatively high torque. If the reference pendulum position is modified to become
, where rad, then the initial swing-up and the swing-down actions from will begin from the same amount of torque. In other words,
if , then the pendulum will swing upward to ;
if , then the pendulum will swing downward to .

Sign in to comment.

Answers (2)

Michal Tchorzewski
Michal Tchorzewski on 20 Dec 2021
Ok, my new question is how should I do hard limitation? I'm not sure how to write it in Matlab. I know that hard limitation is this limits that are like phisical constraints. Could you please help?

Sam Chak
Sam Chak on 20 Dec 2021
To assign the hard limiter that emulates the actuator output restriction by mechanical means, you can probably follow this example:
x = linspace(-pi, pi, 301);
y1 = sin(x); % original signal
y2 = max(-0.5, min(y1, 0.5)); % actuator with amplitude constraint ±0.5
plot(x, y1, x, y2)

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!