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

📄 cnet_simu.mdl

📁 其中提到遺傳學的程式碼與應用提供給次淚相向的研究者參考下載
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      SrcPort		      1
	      DstBlock		      "Delays 1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Layer 2"
	  Ports			  [1, 1]
	  Position		  [190, 80, 250, 100]
	  BackgroundColor	  "lightBlue"
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "Layer 2"
	    Location		    [480, 85, 980, 386]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "automatic"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    AutoZoom		    on
	    Block {
	      BlockType		      Inport
	      Name		      "a{1} "
	      Position		      [40, 40, 60, 60]
	      BackgroundColor	      "magenta"
	      Port		      "1"
	      PortDimensions	      "8"
	      SampleTime	      "0.05"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Delays 1"
	      Ports		      [1, 1]
	      Position		      [100, 40, 120, 60]
	      BackgroundColor	      "lightBlue"
	      ShowPortLabels	      on
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      MaskDisplay	      "disp('TDL')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      System {
		Name			"Delays 1"
		Location		[480, 85, 980, 386]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"automatic"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		AutoZoom		on
		Block {
		  BlockType		  Inport
		  Name			  "p{2}"
		  Position		  [60, 40, 80, 60]
		  Orientation		  "down"
		  BackgroundColor	  "magenta"
		  NamePlacement		  "alternate"
		  Port			  "1"
		  PortDimensions	  "8"
		  SampleTime		  "0.05"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Mux
		  Name			  "mux"
		  Ports			  [1, 1]
		  Position		  [200, 60, 240, 80]
		  BackgroundColor	  "lightBlue"
		  Inputs		  "1"
		  DisplayOption		  "none"
		}
		Block {
		  BlockType		  Outport
		  Name			  "pd{2,1}"
		  Position		  [300, 60, 320, 80]
		  BackgroundColor	  "magenta"
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  InitialOutput		  "[]"
		}
		Line {
		  SrcBlock		  "mux"
		  SrcPort		  1
		  DstBlock		  "pd{2,1}"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "p{2}"
		  SrcPort		  1
		  DstBlock		  "mux"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "LW{2,1}"
	      Ports		      [1, 1]
	      Position		      [160, 40, 200, 60]
	      BackgroundColor	      "lightBlue"
	      ShowPortLabels	      on
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      MaskDisplay	      "disp('weight')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      System {
		Name			"LW{2,1}"
		Location		[480, 85, 980, 386]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"automatic"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		AutoZoom		on
		Block {
		  BlockType		  Inport
		  Name			  "ad{2,1}"
		  Position		  [40, 60, 60, 80]
		  BackgroundColor	  "magenta"
		  Port			  "1"
		  PortDimensions	  "8"
		  SampleTime		  "0.05"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Constant
		  Name			  "IW{2,1}(1,:)'"
		  Position		  [140, 40, 180, 60]
		  BackgroundColor	  "lightBlue"
		  Value			  "[-20.605041766676038;14.31089380386"
"8263;-0.03536340129346343;-14.949639897386318;-34.213841428773783;-24.6918799"
"15049938;-30.255930361196889;-22.456779061306626]"
		  VectorParams1D	  on
		  MaskDisplay		  "disp('weights')"
		  MaskIconFrame		  on
		  MaskIconOpaque	  on
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux"
		  Ports			  [1, 1]
		  Position		  [340, 60, 380, 80]
		  Inputs		  "1"
		  DisplayOption		  "none"
		}
		Block {
		  BlockType		  Reference
		  Name			  "dotprod1"
		  Ports			  [2, 1]
		  Position		  [240, 40, 260, 80]
		  BackgroundColor	  "lightBlue"
		  SourceBlock		  "neural/Weight Functions/dotprod"
		  SourceType		  "Unknown"
		}
		Block {
		  BlockType		  Outport
		  Name			  "lz{2,1}"
		  Position		  [420, 60, 440, 80]
		  BackgroundColor	  "magenta"
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  InitialOutput		  "[]"
		}
		Line {
		  SrcBlock		  "Mux"
		  SrcPort		  1
		  DstBlock		  "lz{2,1}"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dotprod1"
		  SrcPort		  1
		  DstBlock		  "Mux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "ad{2,1}"
		  SrcPort		  1
		  DstBlock		  "dotprod1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "IW{2,1}(1,:)'"
		  SrcPort		  1
		  DstBlock		  "dotprod1"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "b{2}"
	      Position		      [160, 80, 200, 100]
	      BackgroundColor	      "lightBlue"
	      Value		      "-21.987992521764312"
	      VectorParams1D	      on
	      MaskDisplay	      "disp('bias')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "netsum"
	      Ports		      [2, 1]
	      Position		      [240, 60, 260, 80]
	      BackgroundColor	      "lightBlue"
	      IconShape		      "rectangular"
	      Inputs		      "2"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "purelin"
	      Ports		      [1, 1]
	      Position		      [300, 60, 320, 80]
	      BackgroundColor	      "lightBlue"
	      SourceBlock	      "neural/Transfer Functions/purelin"
	      SourceType	      "Unknown"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "a{2}"
	      Position		      [360, 60, 380, 80]
	      BackgroundColor	      "magenta"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "purelin"
	      SrcPort		      1
	      DstBlock		      "a{2}"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "netsum"
	      SrcPort		      1
	      DstBlock		      "purelin"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "b{2}"
	      SrcPort		      1
	      DstBlock		      "netsum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "LW{2,1}"
	      SrcPort		      1
	      DstBlock		      "netsum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Delays 1"
	      SrcPort		      1
	      DstBlock		      "LW{2,1}"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "a{1} "
	      SrcPort		      1
	      DstBlock		      "Delays 1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Goto
	  Name			  "a{1}"
	  Position		  [380, 40, 400, 60]
	  GotoTag		  "feedback1"
	  TagVisibility		  "local"
	  MaskDisplay		  "plot(cos(0:.1:2*pi),sin(0:.1:2*pi))"
	  MaskIconFrame		  off
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  Outport
	  Name			  "y{1}"
	  Position		  [380, 120, 400, 140]
	  BackgroundColor	  "magenta"
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Layer 2"
	  SrcPort		  1
	  DstBlock		  "y{1}"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " a{1} "
	  SrcPort		  1
	  DstBlock		  "Layer 2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Layer 1"
	  SrcPort		  1
	  DstBlock		  "a{1}"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "p{1}"
	  SrcPort		  1
	  DstBlock		  "Layer 1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "y{1}"
      Ports		      [1]
      Position		      [395, 20, 415, 40]
      Floating		      off
      Location		      [6, 58, 275, 227]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "5"
      YMin		      "0"
      YMax		      "100"
      SaveToWorkspace	      on
      SaveName		      "Y"
      DataFormat	      "Array"
      LimitDataPoints	      on
      MaxDataPoints	      "50000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "y{1}1"
      Ports		      [1]
      Position		      [395, 70, 415, 90]
      Floating		      off
      Location		      [8, 284, 275, 453]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "5"
      YMin		      "-50"
      YMax		      "150"
      SaveToWorkspace	      on
      SaveName		      "Y1"
      DataFormat	      "Array"
      LimitDataPoints	      on
      MaxDataPoints	      "50000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "cnet Neural Network"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      Points		      [-10, 0]
      Branch {
	Points			[0, 45; -80, 0]
	DstBlock		"Mux"
	DstPort			1
      }
      Branch {
	Points			[0, -20]
	DstBlock		"Gain1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      Points		      [-25, 0; 0, 20]
      Branch {
	Points			[0, 20; -80, 0; 0, 35]
	DstBlock		"Mux"
	DstPort			2
      }
      Branch {
	DstBlock		"Gain2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Zero-Order\nHold"
      SrcPort		      1
      Points		      [0, 0]
      DstBlock		      "NN plant\nSubsystem"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      DstBlock		      "Gain"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      3
      Points		      [0, 25]
      DstBlock		      "Terminator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "cnet Neural Network"
      SrcPort		      1
      DstBlock		      "Zero-Order\nHold"
      DstPort		      1
    }
    Line {
      SrcBlock		      "NN plant\nSubsystem"
      SrcPort		      1
      Points		      [25, 0; 0, -75]
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      DstBlock		      "y{1}"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain2"
      SrcPort		      1
      DstBlock		      "y{1}1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      3
    }
    Annotation {
      Position		      [112, 53]
      Text		      "cnet_simu.mdl\nPenChen Chou, July 29,2001\nUse "
"with appcs2.m file.\nSimulation is 4 sec. but the \nsample time must be 0.05 "
"sec.\nr_deg can be changed within +-180degrees.\nInit_P is the initial angle "
"in degrees,\nInit_V is the initial velocity in deg./s."
    }
    Annotation {
      Position		      [128, 188]
      Text		      "Test values: r_deg=90; Init_P=10; Init_V=0;"
    }
  }
}

⌨️ 快捷键说明

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