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

📄 gpe.htm

📁 遗传算法GPE_release_v1.0.tar
💻 HTM
📖 第 1 页 / 共 2 页
字号:
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if( m_ProblemSpaceClasses == null ) {</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ProblemSpaceClasses = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
				TypeSearchUtility.SearchCurrentDirectory.FirstCompatibleType;</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">&nbsp;</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return m_ProblemSpaceClasses;</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">&nbsp;&nbsp;&nbsp; }</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">&nbsp;&nbsp;&nbsp; 
				set {</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if( value == null ) {</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw new ArgumentNullException( &quot;value&quot;, &quot;The value 
				passed to</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GPEngine.ProblemSpaceClasses_set was null.&quot; );</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">&nbsp;</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if( Running ) {</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw new InvalidOperationException( &quot;The Problem 
				Space classes</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; used by the GPEngine cannot be set while it is 
				Running.&quot; );</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_ProblemSpaceClasses = value;</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if( Options.OutputDirectory.Length == 0 ) {</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options.OutputDirectory = 
				Environment.CurrentDirectory + </span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Path.DirectorySeparatorChar +</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
				ProblemSpaceClasses.BaseClassVerifier.BaseClassType.Name;</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">&nbsp;</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //reset state</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_RunInterrupted = false;</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CurrentGeneration = 0;</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">&nbsp;&nbsp;&nbsp; }</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">}</span></p>
				<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				private CompatibilityVerifier m_ProblemSpaceClasses;</span></td>
			</tr>
		</table>
	</div>
	<p class="MsoNormal"><span style="font-family: Arial">The Running method 
	determines whether or not the GPEngine is running.&nbsp; If the GPEngine is running, 
	problem space classes cannot be changed.&nbsp; The GPEngine is running when 
    it is creating or testing Populations.&nbsp; The GUI displays information 
    whether or not the GPEngine is currently running.</span></p>
	<div align="center">
		<table border="0" width="90%" id="table3">
			<tr>
				<td>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">public 
				bool Running {</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">&nbsp;&nbsp;&nbsp; 
				get {</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return m_Running;</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">&nbsp;&nbsp;&nbsp; }</span></p>
				<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">}</span></p>
				<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
				<span style="font-size: 10.0pt; font-family: Courier New">
				private bool m_Running;</span></td>
			</tr>
		</table>
	</div>
	<p class="MsoNormal"><span style="font-family: Arial">The interrupted method 
    determines if the engine status is 慽nterrupted

⌨️ 快捷键说明

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