⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpc_nonlinear.mdl

📁 预测控制的matlab仿真试验
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      BlockType		      Scope
      Floating		      off
      ModelBased	      off
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      Step
      Time		      "1"
      Before		      "0"
      After		      "1"
      SampleTime	      "-1"
      VectorParams1D	      on
      ZeroCross		      on
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      ToWorkspace
      VariableName	      "simulink_output"
      MaxDataPoints	      "1000"
      Decimation	      "1"
      SampleTime	      "0"
      FixptAsFi		      off
    }
    Block {
      BlockType		      TransferFcn
      Numerator		      "[1]"
      Denominator	      "[1 2 1]"
      AbsoluteTolerance	      "auto"
      Realization	      "auto"
    }
  }
  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		    "mpc_nonlinear"
    Location		    [117, 120, 807, 551]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 3]
      Position		      [60, 13, 65, 257]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "3"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [170, 35, 275, 75]
      ForegroundColor	      "blue"
      Expr		      "u(1)+.2*u(1)^3"
    }
    Block {
      BlockType		      Scope
      Name		      "Inputs"
      Ports		      [1]
      Position		      [135, 320, 165, 350]
      Location		      [716, 346, 986, 550]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "8"
      YMin		      "-1"
      YMax		      "2"
      DataFormat	      "Structure"
    }
    Block {
      BlockType		      Reference
      Name		      "MPC Controller"
      Ports		      [2, 1]
      Position		      [200, 244, 300, 326]
      Orientation	      "left"
      SourceBlock	      "mpclib/MPC Controller"
      SourceType	      "MPC"
      ShowPortLabels	      on
      mpcobj		      "MPCobj"
      n_mv		      "0"
      x0		      "[]"
      ref_from_ws	      off
      ref_signal_name	      "[]"
      ref_preview	      on
      md_from_ws	      off
      md_signal_name	      "[]"
      md_preview	      on
      from_project	      off
      md_inport		      off
      project_file	      "MPCtask.mat"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [495, 82, 500, 118]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [2, 1]
      Position		      [490, 285, 495, 325]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [2, 1]
      Position		      [390, 330, 395, 370]
      NamePlacement	      "alternate"
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Scope
      Name		      "Outputs"
      Ports		      [1]
      Position		      [425, 335, 455, 365]
      Location		      [716, 87, 982, 291]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "8"
      YMin		      "-0.5"
      YMax		      "1.5"
      DataFormat	      "Structure"
    }
    Block {
      BlockType		      Step
      Name		      "Step1"
      Position		      [580, 350, 610, 380]
      Orientation	      "left"
      NamePlacement	      "alternate"
      Time		      "0"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Step
      Name		      "Step2"
      Position		      [580, 280, 610, 310]
      Orientation	      "left"
      NamePlacement	      "alternate"
      Time		      "2"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [3, 1]
      Position		      [345, 119, 375, 151]
      ForegroundColor	      "blue"
      Inputs		      "+++"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [575, 85, 635, 115]
      VariableName	      "y"
      MaxDataPoints	      "Inf"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace1"
      Position		      [125, 380, 185, 410]
      VariableName	      "u"
      MaxDataPoints	      "Inf"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Transfer Fcn"
      Position		      [90, 37, 145, 73]
      ForegroundColor	      "blue"
      Denominator	      "[1 1]"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Transfer Fcn1"
      Position		      [405, 117, 460, 153]
      ForegroundColor	      "blue"
      Numerator		      "[1 2]"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Transfer Fcn2"
      Position		      [110, 197, 165, 233]
      ForegroundColor	      "blue"
      Numerator		      "[3]"
      Denominator	      "[1 1 1]"
    }
    Line {
      SrcBlock		      "MPC Controller"
      SrcPort		      1
      Points		      [-95, 0]
      Branch {
	Points			[-70, 0; 0, -150]
	DstBlock		"Demux"
	DstPort			1
      }
      Branch {
	Points			[0, 50]
	Branch {
	  Points		  [0, 60]
	  DstBlock		  "To Workspace1"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "Inputs"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [40, 0; 0, 0]
      Branch {
	DstBlock		"To Workspace"
	DstPort			1
      }
      Branch {
	Points			[0, 165; -180, 0]
	Branch {
	  Points		  [0, 75]
	  DstBlock		  "Mux2"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "MPC Controller"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      3
      DstBlock		      "Transfer Fcn2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Transfer Fcn2"
      SrcPort		      1
      Points		      [80, 0; 0, -70]
      DstBlock		      "Sum"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Transfer Fcn"
      SrcPort		      1
      DstBlock		      "Fcn"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn"
      SrcPort		      1
      Points		      [40, 0]
      Branch {
	Points			[0, 70]
	DstBlock		"Sum"
	DstPort			1
      }
      Branch {
	Points			[160, 0]
	DstBlock		"Mux"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Transfer Fcn1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      DstBlock		      "Transfer Fcn"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Transfer Fcn1"
      SrcPort		      1
      Points		      [15, 0]
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Step1"
      SrcPort		      1
      Points		      [-65, 0]
      DstBlock		      "Mux1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      Points		      [0, 0; -145, 0]
      Branch {
	Points			[0, 55]
	DstBlock		"Mux2"
	DstPort			2
      }
      Branch {
	DstBlock		"MPC Controller"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Step2"
      SrcPort		      1
      DstBlock		      "Mux1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux2"
      SrcPort		      1
      DstBlock		      "Outputs"
      DstPort		      1
    }
    Annotation {
      Name		      "u(t)"
      Position		      [168, 276]
      FontName		      "Arial"
      FontSize		      14
    }
    Annotation {
      Name		      "y(t)"
      Position		      [338, 246]
      FontName		      "Arial"
      FontSize		      14
    }
    Annotation {
      Name		      "r(t)"
      Position		      [459, 294]
      FontName		      "Arial"
      FontSize		      14
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -