-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
934 lines (568 loc) · 41.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.1">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<script id="hexo-configurations">
var NexT = window.NexT || {};
var CONFIG = {"hostname":"yoursite.com","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
</script>
<meta property="og:type" content="website">
<meta property="og:title" content="Zhimin">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="Zhimin">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="ZHIMIN TU">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="http://yoursite.com/">
<script id="page-configurations">
// https://hexo.io/docs/variables.html
CONFIG.page = {
sidebar: "",
isHome : true,
isPost : false,
lang : 'en'
};
</script>
<title>Zhimin</title>
<noscript>
<style>
.use-motion .brand,
.use-motion .menu-item,
.sidebar-inner,
.use-motion .post-block,
.use-motion .pagination,
.use-motion .comments,
.use-motion .post-header,
.use-motion .post-body,
.use-motion .collection-header { opacity: initial; }
.use-motion .site-title,
.use-motion .site-subtitle {
opacity: initial;
top: initial;
}
.use-motion .logo-line-before i { left: initial; }
.use-motion .logo-line-after i { right: initial; }
</style>
</noscript>
</head>
<body itemscope itemtype="http://schema.org/WebPage">
<div class="container use-motion">
<div class="headband"></div>
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="Toggle navigation bar">
<span class="toggle-line toggle-line-first"></span>
<span class="toggle-line toggle-line-middle"></span>
<span class="toggle-line toggle-line-last"></span>
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<h1 class="site-title">Zhimin</h1>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger">
</div>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="main-menu menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a>
</li>
</ul>
</nav>
</div>
</header>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
<main class="main">
<div class="main-inner">
<div class="content-wrap">
<div class="content index posts-expand">
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
<link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/07/07/lagrange-interpolation/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="ZHIMIN TU">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Zhimin">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2020/07/07/lagrange-interpolation/" class="post-title-link" itemprop="url">拉格朗日插值法-Python</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-07-07 22:11:40 / Modified: 23:14:38" itemprop="dateCreated datePublished" datetime="2020-07-07T22:11:40+08:00">2020-07-07</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="数据预处理——缺失值处理"><a href="#数据预处理——缺失值处理" class="headerlink" title="数据预处理——缺失值处理"></a>数据预处理——缺失值处理</h2><p>案例来源:<strong>《Python数据分析与挖掘实战》第6章 电力窃漏电用户自动识别</strong></p>
<p>这里介绍一种缺失值处理手段:插补法,具体是<strong>拉格朗日插值法</strong></p>
<p>拉格朗日插值法补值的具体方法如下:</p>
<p>首先从原始数据集中确定因变量和自变量,取出缺失值前后5个数据(前后数据中遇到数据不存在或者为空的,直接将数据舍去,将仅有的数据组成一组),根据取出来的10个数据组成一组。然后采用拉格朗日多项式插值公式</p>
<p><img src="https://i.loli.net/2020/07/07/ZqiVEzFQOemxh32.png" alt="image-20200707222902831"></p>
<p><img src="https://i.loli.net/2020/07/07/wLF8MasC9O3JrpZ.png" alt="image-20200707222936410"></p>
<p>其中,x为缺失值对应的下标序号,Ln(x)为缺失值的插值结果,xi为非缺失值yi的下标序号。对全部缺失数据依次进行插补,直到不存在缺失值为止。数据插补代码如代码文件6-1_Lagrange_interpolation.py所示。</p>
<p>配套教材原始代码6-1_Lagrange_interpolation.py</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br></pre></td><td class="code"><pre><span class="line">#-*- coding: utf-8 -*-</span><br><span class="line">#拉格朗日插值代码</span><br><span class="line">import pandas as pd #导入数据分析库Pandas</span><br><span class="line">from scipy.interpolate import lagrange #导入拉格朗日插值函数</span><br><span class="line"></span><br><span class="line">inputfile = '../data/missing_data.xls' #输入数据路径,需要使用Excel格式;</span><br><span class="line">outputfile = '../tmp/missing_data_processed.xls' #输出数据路径,需要使用Excel格式</span><br><span class="line"></span><br><span class="line">data = pd.read_excel(inputfile, header=None) #读入数据</span><br><span class="line"></span><br><span class="line">#自定义列向量插值函数</span><br><span class="line">#s为列向量,n为被插值的位置,k为取前后的数据个数,默认为5</span><br><span class="line">def ployinterp_column(s, n, k=5):</span><br><span class="line"> y = s[list(range(n-k, n)) + list(range(n+1, n+1+k))] #取数</span><br><span class="line"> y = y[y.notnull()] #剔除空值</span><br><span class="line"> return lagrange(y.index, list(y))(n) #插值并返回插值结果</span><br><span class="line"></span><br><span class="line">#逐个元素判断是否需要插值</span><br><span class="line">for i in data.columns:</span><br><span class="line"> for j in range(len(data)):</span><br><span class="line"> if (data[i].isnull())[j]: #如果为空即插值。</span><br><span class="line"> data[i][j] = ployinterp_column(data[i], j)</span><br><span class="line"></span><br><span class="line">data.to_excel(outputfile, header=None, index=False) #输出结果</span><br></pre></td></tr></table></figure>
<p>运行之后出现</p>
<img src="https://i.loli.net/2020/07/07/6RpJEyAUbrwtv3n.png" alt="image-20200707224536149" style="zoom: 67%;" />
<p><img src="https://i.loli.net/2020/07/07/PtWmGLjDQe2EH5X.png" alt="image-20200707224457575"></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">KeyError: 'Passing list-likes to .loc or [] with any missing labels is no longer supported, see https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike'</span><br></pre></td></tr></table></figure>
<p>我的解决过程:</p>
<ol>
<li><p>将上面出错内容进行搜索,找到以下有用的内容</p>
<p><a href="https://stackoverflow.com/questions/61291741/passing-list-likes-to-loc-or-with-any-missing-labels-is-no-longer-supported" target="_blank" rel="noopener">尝试reindex</a></p>
</li>
<li><p>改写代码</p>
<p>将</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">y = s[list(range(n-k, n)) + list(range(n+1, n+1+k))]</span><br></pre></td></tr></table></figure>
<p>改写成</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">y = s.reindex(list(range(n - k, n)) + list(range(n + 1, n + 1 + k)))</span><br></pre></td></tr></table></figure></li>
</ol>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
<link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/07/07/Useridentification/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="ZHIMIN TU">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Zhimin">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2020/07/07/Useridentification/" class="post-title-link" itemprop="url">Useridentification</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-07-07 10:27:33 / Modified: 15:40:45" itemprop="dateCreated datePublished" datetime="2020-07-07T10:27:33+08:00">2020-07-07</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="电力窃漏电用户自动识别"><a href="#电力窃漏电用户自动识别" class="headerlink" title="电力窃漏电用户自动识别"></a>电力窃漏电用户自动识别</h1><p><img src="https://i.loli.net/2020/07/07/wEd6oM982vczO3Y.png" alt="image-20200707110145129"></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
<link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/07/07/frontend/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="ZHIMIN TU">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Zhimin">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2020/07/07/frontend/" class="post-title-link" itemprop="url">前端开发漫游</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-07-07 09:58:14" itemprop="dateCreated datePublished" datetime="2020-07-07T09:58:14+08:00">2020-07-07</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2020-07-24 22:45:43" itemprop="dateModified" datetime="2020-07-24T22:45:43+08:00">2020-07-24</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p><img src="https://cdn.nlark.com/yuque/0/2019/png/85418/1550677974651-95960eb7-01bd-4ec7-864d-37f00c787c55.png" alt=""></p>
<h2 id=""><a href="#" class="headerlink" title=""></a><img src="https://cdn.nlark.com/yuque/0/2019/png/166502/1550806059387-aa469671-8a4e-41db-8260-718a1ddba899.png" alt="中文版"></h2>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
<link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/07/07/git-map/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="ZHIMIN TU">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Zhimin">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2020/07/07/git-map/" class="post-title-link" itemprop="url">git_map</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-07-07 09:58:14 / Modified: 10:01:26" itemprop="dateCreated datePublished" datetime="2020-07-07T09:58:14+08:00">2020-07-07</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>git命令思维导图</p>
<p><img src="https://i.loli.net/2020/07/07/lbOR32vuaHYSp9G.jpg" alt=""></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
<link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/06/16/modelpredictivecontrol/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="ZHIMIN TU">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Zhimin">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2020/06/16/modelpredictivecontrol/" class="post-title-link" itemprop="url">无人驾驶车辆模型预测控制-读书笔记01</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-06-16 16:15:35 / Modified: 16:19:51" itemprop="dateCreated datePublished" datetime="2020-06-16T16:15:35+08:00">2020-06-16</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="1-4-本书内容与结构说明"><a href="#1-4-本书内容与结构说明" class="headerlink" title="1.4 本书内容与结构说明"></a>1.4 本书内容与结构说明</h1><p>假设:本书假定无人驾驶车辆的感知系统能够对行驶环境进行充分的理解,能够得到障碍物、道路条件等环境信息,同时具备全局路径规划能力;车辆平台具备具备自动驾驶控制能力,横向与纵向控制系统能够控制车辆转向与速度,并且能向控制系统反馈车辆外部与内部信息。</p>
<h1 id="各章节内容"><a href="#各章节内容" class="headerlink" title="各章节内容"></a>各章节内容</h1><p><img src="https://i.loli.net/2020/06/16/RAJXcGP8uV5qKzf.png" alt="image-20200616144952579"></p>
<h1 id="轮胎模型"><a href="#轮胎模型" class="headerlink" title="*轮胎模型"></a>*轮胎模型</h1><h2 id="魔术公式"><a href="#魔术公式" class="headerlink" title="魔术公式**"></a>魔术公式**</h2><p><img src="https://i.loli.net/2020/06/16/xwAXrTtcaElPYhg.png" alt="image-20200616160431692"></p>
<h1 id="3-模型预测控制算法基础与仿真分析"><a href="#3-模型预测控制算法基础与仿真分析" class="headerlink" title="3 模型预测控制算法基础与仿真分析"></a>3 模型预测控制算法基础与仿真分析</h1><h2 id="3-1-2-控制理论中的描述"><a href="#3-1-2-控制理论中的描述" class="headerlink" title="3.1.2 控制理论中的描述"></a>3.1.2 控制理论中的描述</h2><p>模型预测控制在实现过程中有3个关键步骤,一般被称为3项基本原理,分别是预测模型、滚动优化和反馈校正。</p>
<h3 id="(1)-预测模型"><a href="#(1)-预测模型" class="headerlink" title="(1) 预测模型"></a>(1) 预测模型</h3><p>预测模型是模型预测控制的基础。其主要功能是根据对象的历史信息和未来输入,预测系统未来的输出。对预测模型的形式没有做严格的限定,状态方程、传递函数这类传统的模型都可以作为预测模型。对于线性稳定系统,阶跃响应、脉冲响应这类非参数模型,也可以直接作为预测模型来使用。</p>
<h3 id="(2)滚动优化"><a href="#(2)滚动优化" class="headerlink" title="(2)滚动优化"></a>(2)滚动优化</h3><p>模型预测控制通过某一性能指标的最优来确定控制作用,但优化不是一次离线作用,而是反复在线进行的。这就是滚动优化的含义,也是模型预测控制区别于传统最优控制的根本点。</p>
<h3 id="(3)反馈校正"><a href="#(3)反馈校正" class="headerlink" title="(3)反馈校正"></a>(3)反馈校正</h3><p>为了防止模型失配或者环境干扰引起控制对理想状态的偏离,在新的采样时刻,首先检测对象的实际输出,并利用这一实时信息对基于模型的预测结果进行修正,然后再进行新的优化。</p>
<p>基于这3个要素,模型预测控制的基本原理可以用图3.4表示</p>
<p><img src="https://i.loli.net/2020/06/16/z7PlfMVq6eIud3y.png" alt="image-20200616160539575"></p>
<p><img src="https://i.loli.net/2020/06/16/KWusJA4pjdSDT9m.png" alt="image-20200616160938170"></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
<link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/06/09/moon-sun/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="ZHIMIN TU">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Zhimin">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2020/06/09/moon-sun/" class="post-title-link" itemprop="url">太阳和月亮</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-06-09 23:36:40" itemprop="dateCreated datePublished" datetime="2020-06-09T23:36:40+08:00">2020-06-09</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2020-07-07 09:58:46" itemprop="dateModified" datetime="2020-07-07T09:58:46+08:00">2020-07-07</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>太阳和月亮<br>一个炽热<br>一个温柔<br>我也有太阳和月亮<br>一面炽热一面温柔<br>太阳和月亮<br>一个白天<br>一个夜晚<br>我也有白天和夜晚<br>一页日记一天生活</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
<link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/06/09/markdown-01/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="ZHIMIN TU">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Zhimin">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2020/06/09/markdown-01/" class="post-title-link" itemprop="url">Markdown 教程(一)</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-06-09 23:27:15" itemprop="dateCreated datePublished" datetime="2020-06-09T23:27:15+08:00">2020-06-09</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2020-06-17 16:13:48" itemprop="dateModified" datetime="2020-06-17T16:13:48+08:00">2020-06-17</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="简单介绍"><a href="#简单介绍" class="headerlink" title="简单介绍"></a>简单介绍</h1><p>Markdown是一种轻量级标记语言,它允许人们使用易读易写的纯文本格式编写文档。<br>Markdown 语言在 2004 由约翰·格鲁伯(英语:John Gruber)创建。<br>Markdown 编写的文档可以导出 HTML 、Word、图像、PDF、Epub 等多种格式的文档。<br>Markdown 编写的文档后缀为 .md, .markdown。</p>
<h1 id="应用"><a href="#应用" class="headerlink" title="应用"></a>应用</h1><p>当前许多网站都广泛使用 Markdown 来撰写帮助文档或是用于论坛上发表消息。例如:GitHub、简书、reddit、Diaspora、Stack Exchange、OpenStreetMap 、SourceForge等。</p>
<h1 id="标题"><a href="#标题" class="headerlink" title="标题"></a>标题</h1><p>markdown标题有两种格式。</p>
<h2 id="1、使用-和-标记一级和二级标题"><a href="#1、使用-和-标记一级和二级标题" class="headerlink" title="1、使用 = 和 - 标记一级和二级标题"></a>1、使用 = 和 - 标记一级和二级标题</h2><p>本教程将使用简书的md编辑器来讲解 Markdown 的语法,当然你们也可以使用其他软件代替,比如 <a href="https://www.typora.io/" target="_blank" rel="noopener">Typora</a>编辑器</p>
<p><img src="https://i.loli.net/2020/06/09/UZhnBxbaEFR1MkX.png" alt="简书编辑1.png"><br><img src="https://i.loli.net/2020/06/09/Y3vE5BfsNlVLjri.png" alt="简书预览1.png"></p>
<h2 id="2、使用-号标记"><a href="#2、使用-号标记" class="headerlink" title="2、使用 # 号标记"></a>2、使用 # 号标记</h2><p>使用 # 号可表示 1-6 级标题,一级标题对应一个 # 号,二级标题对应两个 # 号,以此类推。</p>
<p><img src="https://i.loli.net/2020/06/09/UZfVSsPERWzNabv.png" alt="简书编辑2.png"><br><img src="https://i.loli.net/2020/06/09/TJyP6GFQtYUVczo.png" alt="简书预览2.png"></p>
<h1 id="段落"><a href="#段落" class="headerlink" title="段落"></a>段落</h1><p>段落没有特殊格式,直接编写文本即可。<br><strong>段落的换行是使用2个以上空格加上enter键</strong><br>当然也可以在段落后面使用一个空行来表示重新开始一个段落。</p>
<h2 id="1、字体"><a href="#1、字体" class="headerlink" title="1、字体"></a>1、字体</h2><p>Markdown 可以使用以下几种字体:<br><img src="https://i.loli.net/2020/06/09/ecudzrg7EMiCwRI.png" alt="简书编辑3"><br><img src="https://i.loli.net/2020/06/09/EuDv2OJMnqeNwYi.png" alt="简书预览3"></p>
<h2 id="2、分割线"><a href="#2、分割线" class="headerlink" title="2、分割线"></a>2、分割线</h2><p>你可以在一行中用三个以上的星号、减号、底线来建立一个分隔线,行内不能有其他东西。你也可以在星号、减号、底线中间插入空格。下面每种写法都可以建立分隔线:</p>
<p><img src="https://i.loli.net/2020/06/09/Biv9KfzIbG2LZRM.png" alt="简书编辑4"><br><img src="https://i.loli.net/2020/06/09/n3isYlhjvWC1QHa.png" alt="简书预览4"></p>
<h2 id="3、删除线"><a href="#3、删除线" class="headerlink" title="3、删除线"></a>3、删除线</h2><p>段落上的文字要添加删除线,只需要在文字的两端加上两个波浪线 ~~ 即可<br><img src="https://i.loli.net/2020/06/09/QzufCvaS3ZybB9d.png" alt="简书编辑5"><br><img src="https://i.loli.net/2020/06/09/Uy9qFksTXW3NGdh.png" alt="简书预览5"></p>
<h2 id="4、下划线"><a href="#4、下划线" class="headerlink" title="4、下划线"></a>4、下划线</h2><p>下划线可以通过 HTML 的 <u> 标签来实现:(简书编辑器预览效果中无法实现,这里用<a href="https://www.typora.io/" target="_blank" rel="noopener">Typora</a>编辑器演示一下)</p>
<p><u>需要带下划线的文本</u><br><img src="https://i.loli.net/2020/06/09/RN36wiCfs2cZDWT.png" alt="Typora编辑器示例" style="zoom:50%;" /></p>
<h2 id="5、脚注"><a href="#5、脚注" class="headerlink" title="5、脚注"></a>5、脚注</h2><p>脚注是对文本的补充说明。<br>格式如下:<br><img src="https://i.loli.net/2020/06/09/1RfGPYzIdjVi4T7.png" alt="Typora编辑器示例"></p>
<p>未完待续,有空更新~</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
<link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/06/07/trucksim_s_function/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="ZHIMIN TU">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Zhimin">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2020/06/07/trucksim_s_function/" class="post-title-link" itemprop="url">TruckSim8.1与Matlab2018a联合仿真找不到TruckSim S-Function的解决办法</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-06-07 21:42:17" itemprop="dateCreated datePublished" datetime="2020-06-07T21:42:17+08:00">2020-06-07</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2020-06-09 23:59:10" itemprop="dateModified" datetime="2020-06-09T23:59:10+08:00">2020-06-09</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="划重点:F5-或者-刷新Simulink-Library-Browser"><a href="#划重点:F5-或者-刷新Simulink-Library-Browser" class="headerlink" title="划重点:F5 或者 刷新Simulink Library Browser"></a>划重点:F5 或者 刷新Simulink Library Browser</h2><h3 id="1、在TruckSim中点击Send-to-Simulink"><a href="#1、在TruckSim中点击Send-to-Simulink" class="headerlink" title="1、在TruckSim中点击Send to Simulink"></a>1、在TruckSim中点击Send to Simulink</h3><p><img src="https://i.loli.net/2020/06/09/28TOdLlz7JR4SED.png" alt="1.png"></p>
<h3 id="2、待Simulink打开之后,点击Simulink-Library-Browser"><a href="#2、待Simulink打开之后,点击Simulink-Library-Browser" class="headerlink" title="2、待Simulink打开之后,点击Simulink Library Browser"></a>2、待Simulink打开之后,点击Simulink Library Browser</h3><p><img src="https://i.loli.net/2020/06/09/1FEhVk9e4l3wt8p.png" alt="2.png"></p>
<h3 id="3、出现Simulink-Library-Browser-如果没有出现TruckSim-S-Funciton也没有出现提醒信息“Fix”;则右键任意条目点击Refresh刷新或者F5;出现提醒信息“Fix”则直接点击Fix"><a href="#3、出现Simulink-Library-Browser-如果没有出现TruckSim-S-Funciton也没有出现提醒信息“Fix”;则右键任意条目点击Refresh刷新或者F5;出现提醒信息“Fix”则直接点击Fix" class="headerlink" title="3、出现Simulink Library Browser 如果没有出现TruckSim S-Funciton也没有出现提醒信息“Fix”;则右键任意条目点击Refresh刷新或者F5;出现提醒信息“Fix”则直接点击Fix"></a>3、出现Simulink Library Browser 如果没有出现TruckSim S-Funciton也没有出现提醒信息“Fix”;则右键任意条目点击Refresh刷新或者F5;出现提醒信息“Fix”则直接点击Fix</h3><p><img src="https://i.loli.net/2020/06/09/QprgJX1dKyYVSIu.png" alt="3.png"></p>
<p><img src="https://i.loli.net/2020/06/09/HcBsK5mjGb9zT8R.png" alt="4.png"></p>
<h3 id="4、最终出现了TruckSim-S-Function。(掌声)"><a href="#4、最终出现了TruckSim-S-Function。(掌声)" class="headerlink" title="4、最终出现了TruckSim S-Function。(掌声)"></a>4、最终出现了TruckSim S-Function。(掌声)</h3><p><img src="https://i.loli.net/2020/06/09/HuCrWQneXOijo7k.png" alt="5.png"></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
<link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/06/07/hello-world/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="ZHIMIN TU">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Zhimin">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2020/06/07/hello-world/" class="post-title-link" itemprop="url">Hello World</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-06-07 10:49:17" itemprop="dateCreated datePublished" datetime="2020-06-07T10:49:17+08:00">2020-06-07</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2020-07-07 23:29:30" itemprop="dateModified" datetime="2020-07-07T23:29:30+08:00">2020-07-07</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="noopener">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="noopener">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="noopener">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/one-command-deployment.html" target="_blank" rel="noopener">Deployment</a></p>
<h3 id="Github-免密码登录"><a href="#Github-免密码登录" class="headerlink" title="Github 免密码登录"></a>Github 免密码登录</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ ssh -T [email protected]</span><br></pre></td></tr></table></figure>
<p><strong>注意:这一步放在 hexo deploy前面执行。</strong></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<script>
window.addEventListener('tabs:register', () => {
let { activeClass } = CONFIG.comments;
if (CONFIG.comments.storage) {
activeClass = localStorage.getItem('comments_active') || activeClass;
}
if (activeClass) {
let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
if (activeTab) {
activeTab.click();
}
}
});
if (CONFIG.comments.storage) {
window.addEventListener('tabs:click', event => {
if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
let commentClass = event.target.classList[1];
localStorage.setItem('comments_active', commentClass);
});
}
</script>
</div>
<div class="toggle sidebar-toggle">
<span class="toggle-line toggle-line-first"></span>
<span class="toggle-line toggle-line-middle"></span>
<span class="toggle-line toggle-line-last"></span>
</div>
<aside class="sidebar">
<div class="sidebar-inner">
<ul class="sidebar-nav motion-element">
<li class="sidebar-nav-toc">
Table of Contents
</li>
<li class="sidebar-nav-overview">
Overview
</li>
</ul>
<!--noindex-->
<div class="post-toc-wrap sidebar-panel">
</div>
<!--/noindex-->
<div class="site-overview-wrap sidebar-panel">
<div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
<p class="site-author-name" itemprop="name">ZHIMIN TU</p>
<div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">9</span>
<span class="site-state-item-name">posts</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<span class="site-state-item-count">7</span>
<span class="site-state-item-name">tags</span>
</div>
</nav>
</div>
</div>
</div>
</aside>
<div id="sidebar-dimmer"></div>
</div>
</main>
<footer class="footer">
<div class="footer-inner">
<div class="copyright">
©
<span itemprop="copyrightYear">2020</span>
<span class="with-love">
<i class="fa fa-heart"></i>
</span>
<span class="author" itemprop="copyrightHolder">ZHIMIN TU</span>
</div>
<div class="powered-by">Powered by <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a>
</div>
</div>
</footer>
</div>
<script src="/lib/anime.min.js"></script>
<script src="/lib/velocity/velocity.min.js"></script>
<script src="/lib/velocity/velocity.ui.min.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/motion.js"></script>
<script src="/js/schemes/muse.js"></script>
<script src="/js/next-boot.js"></script>
</body>
</html>