SlideShare a Scribd company logo
BàitậpmônVậnhànhvàđiềukhiểnhệthốngđiện

SV: VõChíLiêm MSSV 40901369

Bài 1. Tínhtoánđiềuđộkinhtếchohệthốnggồm 3 máynhiệtcócácthôngsốnhưsau:

      H1 = 225 + 7P1 + 0.0049P12 , 45MW ≤ P1 ≤ 350 MW, FuelCost = 0.8 R/MBtu
      H2 = 792 + 6.9P1 + 0.005P12 , 45MW ≤ P2 ≤ 350 MW, FuelCost = 1.02 R/MBtu
      H3 = 400 + 7.3P1 + 0.0059P12 , 47.5MW ≤ P3 ≤ 450 MW, FuelCost = 0.9 R/MBtu
Côngsuấtyêucầu là 433MW. Sửdụngphươngpháplặp Lambda với λ0 = 7.0 R/MWh.

Giải:

Chi phíriêngcủatừngmáy :
F1 = H1.0,8 = 180 + 5.6P1 + 0.00392P12
F2 = H2.1,02 = 807.84 + 7.038P2 + 0.0051P22
F3 = H3.0,9 = 360 + 6.57P3 + 0.00531P32

Đạohàm :
dF1/dP1 = 5.6 + 0.00784P1 = λ
dF2/dP2 = 7.038 + 0.0102P2 = λ
dF3/dP3 = 6.57 + 0.01062P3 = λ
P1 + P2 + P3 = Pyc = 433MW

Suyra :      +         +         = 433

λ = 7.680728
P1 = 265.39898, P2 = 63.01255, P3 = 104.5883

Sai số : ε0 = Pyc - ∑Pi = 433 – ( 265.39898 + 63.01255 + 104.5883 ) = 0.00018 MW ≈0
Vậykếtquả là λ = 7.680728

Bài 2 :

Code :
gendata = [ 180      6.72   0.00248
743.58 6.834     0.007038
             360    6.12   0.00369];
power = [100, 300, 100 ];
Pload = 500;
%form H
n = length ( gendata ) ;
H = zeros (n+1,n+1);
for i = 1 : n
    H(i,i) = gendata (i,3) * 2;
    H(i,n+1) = -1, H(n+1,i) = -1; end
x0 = zeros(n+1,1);
x0(1:n,1) = transpose( power );

%calculate the gradient and Hessian matrices
for kk = 1 : 10
    disp(kk)
    gradient = zeros(n+1,1);
    gradient(n+1,1) = Pload;
for i =1 : n x0(n+1,1);
        gradient(i,1)=gendata(i,2) + 2 * gendata(i,3) * x0(i,1) -
x0(n+1,1);
gradient(n+1,1)= gradient(n+1,1) - x0(i,1) ; end
    dx = H  gradient;
    cost = 0;
for i = 1 : n
        cost = cost +gendata(i,1) +gendata(i,2) * x0(i) +gendata(i,3) *
x0(i) *x0(i); end
    disp( [x0', cost/1000])
    x0 = x0 - dx;
end


Kết quả ta được đáp án B

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Bt

  • 1. BàitậpmônVậnhànhvàđiềukhiểnhệthốngđiện SV: VõChíLiêm MSSV 40901369 Bài 1. Tínhtoánđiềuđộkinhtếchohệthốnggồm 3 máynhiệtcócácthôngsốnhưsau: H1 = 225 + 7P1 + 0.0049P12 , 45MW ≤ P1 ≤ 350 MW, FuelCost = 0.8 R/MBtu H2 = 792 + 6.9P1 + 0.005P12 , 45MW ≤ P2 ≤ 350 MW, FuelCost = 1.02 R/MBtu H3 = 400 + 7.3P1 + 0.0059P12 , 47.5MW ≤ P3 ≤ 450 MW, FuelCost = 0.9 R/MBtu Côngsuấtyêucầu là 433MW. Sửdụngphươngpháplặp Lambda với λ0 = 7.0 R/MWh. Giải: Chi phíriêngcủatừngmáy : F1 = H1.0,8 = 180 + 5.6P1 + 0.00392P12 F2 = H2.1,02 = 807.84 + 7.038P2 + 0.0051P22 F3 = H3.0,9 = 360 + 6.57P3 + 0.00531P32 Đạohàm : dF1/dP1 = 5.6 + 0.00784P1 = λ dF2/dP2 = 7.038 + 0.0102P2 = λ dF3/dP3 = 6.57 + 0.01062P3 = λ P1 + P2 + P3 = Pyc = 433MW Suyra : + + = 433 λ = 7.680728 P1 = 265.39898, P2 = 63.01255, P3 = 104.5883 Sai số : ε0 = Pyc - ∑Pi = 433 – ( 265.39898 + 63.01255 + 104.5883 ) = 0.00018 MW ≈0 Vậykếtquả là λ = 7.680728 Bài 2 : Code : gendata = [ 180 6.72 0.00248 743.58 6.834 0.007038 360 6.12 0.00369]; power = [100, 300, 100 ]; Pload = 500; %form H n = length ( gendata ) ; H = zeros (n+1,n+1); for i = 1 : n H(i,i) = gendata (i,3) * 2; H(i,n+1) = -1, H(n+1,i) = -1; end x0 = zeros(n+1,1); x0(1:n,1) = transpose( power ); %calculate the gradient and Hessian matrices for kk = 1 : 10 disp(kk) gradient = zeros(n+1,1); gradient(n+1,1) = Pload; for i =1 : n x0(n+1,1); gradient(i,1)=gendata(i,2) + 2 * gendata(i,3) * x0(i,1) - x0(n+1,1);
  • 2. gradient(n+1,1)= gradient(n+1,1) - x0(i,1) ; end dx = H gradient; cost = 0; for i = 1 : n cost = cost +gendata(i,1) +gendata(i,2) * x0(i) +gendata(i,3) * x0(i) *x0(i); end disp( [x0', cost/1000]) x0 = x0 - dx; end Kết quả ta được đáp án B