代写辅导接单-Scenario MPC example

欢迎使用51辅导,51作业君孵化低价透明的学长辅导平台,服务保持优质,平均费用压低50%以上! 51fudao.top

Scenario MPC example

Reference paper: A. Cordoba-Pacheco, F. Ruiz, “Optimal Energy Management in multi-microgrids. A

Scenario-Based MPC Approach,” in 2024 European Control Conference, 2024.

Control problem is defined in the following, where the numbers of the equations refer to the paper.

min

௉ீ

್ೠ೤

,௉ீ

ೞ೐೗೗

,

್ೠ೤

ೕ,ೖ

,௉

ಶೄ

ವ೔ೞ

,௉

ಶೄ

಴೓

,

ುೇ

,௉

ೈಶ

,ఋ

+෍퐽

஽஼

ெோ

௞ୀଵ

(

23

)

s.t.

푆푂퐶

ாௌ

௧ାଵ

=푆푂퐶

ாௌ

+

ாௌ

಴೓

⋅휂

ாௌ

಴೓

⋅Δ푡

௠௔௫

ாௌ

ವ೔ೞ

⋅Δ푡

ாௌ

ವ೔ೞ

⋅푄

௠௔௫

(

2

)

௉௏

ೖ,ೞ೎೙

௧ାଵ

௉௏

ೖ,ೞ೎೙

௉௏

ೖ,ೞ೎೙

௧ିଵ

௉௏

ೖ,ೞ೎೙

௧ିଶ

௉௏

ೖ,ೞ೎೙

௧ିଷ

=

0.42 0.11 0.15 0.05 0.04

1 0 0 0 0

0 1 0 0 0

0 0 1 0 0

0 0 0 1 0

௉௏

ೖ,ೞ೎೙

௉௏

ೖ,ೞ೎೙

௧ିଵ

௉௏

ೖ,ೞ೎೙

௧ିଶ

௉௏

ೖ,ೞ೎೙

௧ିଷ

௉௏

ೖ,ೞ೎೙

௧ିସ

+

1

0

0

0

0

௞,௦௖௡

(

24

)

0≤푃퐺

௕௨௬

≤푃퐺

௕௨௬௠௔௫

⋅퐵

௦௕

(

7

)

0≤ 푃퐺

௦௘௟௟

≤푃퐺

௦௘௟௟௠௔௫

⋅൫1−퐵

௦௕

(

8

)

0≤푃

௕௨௬

ೖ,ೕ

≤푃퐺

௕௨௬௠௔௫

⋅퐵

௦௕

(

9

)

0≤푃

௕௨௬

ೕ,ೖ

≤푃

௦௘௟௟௠௔௫

⋅൫1−퐵

௦௕

(

10

)

0≤푃

ாௌ

಴೓

≤푃

ாௌ

಴೓೘ೌೣ

⋅퐵

ாௌ

(

11

)

0≤푃

ாௌ

ವ೔ೞ

≤푃

ாௌ

ವ೔ೞ೘ೌೣ

⋅൫1−퐵

ாௌ

(

12

)

푆푂퐶

ாௌ

೘೔೙

≤푆푂퐶

ாௌ

≤푆푂퐶

ாௌ

೘ೌೣ

(

3

)

0≤푃

ௐா

≤ 푃

ௐா

(

5

)

0≤푃

௉௏

≤ 푃

௉௏

ೖ,ೞ೎೙

(

19

)

−훿

≤푃퐺

௕௨௬

+푃

ாௌ

ವ೔ೞ

+푃

௉௏

+푃

ௐா

+෍푃

௕௨௬

ೖ,ೕ

ெோ

௝ୀଵ

푃퐺

௦௘௟௟

−푃

ாௌ

಴೓

−푃

஼௅

−෍푃

௕௨௬

ೕ,ೖ

ெோ

௝ୀଵ

≤훿

(

20

)

≥0

(

21

)

with 푘=1,...,푀푅, 푗=1,...,푀푅, 푡=푡

௠௣௖

,푡

௠௣௖

