ImageVerifierCode 换一换
格式:PPT , 页数:30 ,大小:289.50KB ,
资源ID:378981      下载积分:2000 积分
快捷下载
登录下载
邮箱/手机:
温馨提示:
如需开发票,请勿充值!快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝扫码支付 微信扫码支付   
注意:如需开发票,请勿充值!
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【http://www.mydoc123.com/d-378981.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(Biologically Inspired Computing- Optimisation.ppt)为本站会员(livefirmly316)主动上传,麦多课文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知麦多课文库(发送邮件至master@mydoc123.com或直接QQ联系客服),我们立即给予删除!

Biologically Inspired Computing- Optimisation.ppt

1、Biologically Inspired Computing: Optimisation,This is mandatory additional material for Biologically Inspired Computing Contents: Optimisation; hard problems and easy problems; computational complexity; trial and error search;,This Material,A formal statement about optimisation, and explanation of t

2、he close relationship with classification.About optimisation problems: formal notions for hard problems and easy ones.Formal notions about optimisation algorithms: exact algorithms and approximate algorithms.The status of EAs (and other bio-inspired optimisation algorithms) in this context.The class

3、ical computing alternatives to EAs,What to take from this material:,A clear understanding of what an optimisation problem is, and an appreciation of how classification problems are also optimisation problems What it means, technically, for an optimisation problem to be hard or easy What it means, te

4、chnically, for an optimisation algorithm to be exact or approximate What kinds of algorithms, technically speaking, EAs are. An appreciation of non-EA techniques for optimisation A basic understanding of when an EA might be applicable to a problem, and when it might not.,Search and Optimisation,Imag

5、ine we have 4 items as follows: (item 1: 20kg; item2: 75kg; item 3: 60kg, item4: 35kg) Suppose we want to find the subset of items with highest total weight,Here is a standard treatment of this as an optimisation problem. The set S of all possible solutions is indicated above, The fitness of a solut

6、ion s is the function total_weight(s) We can solve the problem (I.e. find the fittest s) by working out the fitness of each one in turn. But any thoughts? I mean, how hard is this?,0000 0100 1000 1100 0001 0101 1001 1101 0010 0110 1010 1110 0011 0111 1011 1111,Of course, this problem is much easier

7、to solve than that. We already know that 1111 has to be the best solution. We can prove, mathematically, that any problem of the form “find heaviest subset of a set of k things”, is solved by the “all of them” subset, as long as each thing has positive weight. In general, some problems are easy in t

8、his sense, in that there is an easily provable way to construct an optimal solution. Sometimes it is less obvious than in this case though.,Search and Optimisation,In general, optimisation means that you are trying to find the best solution you can (usually in a short time) to a given problem.,S,s1,

9、s2,s3,We always have a set S of all possiblesolutions,In realistic problems, S is too large to search one by one. So we need to find some other way to search through S.One way is random search. E.g. in a 500-iteration random search, we might randomly choose something in S and evaluate its fitness, r

10、epeating that 500 times.,The Fitness function,Every candidate solution s in the set of all solutions S can be given a score, or a “fitness”, by a so-called fitness function. We usually write f(s) to indicate the fitness of solution s. Obviously, we want to find the s in S which has the best score.Ex

11、amplestimetabling: f could be no. of clashes.wing design: f could be aerodynamic dragdelivery schedule f will be total distance travelled,An Aside about Classification,In a classification problem, we have a set of things to classify, and a number of possible classes. To classify s we use an algorith

12、m called a classifier. So, classifier(s) gives us a class label for s. We can assign a fitness value to a classifier this can be simply the percentage of examples it gets right. In finding a good classifier, we are solving the following optimisation problem: Search a space of classifiers, and find t

13、he one that gives the best accuracy. E.g. the classifier might be a neural network, and we may use an EA to evolve the NN with the best connection weights.,Searching through S,When S is small (e.g. 10, 100, or only 1,000,000 or so items), we can simply do so-called exhaustive search.Exhaustive searc

14、h: Generate every possible solution, work out its fitness, and hence discover which is best (or which set share the best fitness)This is also called Enumeration,However ,In all interesting/important cases, S is much much much too large for exhaustive search (ever). There are two kinds of too-big pro

15、blem:easy (or tractable, or in P)hard (or intractable, or not known to be in P) There are rigorous mathematical definitions of the two types thats what the P is about it stands for the class of problems that can be solved by a deterministic polynomial Turing machine. Thats outside the scope of this

16、module. But, whats important for you to know is that almost all important problems are technically hard.,About Optimisation Problems,To solve a problem means to find an optimal solution. I.e. to deliver an element of s whose fitness is guaranteed to be the best in S.An Exact algorithm is one which c

