This is an Multi-objectives Evolutionary Algorithms (MOEAs) based on NSGA-II. The final purpose is to solve the open source software release time and management problem
NSGA is a popular non-domination based genetic algorithm for multi-objective optimization.
Original NSGA-II code can be found in
https://www.mathworks.com/matlabcentral/fileexchange/10429-nsga-ii--a-multi-objective-optimization-algorithm
The function is nsga_2(pop,gen). The input arguments for the function are population size and number of generations.
For customization purposes the user is free to modify the objective function (function of several decision variables) by modifying an m file (evaluate_objective.m).
Traditionally the optimized software release time problem reduces the multi-decision space into a single-objective optimization problem. Although these formulations simplify the problem and reduce the complexity involved, the solutions do not take care of every objective involved.
We use non-domination based genetic algorithm to solve the open source software release time problem for two reason:
1. To maximize reliability and to minimize cost should be done at the same time.
2. Evolutionary algorithm guarantee the quality of solutions.
Instead of finding a single optimal solution for our problem, we use genetic algorithm to find a set of optimal solutions. These solutions, as we know, are Pareto-optimal solutions. In a single set of a Pareto-optimal solution for a multi-objectives problem, every solution must be better than the other in the last one objective.
The objective we consider are
1. Reliability 2. Cost 3. Test resource consumed
How to run:
>nsga_2(pop,gen)
the result should be in D:\MATLAB\NSGA_II
Trace record:
in evalute_objective.m
f = evalute_objective(x,M,V)
x: decision variable; M:number of obj. function; V: number of decision variable
this algorithm aim to minimize the objective function, so if we want to maximize it, just multiply (-1)
in genetic_operator.m
for i in range(N) % N = population in each generation
90% probability: Crossover
1. Select 2 parents
2. Crossover for every decision variable V
3. Calculate the objective function
10% probability: Mutation
based on polynomial mutation
in hypervolume.m
measure the size of solution, which is covered by Pareto Front
in initialize_variable.m
initialize objective function
for i in range(N)
j(i, V+1:K) = evaluate_objective(f(i:),M,V,range)
in nsga2.m
nsga_2(population, generation)
%pop = how mane individual in a generation
%gen = how many generation we want to crossover
[M,V,min,max] = objective_description_functino()
chromosome = initialize_variable(pop,M,V,min,max)
%randomly generate the first generation, put the result into f[N,K] (K = M+V)
chromosome = non-domination-sort
for i in range(gen)
1. Parent_chromosome
2. Offspring_chromosome
%end of generation
Plot
没有合适的资源?快使用搜索试试~ 我知道了~
nsga2算法matlab代码-NSGA-II:遗传算法的多目标优化算法
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共19个文件
m:12个
c:1个
gitattributes:1个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
![star](https://csdnimg.cn/release/downloadcmsfe/public/img/star.98a08eaa.png)
温馨提示
nsga2算法matlab代码这是基于NSGA-II的多目标进化算法(MOEA)。 最终目的是解决开源软件的发布时间和管理问题 NSGA是一种流行的基于非控制的遗传算法,用于多目标优化。 原始NSGA-II代码可在函数nsga_2(pop,gen)中找到。 该函数的输入参数是种群大小和世代数。 出于定制目的,用户可以通过修改m文件(evaluate_objective.m)来自由修改目标函数(多个决策变量的函数)。 传统上,优化的软件发布时间问题将多决策空间减少为单目标优化问题。 尽管这些表述简化了问题并降低了涉及的复杂性,但是解决方案并不能解决涉及的每个目标。 我们使用基于非控制的遗传算法来解决开源软件的发布时间问题,其原因有两个:1.要同时实现最大的可靠性和最小的成本。 2.进化算法保证了解的质量。 我们没有使用单个遗传算法找到一组最优解,而是找到了一个最优解。 众所周知,这些解决方案是帕累托最优解决方案。 在针对多目标问题的一组帕累托最优解中,在最后一个目标中,每个解决方案都必须比另一个更好。 我们考虑的目标是1.可靠性2.成本3.测试资源消耗 如何运行: nsga_2(pop,
资源推荐
资源详情
资源评论
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/TXT.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 19 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
- RongLinQin2022-07-01骗人的,别下
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
weixin_38675815
- 粉丝: 3
- 资源: 889
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)