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

📄 checkconstraint.m

📁 UMDA. a kind of estimation of distribution algorithm , which is the improvement of genetic algorithm
💻 M
字号:
function[Overlappings,Pos] =  CheckConstraint(Pos,pos,vector)% Given the configuration of residues, calculates the number of % Overlappings  that the  addition of move mov at position pos provokesnglobal InitConf;Overlappings = 0;if(pos < 3) return;end [Pos] = PutMoveAtPos(Pos,pos,vector(pos));     for j=1:pos-2,   % Check for Overlappings and Collissions in all the    molecules except the previous one    if(Pos(pos,1)==Pos(j,1) & Pos(pos,2)==Pos(j,2))      Overlappings = Overlappings + 1;    end   end  % Last version 10/09/2005. Roberto Santana (rsantana@si.ehu.es) 

⌨️ 快捷键说明

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