17、an do this (i.e. solve a problem, guaranteeing to find the best). Is 500-iteration random search an Exact algorithm?,Problem complexity,Problem complexity, in the context of computer science, is all about characterising how hard it is to solve a given problem. Statements are made in terms of functio

18、ns of n, which is meant to be some indication of the size of the problem. E.g.:Correctly sort a set of n numbers Can be done in around n log n stepsFind the closest pair out of n vectors Can be done in O(n2) stepsFind best design for an n-structural-element bridge Can be done in O(10n) steps ,Polyno

19、mial and Exponential Complexity,Given some problem Q, with size n, imagine that A is the fastest algorithm known for solving that problem exactly. The complexity of problem Q is the time it takes A to solve it, as a function of n. There are two key kinds of complexity:Polynomial: the dominant term i

20、n the expression is polynomial in n. E.g. n34, n.log.n, sin(n2.2), etc Exponential: the dominant term is exponential in n. E.g. 1.1n, nn+2 , 2n, ,Polynomial and Exponential Complexity,n,2,3,4,5,6,10,20,50,100,Problems with exponential complexity take too long to solve at large n Note how an exponent

21、ial always eventually catches up, and then rapidly overtakes, a polynomial.,Hard and Easy Problems,Polynomial Complexity: these are called tractable, and easy problems. Fast algorithms are known which provide the best solution. Pairwise alignment is one such problem. Sorting is another.Exponential C

22、omplexity: these are called intractable, and hard problems. The fastest known algorithm which exactly solves it is usually not significantly faster than exhaustive search.,polynomial,exponential,Increasing n,An exponential curve always takes over a polynomial one.,E.g. time needed on fastest compute

23、rs to search all protein structures with 500 amino acids: trillions of times longer than the current age of the universe.,Example: Minimum Spanning Tree Problems,This is a case of an easy problem, but not as obvious as our first easy example.Find the cheapest tree which connects all (i.e. spans) the

24、 nodes of a given graph.Applications: Comms network backbone design; Electricity distribution networks, water distribution networks, etc ,A graph, showing the costs of building each pair-to-pair link,7,12,4,9,6,8,5,14,6,3,What is the minimal-cost spanning tree? (Spanning Tree = visits all nodes, has

25、 no cycles;cost is sum of costs of edges used in the tree),Heres one tree:,7,12,14,3,With cost = 36,Heres a cheaper one,7,4,6,3,With cost 20 ,The problem find the minimal cost spanning tree (aka the MST) is easy in the technical sense.,7,12,4,9,6,8,5,14,6,3,Several fast algorithms are known which so

26、lve this in polynomial time; Here is the classic one: Prims algorithm:Start with empty tree (no edges)Repeat: choose cheapest edge which feasibly extends the tree Until: n 1 edges have been chosen.,Prims step 1:,7,12,4,9,6,8,5,14,6,3,Prims step 2:,7,12,4,9,6,8,5,14,6,3,Prims step 3:,7,12,4,9,6,8,5,1

27、4,6,3,Prims step 4:,7,12,4,9,6,8,5,14,6,3,Prims step 4:,4,5,6,3,Guaranteed to have minimal possible cost for this graph; i.e. this is the (or a) MST in this case.,But change the problem slightly: We may want the degree constrained MST (I.e. the MST, but where no node in the tree has a degree above 4

28、) Or we may want the optimal communication spanning tree which is the MST, but constrained among those trees which satisfy certain bandwith requirements between certain pairs of nodes There are many constrained/different forms of the MST. These are essentially problems where we seek the cheapest tre

29、e structure, but where many, or even most, trees are not actually feasible solutions. Heres the thing: These constrained versions are almost always technically hard. and Real-world MST-style problems are invariably of this kind.,Approximate Algorithms,For hard optimisation problems (again, which tur

30、ns out to be nearly all the important ones), we needApproximate algorithms . These:deliver solutions in reasonable timetry to find pretty good (near optimal) solutions, and often get optimal ones.do not (cannot) guarantee that they havedelivered the optimal solution.,Typical Performance of Approxima

31、te Methods,Evolutionary Algorithms turn out to be the most successful and generally useful approximate algorithms around. They often take a Long time though its worth getting used to the following curve which tends to apply across the board.,Time,Quality,Simple method gets good solutions fast,Sophis

32、ticated method, slow, but better solutions eventually,So ,Most real world problems that we need to solve are hard problems We cant expect truly optimal solutions for these, so we use approximate algorithms and do as well as we can. EAs (and other BIC methods we will see) are very successful approximate algorithms,

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1