跳到主要内容

東京大学 情報理工学系研究科 創造情報学専攻 2017年8月実施 筆記試験 第2問

Author

itsuitsuki

Description

図1のような角度θ\thetaの斜面に置かれた質量MMの台車の位置制御を考える。台車には、斜面に沿ったxx軸方向へ力ffを加え、移動させることができる。力ffは台車を引き上げるために十分な大きさを与えることができ、台車と床の摩擦および空気抵抗は無視できるものとする。時刻ttにおける力ffおよび台車の位置と速度をそれぞれf(t)f(t)x(t)x(t)v(t)v(t)と表記する。また、重力加速度の大きさをggとする。

時刻t=0t=0においてx(0)=0x(0)=0v(0)=0v(0)=0とする。この台車をx=Lx=Lの位置へ移動させる方法を考える。 以下の問いに答えよ。

(1) 台車を一定の力f(t)=F(F>0)f(t)=F (F>0)で時刻t1t_1まで加速した時の台車の位置と速度を求めよ。

(2) (1)における時刻t1t_1から時刻t2t_2 (t2t1t_2 \ge t_1)まで台車を一定の力f(t)=F(F>0)f(t)=-F (F>0)で減速し、x(t2)=Lx(t_2)=Lv(t2)=0v(t_2)=0としたい。この動作を実現するt1t_1t2t_2を求めよ。

次に、目標位置であるx=Lx=Lとの差に比例する力を台車に加えることを考える。すなわち、f(t)=k1{Lx(t)}f(t)=k_1\{L-x(t)\}を与える。なお、k1k_1は正の定数とする。

(3) この場合の台車の運動方程式を表せ。

(4) x(t)x(t)をグラフに表せ。

次に、台車の速度に比例した力を更に加えることを考える。すなわち、f(t)=k1{Lx(t)}k2v(t)f(t)=k_1\{L-x(t)\}-k_2v(t)を与える。なお、k1,k2k_1, k_2は正の定数とする。

(5) k2v(t)-k_2v(t)を加えることによって生じる効果と、その効果が現れる理由を説明せよ。

(6) x(t)x(t)が振動しないためのk1,k2k_1, k_2に関する条件を求めよ。必要であれば以下の事実を用いてよい。

微分方程式 d2xdt2+adxdt+bx=0\frac{d^2x}{dt^2}+a\frac{dx}{dt}+bx=0 (a,ba,bは実定数)\cdots(A) の一般解は、2次方程式 r2+ar+b=0r^2+ar+b=0\cdots(B) の解によって表すことができ、

  1. 式(B)が異なる二つの実数解p,qp,qを持つとき
x=C1ept+C2eqt x=C_1e^{pt}+C_2e^{qt}
  1. 式(B)が異なる二つの虚数解h±kih\pm kiを持つとき
x=eht(C1coskt+C2sinkt) x=e^{ht}(C_1\cos kt+C_2\sin kt)
  1. 式(B)が重解ppを持つとき
x=ept(C1+C2t) x=e^{pt}(C_1+C_2t)

となる。ただし、C1,C2C_1,C_2 は積分定数である。

(7) (6)で求めた条件において、x(t)x(t)のグラフを表せ。

次に、目標位置との差の積分値に比例する力をさらに加えることを考える。すなわち、 f(t)=k1{Lx(t)}k2v(t)+k30t{Lx(τ)}dτf(t)=k_1\{L-x(t)\}-k_2v(t)+k_3\int_0^t\{L-x(\tau)\}d\tau を与える。なお、k1,k2,k3k_1,k_2,k_3は正の定数とする。

(8) k30t{Lx(τ)}dτk_3\int_0^t\{L-x(\tau)\}d\tau を加えることによって生じる効果と、その効果が現れる理由を説明せよ。

Description (English)

Let us consider to control the position of a cart with mass MM placed on a slope with angle θ\theta as illustrated in Figure 1. We can move the cart by force ff along the xx-axis parallel to the slope. Assume that ff can be sufficiently large to pull up the cart. Friction between the cart and the slope and air resistance are negligible. We let f(t),x(t),f(t), x(t), and v(t)v(t) denote the force ff, the position, and the velocity of the cart at time tt, respectively. The magnitude of gravity acceleration is denoted by gg.

Suppose that x(0)=0x(0)=0 and v(0)=0v(0)=0 at time t=0t=0. We consider a method to move the cart to the position x=Lx=L. Answer the following questions.

(1) Find the position and the velocity of the cart when we accelerate it with a constant force f(t)=Ff(t)=F (F>0F>0) until the time t1t_1.

(2) We want to deaccelerate the cart with a constant force f(t)=Ff(t)=-F (F>0F>0) from the time t1t_1 in Question (1) until the time t2t_2 (t2t1t_2 \ge t_1) so that x(t2)=Lx(t_2)=L and v(t2)=0v(t_2)=0. Find t1t_1 and t2t_2 which realize this motion.

Next, we consider to give a force proportional to the displacement from the target position x=Lx=L. Specifically, we give f(t)=k1{Lx(t)}f(t)=k_1\{L-x(t)\}. k1k_1 is a positive constant.

(3) Write down the equations of motion for this case.

(4) Draw a graph of x(t)x(t).

Next, we consider to further add a force proportional to the velocity of the cart. Specifically, we give f(t)=k1{Lx(t)}k2v(t)f(t)=k_1\{L-x(t)\}-k_2v(t). k1k_1 and k2k_2 are positive constants.

(5) Explain an effect caused by adding k2v(t)-k_2v(t) and the reason why this effect occurs.

(6) Find the condition regarding k1k_1 and k2k_2 so that x(t)x(t) does not oscillate. You can use the following facts if necessary.

The general solution of a differential equation

d2xdt2+adxdt+bx=0 (a and b are real-valued constants)(A)\frac{d^2x}{dt^2}+a\frac{dx}{dt}+bx=0 \text{ ($a$ and $b$ are real-valued constants)}\cdots\text{(A)}

can be represented by the solution of the quadratic equation

r2+ar+b=0(B)r^2+ar+b=0\cdots\text{(B)}

as follows:

  1. When Eq.(B) has two different real roots pp and qq,
x=C1ept+C2eqtx=C_1e^{pt}+C_2e^{qt}
  1. When Eq.(B) has two different imaginary roots h±kih\pm ki,
x=eht(C1coskt+C2sinkt)x=e^{ht}(C_1\cos kt+C_2\sin kt)
  1. When Eq.(B) has a double root pp,
x=ept(C1+C2t)x=e^{pt}(C_1+C_2t)

Here, C1C_1 and C2C_2 are constants of integration.

(7) Draw a graph of x(t)x(t) under the condition obtained in Question (6).

Next, we consider to further add a force proportional to the integral of the displacement from the target position. Specifically, we give f(t)=k1{Lx(t)}k2v(t)+k30t{Lx(τ)}dτf(t)=k_1\{L-x(t)\}-k_2v(t)+k_3\int_0^t\{L-x(\tau)\}d\tau. k1,k2,k_1, k_2, and k3k_3 are positive constants.

(8) Explain an effect caused by adding k30t{Lx(τ)}dτk_3\int_0^t\{L-x(\tau)\}d\tau and the reason why this effect occurs.

Kai

Here are the answers to the questions.

(1) Constant Force Acceleration

We apply Newton's second law to the motion of the cart along the slope. The forces acting on the cart are the applied force FF (up the slope) and the component of gravity MgsinθMg \sin\theta (down the slope). The equation of motion is:

Ma=FMgsinθ M a = F - Mg \sin\theta

The acceleration a1a_1 is:

a1=FMgsinθM a_1 = \frac{F - Mg \sin\theta}{M}

Since initial velocity v(0)=0v(0)=0 and initial position x(0)=0x(0)=0, we integrate with respect to time tt:

Velocity:

v(t)=a1t=FMgsinθMt v(t) = a_1 t = \frac{F - Mg \sin\theta}{M} t

Position:

x(t)=12a1t2=FMgsinθ2Mt2 x(t) = \frac{1}{2} a_1 t^2 = \frac{F - Mg \sin\theta}{2M} t^2

(2) Bang-Bang Control (Acceleration and Deceleration)

Let the acceleration during the first phase (0tt10 \le t \le t_1) be a1=FMgsinθa_1 = \frac{F}{M} - g\sin\theta. Let the acceleration during the second phase (t1<tt2t_1 < t \le t_2) be a2a_2. The force is F-F, so:

a2=FMgsinθM=FMgsinθ a_2 = \frac{-F - Mg\sin\theta}{M} = -\frac{F}{M} - g\sin\theta

At time t1t_1, the position x1x_1 and velocity v1v_1 are:

v1=a1t1 v_1 = a_1 t_1
x1=12a1t12 x_1 = \frac{1}{2} a_1 t_1^2

For t>t1t > t_1, the velocity is given by v(t)=v1+a2(tt1)v(t) = v_1 + a_2(t - t_1). We require v(t2)=0v(t_2) = 0:

v1+a2(t2t1)=0    t2t1=v1a2 v_1 + a_2(t_2 - t_1) = 0 \implies t_2 - t_1 = -\frac{v_1}{a_2}

