📄 d_test_2n.mdl
字号:
Model {
Name "tp371099"
Version 3.0
SampleTimeColors off
ShowPortDataTypes off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Thu Jul 8 18:04:12 2004"
Creator "fmilano"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "Administrator"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Thu Jul 14 10:37:11 2005"
ModelVersionFormat "1.%<AutoIncrement:25>"
ConfigurationManager "None"
SimParamPage "Solver"
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect on
BufferReuse on
SimulationMode "normal"
Solver "ode45"
SolverMode "Auto"
StartTime "0.0"
StopTime "10.0"
MaxOrder 5
MaxStep "auto"
InitialStep "auto"
FixedStep "auto"
RelTol "1e-3"
AbsTol "auto"
OutputOption "RefineOutputTimes"
OutputTimes "[]"
Refine "1"
LoadExternalInput off
ExternalInput "[t, u]"
LoadInitialState off
InitialState "xInitial"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
Decimation "1"
AlgebraicLoopMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
Int32ToFloatConvMsg "warning"
UnnecessaryDatatypeConvMsg "none"
SignalLabelMismatchMsg "none"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
RTWInlineParameters off
BooleanDataType on
OptimizeBlockIOStorage on
ZeroCross on
RTWSystemTargetFile "grt.tlc"
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
RTWRetainRTWFile off
RTWOptions "-aEnforceIntegerDowncast=1 -aFoldNonRolledExpr=1 -a"
"InlineInvariantSignals=1 -aInlineParameters=0 -aLocalBlockOutputs=1 -aRollThr"
"eshold=5 -aZeroInternalMemoryAtStartup=1 -aZeroExternalMemoryAtStartup=1 -aIn"
"itFltsAndDblsToZero=1 -aGenerateReport=0 -aGenCodeOnly=0 -aRTWVerbose=1 -aInc"
"ludeHyperlinkInReport=0 -aLaunchReport=0 -aForceParamTrailComments=0 -aGenera"
"teComments=1 -aIgnoreCustomStorageClasses=1 -aIncHierarchyInIds=0 -aMaxRTWIdL"
"en=31 -aShowEliminatedStatements=0 -aPrefixModelToSubsysFcnNames=1 -aIncDataT"
"ypeInIds=0 -aInsertBlockDesc=0 -aSimulinkBlockComments=1 -aInlinedPrmAccess="
"\"Literals\" -aSuppressErrorStatus=0 -aModelReferenceCompliant=1 -aSupportNo"
"nInlinedSFcns=1 -aSupportContinuousTime=1 -aSupportComplex=1 -aSupportNonFini"
"te=1 -aSupportAbsoluteTime=1 -aTargetFcnLib=\"ansi_tfl_tmw.mat\" -aMultiInsta"
"nceERTCode=0 -aLogVarNameModifier=\"rt_\" -aIsPILTarget=0 -aCombineOutputUpda"
"teFcns=0 -aGenerateASAP2=0 -aGenerateSampleERTMain=0 -aGenerateFullHeader=1 -"
"aUtilityFuncGeneration=\"Auto\" -aIncludeFileDelimiter=\"Auto\" -aIncludeMdlT"
"erminateFcn=1 -aPurelyIntegerCode=0 -aERTCustomFileBanners=0 -aRTWCAPIStates="
"0 -aRTWCAPIParams=0 -aRTWCAPISignals=0 -aMatFileLogging=1 -aGenFloatMathFcnCa"
"lls=\"ANSI_C\" -aExtModeMexFile=\"ext_comm\" -aExtModeTransport=0 -aExtModeSt"
"aticAllocSize=1000000 -aExtModeTesting=0 -aExtModeStaticAlloc=0 -aExtMode=0 "
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "tp371099"
Location [26, 246, 606, 506]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Bus1"
Tag "PSATblock"
Description "Connection"
Ports [3, 2, 0, 0, 0]
Position [365, 111, 370, 179]
BackgroundColor "black"
ShowPortLabels on
MaskType "Bus"
MaskDescription "Bus block"
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"te [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "3|2|400|[1.00 0.00]|1|1"
System {
Name "Bus1"
Location [336, 348, 727, 705]
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 Inport
Name "in_2"
Position [25, 75, 45, 95]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "in_3"
Position [25, 125, 45, 145]
Port "3"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "g1"
Position [105, 20, 130, 50]
Value "1"
}
Block {
BlockType Constant
Name "g2"
Position [130, 70, 155, 100]
Value "1"
}
Block {
BlockType Terminator
Name "t1"
Position [65, 20, 90, 50]
}
Block {
BlockType Terminator
Name "t2"
Position [65, 70, 90, 100]
}
Block {
BlockType Terminator
Name "t3"
Position [80, 120, 105, 150]
}
Block {
BlockType Outport
Name "out_1"
Position [155, 25, 175, 45]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_2"
Position [185, 75, 205, 95]
Port "2"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "g1"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
Line {
SrcBlock "in_2"
SrcPort 1
DstBlock "t2"
DstPort 1
}
Line {
SrcBlock "in_3"
SrcPort 1
DstBlock "t3"
DstPort 1
}
Line {
SrcBlock "g2"
SrcPort 1
DstBlock "out_2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Bus2"
Tag "PSATblock"
Description "Connection"
Ports [2, 3, 0, 0, 0]
Position [145, 57, 150, 163]
BackgroundColor "black"
ShowPortLabels on
MaskType "Bus"
MaskDescription "Bus block"
MaskPromptString "Number of inputs:|Number of outputs:|Voltage Ra"
"te [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "2|3|400|[1.00 0.00]|1|1"
System {
Name "Bus2"
Location [336, 348, 727, 705]
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 Inport
Name "in_2"
Position [25, 75, 45, 95]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Constant
Name "g1"
Position [105, 20, 130, 50]
Value "1"
}
Block {
BlockType Constant
Name "g2"
Position [130, 70, 155, 100]
Value "1"
}
Block {
BlockType Constant
Name "g3"
Position [130, 120, 155, 150]
Value "1"
}
Block {
BlockType Terminator
Name "t1"
Position [65, 20, 90, 50]
}
Block {
BlockType Terminator
Name "t2"
Position [65, 70, 90, 100]
}
Block {
BlockType Outport
Name "out_1"
Position [155, 25, 175, 45]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_2"
Position [185, 75, 205, 95]
Port "2"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_3"
Position [185, 125, 205, 145]
Port "3"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "g1"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "t1"
DstPort 1
}
Line {
SrcBlock "in_2"
SrcPort 1
DstBlock "t2"
DstPort 1
}
Line {
SrcBlock "g2"
SrcPort 1
DstBlock "out_2"
DstPort 1
}
Line {
SrcBlock "g3"
SrcPort 1
DstBlock "out_3"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Demand"
Tag "PSATblock"
Description "OPF & CPF"
Ports [1, 0, 0, 0, 0]
Position [395, 148, 425, 182]
ShowName off
ShowPortLabels on
MaskType "Demand"
MaskDescription "This block defines a constant power load for bi"
"furcation and market studies."
MaskPromptString "Power Base [MVA]|Active Power [p.u.]|Reactive P"
"ower [p.u.]|Max & Min Power Demand [p.u. p.u.]|Cost = a + b*P + c*P^2 [$/h, "
"$/MWh, $/(MWh)^2]|Cost = a + b*Q + c*Q^2 [$/h, $/MVArh, $/(MVArh)^2]|Allow Un"
"it Commitment|Tie Breaking Cost [$/h]|Number of Output Signals"
MaskStyleString "edit,edit,edit,edit,edit,edit,checkbox,edit,pop"
"up(0|1)"
MaskTunableValueString "on,on,on,on,on,on,on,on,on"
MaskCallbackString "||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on"
MaskVariables "p2q=@1;p3q=@2;p4q=@3;p5_6q=@4;p8_9_10q=@5;p11_1"
"2_13q=@6;p14q=@7;p15q=@8;out=@9;"
MaskInitialization "fm_inout;\n[xs,ys]=fm_draw('S');"
MaskDisplay "plot([ 1.0000 -0.5 -0.5 1],[ 0 0.866 "
" -0.866 0])\nplot(0.6*xs,0.6*ys,[0 0],[0.4 -0.4])"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "100|0.80|0.60|[1.50 0.5]|[0.00 8.5 0.00]|[0."
"00 0.00 0.00]|off|0|0"
System {
Name "Demand"
Location [354, 336, 584, 523]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [120, 118, 150, 132]
Orientation "left"
ShowName off
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -