Model { Name "ch17ex1" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines on ShowLineWidths off ShowPortDataTypes off StartTime "0.0" StopTime "Tstop" SolverMode "SingleTasking" Solver "ode45" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Matrix" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" IntegerOverflowMsg "none" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" ConsistencyChecking "off" ZeroCross on SimulationMode "normal" BlockDataTips on BlockParametersDataTip on BlockAttributesDataTip off BlockPortWidthsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off OptimizeBlockIOStorage on BufferReuse on BooleanDataType off RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" 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 off Created "Tue Aug 18 18:30:26 1998" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Fri Jun 22 11:54:05 2001" ModelVersionFormat "1.%" ConfigurationManager "none" 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 "ch17ex1" Location [36, 120, 774, 700] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType Reference Name "MPC Controller (y,r)" Ports [2, 1, 0, 0, 0] Position [245, 451, 325, 544] Orientation "left" SourceBlock "mpclib/MPC Controller (y,r)" SourceType "MPC-SIMULINK link" model "model" p "p" moves "moves" limits "limits" weights "weights" MPCadd "MPCadd" } Block { BlockType Scope Name "MV" Ports [1, 0, 0, 0, 0] Position [65, 435, 95, 465] Orientation "left" ForegroundColor "red" Floating off Location [36, 192, 299, 419] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "30" YMin "0" YMax "1.5" SaveToWorkspace off SaveName "ScopeData" DataFormat "Structure" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "Outputs/References" Ports [1, 0, 0, 0, 0] Position [560, 350, 590, 380] Floating off Location [308, 192, 571, 419] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "30" YMin "0" YMax "1.5" SaveToWorkspace off SaveName "ScopeData" DataFormat "Structure" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Step Name "Step" Position [455, 490, 485, 520] Orientation "left" Time "1" Before "0" After "1" SampleTime "0" } Block { BlockType ToWorkspace Name "To Workspace" Position [520, 85, 580, 115] VariableName "y" Buffer "inf" Decimation "1" SampleTime "-1" SaveFormat "Matrix" } Block { BlockType ToWorkspace Name "To Workspace1" Position [80, 495, 140, 525] Orientation "left" ForegroundColor "red" VariableName "u" Buffer "inf" Decimation "1" SampleTime "-1" SaveFormat "Matrix" } Block { BlockType TransferFcn Name "Transfer Fcn" Position [255, 68, 335, 112] Numerator "[-54.68 4.05]" Denominator "[ 675 63.5 1 ]" } Line { SrcBlock "MPC Controller (y,r)" SrcPort 1 Points [-25, 0; 0, -80; -50, 0] Branch { Points [0, 30] Branch { DstBlock "MV" DstPort 1 } Branch { Points [0, 60] DstBlock "To Workspace1" DstPort 1 } } Branch { Points [-140, 0; 0, -370; 215, 0] DstBlock "Transfer Fcn" DstPort 1 } } Line { SrcBlock "Transfer Fcn" SrcPort 1 Points [25, 0; 0, 10; 35, 0] Branch { DstBlock "To Workspace" DstPort 1 } Branch { Points [20, 0; 0, 260] Branch { Points [125, 0] DstBlock "Outputs/References" DstPort 1 } Branch { Points [0, 35; -80, 0] DstBlock "MPC Controller (y,r)" DstPort 1 } } } Line { SrcBlock "Step" SrcPort 1 Points [-110, 0] DstBlock "MPC Controller (y,r)" DstPort 2 } Annotation { Position [203, 36] Text "u(t)" FontName "Arial" FontSize 14 } Annotation { Position [418, 86] Text "y(t)" FontName "Arial" FontSize 14 } } }