Substituting v1=a1t1v_1 = a_1 t_1:

t2t1=a1t1a2    t2=t1(1a1a2)=t1(a2a1a2) t_2 - t_1 = -\frac{a_1 t_1}{a_2} \implies t_2 = t_1 \left(1 - \frac{a_1}{a_2}\right) = t_1 \left(\frac{a_2 - a_1}{a_2}\right)

Let's evaluate the ratio term:

a2a1=(FMgsinθ)(FMgsinθ)=2FM a_2 - a_1 = \left(-\frac{F}{M} - g\sin\theta\right) - \left(\frac{F}{M} - g\sin\theta\right) = -\frac{2F}{M}

So,

t2=t12F/Ma2=t12FF+Mgsinθ(1) t_2 = t_1 \frac{-2F/M}{a_2} = t_1 \frac{2F}{F + Mg\sin\theta} \quad (*1)

Now consider the position. The total distance traveled is LL.

L=x(t2)=x1+v1(t2t1)+12a2(t2t1)2 L = x(t_2) = x_1 + v_1(t_2 - t_1) + \frac{1}{2}a_2(t_2 - t_1)^2

Using (t2t1)=v1/a2(t_2 - t_1) = -v_1/a_2:

L=x1+v1(v1a2)+12a2(v12a22)=x1v122a2 L = x_1 + v_1\left(\frac{-v_1}{a_2}\right) + \frac{1}{2}a_2\left(\frac{v_1^2}{a_2^2}\right) = x_1 - \frac{v_1^2}{2a_2}

Since v12=2a1x1v_1^2 = 2 a_1 x_1:

L=x12a1x12a2=x1(1a1a2)=x1(a2a1a2) L = x_1 - \frac{2 a_1 x_1}{2 a_2} = x_1 \left(1 - \frac{a_1}{a_2}\right) = x_1 \left(\frac{a_2 - a_1}{a_2}\right)

Substituting x1=12a1t12x_1 = \frac{1}{2}a_1 t_1^2:

L=12a1t12(2F/Ma2) L = \frac{1}{2}a_1 t_1^2 \left(\frac{-2F/M}{a_2}\right)

Solving for t1t_1:

t12=2La2a1(2F/M)=L(a2)a1(F/M) t_1^2 = \frac{2 L a_2}{a_1 (-2F/M)} = \frac{L (-a_2)}{a_1 (F/M)}

Substitute a1a_1 and a2a_2:

t12=L(F+MgsinθM)(FMgsinθM)FM=LM(F+Mgsinθ)F(FMgsinθ) t_1^2 = \frac{L (\frac{F + Mg\sin\theta}{M})}{(\frac{F - Mg\sin\theta}{M}) \frac{F}{M}} = \frac{LM(F + Mg\sin\theta)}{F(F - Mg\sin\theta)}

Thus:

t1=LM(F+Mgsinθ)F(FMgsinθ) t_1 = \sqrt{\frac{LM(F + Mg\sin\theta)}{F(F - Mg\sin\theta)}}

Using relation (1)(*1) to find t2t_2:

t2=2FF+MgsinθLM(F+Mgsinθ)F(FMgsinθ)=4F2LM(F+Mgsinθ)(FMgsinθ) t_2 = \frac{2F}{F + Mg\sin\theta} \sqrt{\frac{LM(F + Mg\sin\theta)}{F(F - Mg\sin\theta)}} = \sqrt{\frac{4F^2 L M}{(F+Mg\sin\theta)(F-Mg\sin\theta)}}
t2=4FLMF2(Mgsinθ)2 t_2 = \sqrt{\frac{4FLM}{F^2 - (Mg\sin\theta)^2}}

Answer:

t1=LM(F+Mgsinθ)F(FMgsinθ),t2=4FLMF2(Mgsinθ)2 t_1 = \sqrt{\frac{LM(F + Mg\sin\theta)}{F(F - Mg\sin\theta)}}, \quad t_2 = \sqrt{\frac{4FLM}{F^2 - (Mg\sin\theta)^2}}

(3) Proportional Control (P-Control) Equation

The force applied is f(t)=k1(Lx(t))f(t) = k_1(L - x(t)). The equation of motion (Ma=FMa = \sum F) is:

Md2xdt2=k1(Lx)Mgsinθ M \frac{d^2x}{dt^2} = k_1(L - x) - Mg \sin\theta

Rearranging the terms:

Md2xdt2+k1x=k1LMgsinθ M \frac{d^2x}{dt^2} + k_1 x = k_1 L - Mg \sin\theta