+1,...,푇

௛௭௡

−1, 푠푐푛=1,...,푁

௦௖௡

The cost function is computed as

+෍퐽

஽஼

ெோ

௞ୀଵ

where

=

⋅Δ푡

஽஼

=෍ ቂ൫푃퐺

௕௨௬

−푃퐺

തതതത

௕௨௬

⋅퐶

̅

௕௨௬

−൫푃퐺

௦௘௟௟

−푃퐺

തതതത

௦௘௟௟

⋅퐶

̅

௦௘௟௟

ቃ⋅Δ푡

௧ା்

೓೥೙

ିଵ

௧ୀ௧

೘೛೎

Known information:

 푀푅=3

 푇

௛௭௡

=20

 푁

௦௖௡

=89

System inputs 풖

at time instant 풕, with 풕=ퟏ,ퟐ,...,ퟐퟎ:

 푃퐺

௕௨௬

, with 푘=1,2,3

 푃퐺

௦௘௟௟

, with 푘=1,2,3

 푃

௦௘௟௟

ೖ,ೕ

, with 푘=1,2,3, and 푗=1,2,3

 푃

௕௨

ೕ,ೖ

, with 푘=1,2,3, and 푗=1,2,3

 푃

ாௌ

ವ೔ೞ

, with 푘=1,2,3

 푃

ாௌ

಴೓

, with 푘=1,2,3

 푃

௉௏

, with 푘=1,2,3

 푃

ௐா

, with 푘=1,2,3

 훿

System states 풙

at time instant 풕, with 풕=ퟏ,ퟐ,...,ퟐퟎ:

 푆푂퐶

ாௌ

, with 푘=1,2,3

 푃

௉௏

ೖ,ೞ೎೙

, with 푘=1,2,3 and 푁

௦௖௡

=1,2,...,89

 푃

௉௏

ೖ,ೞ೎೙

௧ିଵ

, with 푘=1,2,3 and 푁

௦௖௡

=1,2,...,89

 푃

௉௏

ೖ,ೞ೎೙

௧ିଶ

, with 푘=1,2,3 and 푁

௦௖௡

=1,2,...,89

 푃

௉௏

ೖ,ೞ೎೙

௧ିଷ

, with 푘=1,2,3 and 푁

௦௖௡

=1,2,...,89

 푃

௉௏

ೖ,ೞ೎೙

௧ିସ

, with 푘=1,2,3 and 푁

௦௖௡

=1,2,...,89

Known parameters at time instant 풕, with 풕=ퟏ,ퟐ,...,ퟐퟎ:

 푃퐺

௕௨௬௠௔௫

 푃퐺

௦௘௟௟௠௔௫

 퐵

௦௕

, with 푘=1,2,3

 푃

ாௌ

಴೓೘ೌೣ

 퐵

ாௌ

, with 푘=1,2,3

 퐵

஽௜௦

, with 푘=1,2,3

 휂

ாௌ

ವ೔ೞ

, with 푘=1,2,3

 휂

ாௌ

಴೓

, with 푘=1,2,3

 푄

௠௔௫

, with 푘=1,2,3

 Δ푡

 푆푂퐶

ாௌ

೘೔೙

, with 푘=1,2,3

 푆푂퐶

ாௌ

೘ೌೣ

, with 푘=1,2,3

 푃퐺

തതതത

௕௨௬

, with 푘=1,2,3

 퐶

̅

௕௨௬

 푃퐺

തതതത

௦௘௟௟

, with 푘=1,2,3

 퐶

̅

௦௘௟௟

System disturbances 풅

at time instant 풕, with 풕=ퟏ,ퟐ,...,ퟐퟎ:

 휖

௞,௦௖௡

, with 푘=1,2,3 and 푁

௦௖௡

=1,2,...,89

System dynamics is described in Eqs. (2) and (24) and can be recast as

௧ାଵ

=퐴푥

+퐵푢

+퐸

+퐹

+퐺

51作业君

Email:51zuoyejun

@gmail.com

添加客服微信: abby12468