﻿1
00:00:00,240 --> 00:00:07,170
‫And in order to use the basic NPC version, we first had to democratize our system because it was in

2
00:00:07,170 --> 00:00:08,220
‫the continuous form.

3
00:00:08,430 --> 00:00:11,970
‫But NPC is a discrete control technique.

4
00:00:12,210 --> 00:00:17,970
‫One way to look at the difference between a continuous and a discrete system mathematically was to look

5
00:00:17,970 --> 00:00:22,030
‫at their respective states based system forms.

6
00:00:22,290 --> 00:00:29,880
‫So this one was for the continuous system and this one was for the discrete system where the discrete

7
00:00:29,880 --> 00:00:40,380
‫AI was the identity matrix plus the continuous AI, which is this one times the sample time, then the

8
00:00:40,380 --> 00:00:49,380
‫discrete B was the continuous B, which is this one times the sample time and then the discrete C was

9
00:00:49,380 --> 00:00:57,120
‫the same, like the continuous C, which is this one, and the discrete D was the same, like the continuous

10
00:00:57,120 --> 00:00:59,390
‫deal which is this one.

11
00:00:59,970 --> 00:01:08,100
‫And we said that in most cases this part here becomes zero and this part here becomes zero as well.

12
00:01:08,370 --> 00:01:15,240
‫And these expressions here, they come from a simple democratization technique called the forward oilor

13
00:01:15,480 --> 00:01:16,160
‫method.

14
00:01:16,590 --> 00:01:23,490
‫Note the difference in the logic in the continuous case after multiplying your states, which is this

15
00:01:23,490 --> 00:01:31,050
‫one and your inputs, which is this one, after multiplying them by the matrices and then adding them

16
00:01:31,050 --> 00:01:35,400
‫together, you get the time derivative of your states.

17
00:01:35,640 --> 00:01:43,320
‫But in the discrete version, after doing the same thing, you get a state, an entire state in the

18
00:01:43,320 --> 00:01:44,360
‫next sample time.

19
00:01:44,640 --> 00:01:48,690
‫That's one way to look at their differences in the continuous form.

20
00:01:49,140 --> 00:01:54,630
‫You get that time derivative of your states and the output as a function of time.

21
00:01:54,970 --> 00:02:03,000
‫And in the district form you get an entire state in the next sample time and an output in this present

22
00:02:03,000 --> 00:02:03,920
‫sample time.

23
00:02:04,200 --> 00:02:11,700
‫So the state will be one sample time ahead compared to the output and the discrete system matrices.

24
00:02:11,700 --> 00:02:16,920
‫Add BDC and are the ones that will be used in NPC.

25
00:02:17,370 --> 00:02:23,550
‫A good explicit way to see why we needed to democratize the system can be seen.

26
00:02:23,970 --> 00:02:27,600
‫If we look at this mathematical manipulation right here.

27
00:02:28,110 --> 00:02:33,650
‫Consider this system with the horizon period of three samples.

28
00:02:33,930 --> 00:02:43,350
‫The goal here is to lose all the future state variables on the right side of the equations X1 and x2

29
00:02:43,950 --> 00:02:53,160
‫so that you would only be left with your current state X zero and your system inputs Delta Zero, Delta

30
00:02:53,160 --> 00:03:00,270
‫one and Delta to this manipulation is just one part of the entire NPC derivation that I went through

31
00:03:00,270 --> 00:03:03,900
‫thoroughly applied control systems for engineers one.

32
00:03:04,170 --> 00:03:11,550
‫However, it shows very well that you need a discrete system form and not a continuous version because

33
00:03:11,550 --> 00:03:19,980
‫on the left side of the equations you need to have the new states in the next sample type and not a

34
00:03:19,980 --> 00:03:22,680
‫derivative of the states with respect to time.