(4) Graph of x(t)x(t) for P-Control

This is a harmonic oscillator equation centered at an equilibrium point xeqx_{eq} where the net force is zero:

k1(Lxeq)=Mgsinθ    xeq=LMgsinθk1 k_1(L - x_{eq}) = Mg\sin\theta \implies x_{eq} = L - \frac{Mg\sin\theta}{k_1}

Given x(0)=0x(0)=0 and v(0)=0v(0)=0, the motion is a cosine wave shifted to start at zero and oscillating around xeqx_{eq}.

x(t)=xeq(1cos(k1Mt)) x(t) = x_{eq} \left(1 - \cos\left(\sqrt{\frac{k_1}{M}}t\right)\right)

The maximum peak is 2xeq2x_{eq}. The graph oscillates indefinitely between 00 and 2(LMgsinθk1)2(L - \frac{Mg\sin\theta}{k_1}). It does not settle at LL.

Graph: The vertical axis is x(t)x(t), horizontal is tt. The curve is a sinusoidal wave starting at (0,0)(0,0), peaking at x2Lx \approx 2L (minus the gravity offset), and centered at a level slightly below LL.

Graph Description: A cosine wave starting from 0, oscillating between 0 and 2(L - Mg sin(theta)/k1). The center of oscillation (dotted line) is at x = L - Mg sin(theta)/k1. (Note: As an AI text model, I describe the graph. The key feature is sustained oscillation centered below the target L due to gravity).

(5) Proportional-Derivative (PD) Control

Effect: The term k2v(t)-k_2 v(t) acts as a damper (viscous friction). It suppresses the oscillation of the cart, causing the amplitude of the vibration to decay over time so that the position converges to a steady value. Reason: The force k2v(t)-k_2 v(t) is always opposite to the direction of motion. This performs negative work on the system, dissipating kinetic energy until the cart stops moving (v=0v=0).

(6) Condition for Non-oscillatory Motion

The equation of motion is:

Mx¨+k2x˙+k1x=k1LMgsinθ M \ddot{x} + k_2 \dot{x} + k_1 x = k_1 L - Mg\sin\theta

The characteristic equation for the homogeneous part (Mr2+k2r+k1=0M r^2 + k_2 r + k_1 = 0) determines the behavior.

r2+k2Mr+k1M=0 r^2 + \frac{k_2}{M} r + \frac{k_1}{M} = 0

For the solution not to oscillate (no imaginary part), the discriminant DD of the quadratic equation must be non-negative (D0D \ge 0).

D=(k2M)24(1)(k1M)0 D = \left(\frac{k_2}{M}\right)^2 - 4(1)\left(\frac{k_1}{M}\right) \ge 0
k22M24k1M \frac{k_2^2}{M^2} \ge \frac{4k_1}{M}

Multiplying by M2M^2:

k224Mk1 k_2^2 \ge 4 M k_1

(7) Graph of x(t)x(t) for Non-oscillatory PD Control

Under the condition k224Mk1k_2^2 \ge 4Mk_1 (overdamped or critically damped), the system approaches the equilibrium without oscillating. The equilibrium position is found by setting derivatives to zero:

k1xfinal=k1LMgsinθ    xfinal=LMgsinθk1 k_1 x_{final} = k_1 L - Mg\sin\theta \implies x_{final} = L - \frac{Mg\sin\theta}{k_1}

The cart starts at 00 and asymptotically approaches xfinalx_{final}, which is slightly less than the target LL due to gravity (steady-state error).

Graph: The curve starts at (0,0)(0,0) with zero slope, rises smoothly, and flattens out to approach the horizontal asymptote x=LMgsinθk1x = L - \frac{Mg\sin\theta}{k_1} from below. It never crosses LL.

(8) Proportional-Integral-Derivative (PID) Control

Effect: The addition of the integral term k30t{Lx(τ)}dτk_3 \int_0^t \{L-x(\tau)\} d\tau eliminates the steady-state error, causing the cart to converge exactly to the target position x=Lx = L. Reason: In the previous cases (P and PD control), the controller relied on the position error (Lx)(L-x) to generate force. To counteract gravity (MgsinθMg\sin\theta), a non-zero error was required (steady-state error). With the integral term, if there is any steady error Lx0L - x \neq 0, the integral value grows over time, increasing the applied force ff. This accumulation continues until the force is sufficient to balance gravity exactly when the error is zero (x=Lx=L). In steady state, x˙=0,x¨=0\dot{x}=0, \ddot{x}=0, and x=Lx=L, making the integral term provide the constant force MgsinθMg\sin\theta.