📄 d_003_uc.mdl
字号:
SourceBlock "fm_lib/Power Flow/Slack"
SourceType "SW"
p2_3q "[100 400]"
p4q "1.00"
p5q "0.00"
p6_7q "[1.5 -1.5]"
p8_9q "[1.1 0.9]"
p10q "0.40"
p11q "1"
}
Block {
BlockType SubSystem
Name "Supply"
Tag "PSATblock"
Description "OPF & CPF"
Ports [1, 1, 0, 0, 0]
Position [100, 110, 130, 140]
ShowName off
ShowPortLabels on
MaskType "Supply"
MaskDescription "This block defines a PV bus for bifurcation and"
" market studies:\n"
MaskPromptString "Power Rating [MVA]|Active Power [p.u.]|Max & Mi"
"n Power Supply [p.u. p.u.]|Cost = a + b*P + c*P^2 [$/h, $/MWh, $/(MW)^2 h]|C"
"ost = a + b*Q + c*Q^2 [$/h, $/MVArh, $/(MVAr)^2 h]|Allow Unit Commitment|Tie "
"Breaking Cost [$/h]|Number of Input Signals"
MaskStyleString "edit,edit,edit,edit,edit,checkbox,edit,popup(0|"
"1|2)"
MaskTunableValueString "on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||"
MaskEnableString "on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on"
MaskVariables "p2q=@1;p3q=@2;p4_5q=@3;p7_8_9q=@4;p10_11_12q=@5"
";p13q=@6;p14q=@7;in=@8;"
MaskInitialization "fm_inout;\n[x,y] = fm_draw('circle');\n[xs,ys] "
"= fm_draw('S');"
MaskDisplay "plot(x,y,xs,ys,[0 0],[0.7 -0.7])\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "100|0.0|[0.6 0.10]|[6 9.8 0.1]|[0.00 0.00 0.0"
"0]|off|0|1"
System {
Name "Supply"
Location [381, 229, 648, 436]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [25, 25, 45, 45]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Constant"
Position [65, 95, 95, 125]
ShowName off
Value "1"
}
Block {
BlockType Terminator
Name "t1"
Position [80, 20, 105, 50]
}
Block {
BlockType Outport
Name "Out1"
Position [135, 103, 165, 117]
ShowName off
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
Annotation {
Text "Power Supply"
Position [114, 45]
}
}
}
Block {
BlockType SubSystem
Name "Supply1"
Tag "PSATblock"
Description "OPF & CPF"
Ports [1, 1, 0, 0, 0]
Position [310, 40, 340, 70]
ShowName off
ShowPortLabels on
MaskType "Supply"
MaskDescription "This block defines a PV bus for bifurcation and"
" market studies:\n"
MaskPromptString "Power Rating [MVA]|Active Power [p.u.]|Max & Mi"
"n Power Supply [p.u. p.u.]|Cost = a + b*P + c*P^2 [$/h, $/MWh, $/(MW)^2 h]|C"
"ost = a + b*Q + c*Q^2 [$/h, $/MVArh, $/(MVAr)^2 h]|Allow Unit Commitment|Tie "
"Breaking Cost [$/h]|Number of Input Signals"
MaskStyleString "edit,edit,edit,edit,edit,checkbox,edit,popup(0|"
"1|2)"
MaskTunableValueString "on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||"
MaskEnableString "on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on"
MaskVariables "p2q=@1;p3q=@2;p4_5q=@3;p7_8_9q=@4;p10_11_12q=@5"
";p13q=@6;p14q=@7;in=@8;"
MaskInitialization "fm_inout;\n[x,y] = fm_draw('circle');\n[xs,ys] "
"= fm_draw('S');"
MaskDisplay "plot(x,y,xs,ys,[0 0],[0.7 -0.7])\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "100|0.0|[0.6 0.1]|[4 10.7 0.2]|[0.00 0.00 0.0"
"0]|off|0|1"
System {
Name "Supply1"
Location [381, 229, 648, 436]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [25, 25, 45, 45]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Constant"
Position [65, 95, 95, 125]
ShowName off
Value "1"
}
Block {
BlockType Terminator
Name "t1"
Position [80, 20, 105, 50]
}
Block {
BlockType Outport
Name "Out1"
Position [135, 103, 165, 117]
ShowName off
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Text "Power Supply"
Position [114, 45]
}
}
}
Block {
BlockType SubSystem
Name "Supply2"
Tag "PSATblock"
Description "OPF & CPF"
Ports [1, 1, 0, 0, 0]
Position [265, 250, 295, 280]
Orientation "down"
NamePlacement "alternate"
ShowName off
ShowPortLabels on
MaskType "Supply"
MaskDescription "This block defines a PV bus for bifurcation and"
" market studies:\n"
MaskPromptString "Power Rating [MVA]|Active Power [p.u.]|Max & Mi"
"n Power Supply [p.u. p.u.]|Cost = a + b*P + c*P^2 [$/h, $/MWh, $/(MW)^2 h]|C"
"ost = a + b*Q + c*Q^2 [$/h, $/MVArh, $/(MVAr)^2 h]|Allow Unit Commitment|Tie "
"Breaking Cost [$/h]|Number of Input Signals"
MaskStyleString "edit,edit,edit,edit,edit,checkbox,edit,popup(0|"
"1|2)"
MaskTunableValueString "on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||"
MaskEnableString "on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on"
MaskVariables "p2q=@1;p3q=@2;p4_5q=@3;p7_8_9q=@4;p10_11_12q=@5"
";p13q=@6;p14q=@7;in=@8;"
MaskInitialization "fm_inout;\n[x,y] = fm_draw('circle');\n[xs,ys] "
"= fm_draw('S');"
MaskDisplay "plot(x,y,xs,ys,[0 0],[0.7 -0.7])\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "100|0.0|[0.6 0.1]|[8 12.6 0.25]|[0.00 0.00 0."
"00]|off|0|1"
System {
Name "Supply2"
Location [381, 229, 648, 436]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [25, 25, 45, 45]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "Constant"
Position [65, 95, 95, 125]
ShowName off
Value "1"
}
Block {
BlockType Terminator
Name "t1"
Position [80, 20, 105, 50]
}
Block {
BlockType Outport
Name "Out1"
Position [135, 103, 165, 117]
ShowName off
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
Annotation {
Text "Power Supply"
Position [114, 45]
}
}
}
Block {
BlockType Reference
Name "YPDP1"
Tag "PSATblock"
Description "OPF & CPF"
Ports [0, 0, 0, 0, 0]
Position [423, 290, 508, 327]
ShowName off
SourceBlock "fm_lib/OPF & CPF/YPDP1"
SourceType "Ypdp"
pxq "[55 75 100 120 100]"
}
Line {
SrcBlock "Line"
SrcPort 1
DstBlock "Bus2"
DstPort 3
}
Line {
SrcBlock "Supply1"
SrcPort 1
DstBlock "Bus2"
DstPort 1
}
Line {
SrcBlock "RMPG"
SrcPort 1
DstBlock "Supply1"
DstPort 1
}
Line {
SrcBlock "Supply"
SrcPort 1
DstBlock "Bus1"
DstPort 1
}
Line {
SrcBlock "RMPG1"
SrcPort 1
DstBlock "Supply"
DstPort 1
}
Line {
SrcBlock "Slack"
SrcPort 1
DstBlock "Bus1"
DstPort 2
}
Line {
SrcBlock "Bus1"
SrcPort 1
DstBlock "Line"
DstPort 1
}
Line {
SrcBlock "PV"
SrcPort 1
DstBlock "Bus2"
DstPort 2
}
Line {
SrcBlock "Bus1"
SrcPort 2
Points [35, 0]
DstBlock "Line1"
DstPort 1
}
Line {
SrcBlock "Line1"
SrcPort 1
DstBlock "Bus3"
DstPort 1
}
Line {
SrcBlock "Bus3"
SrcPort 1
DstBlock "PQ"
DstPort 1
}
Line {
SrcBlock "PV1"
SrcPort 1
DstBlock "Bus3"
DstPort 2
}
Line {
SrcBlock "Supply2"
SrcPort 1
DstBlock "Bus3"
DstPort 3
}
Line {
SrcBlock "RMPG2"
SrcPort 1
DstBlock "Supply2"
DstPort 1
}
Line {
SrcBlock "Bus2"
SrcPort 1
Points [35, 0]
DstBlock "Line2"
DstPort 1
}
Line {
SrcBlock "Line2"
SrcPort 1
Points [0, 25; -90, 0]
DstBlock "Bus3"
DstPort 4
}
Line {
SrcBlock "Bus3"
SrcPort 2
DstBlock "Demand"
DstPort 1
}
Annotation {
Text "GENCO 1"
Position [93, 90]
}
Annotation {
Text "GENCO 2"
Position [255, 88]
}
Annotation {
Text "GENCO 3"
Position [329, 231]
}
Annotation {
Text "ESCO"
Position [338, 354]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -