資源簡介
基于非支配排序的多目標優化算法nsga2標準C代碼

代碼片段和文件信息
/*?This?is?a?Multi-objective?GA?program.
**********************************************************************
*??This?program?is?the?implementation?of?the?NSGA-2?proposed?by??????*
*????????????????????????????????????????????????????????????????????*
*??Prof.?Kalyanmoy?Deb?and?his?students?.????????????????????????????*
*????????????????????????????????????????????????????????????????????*
*??copyright?Kalyanmoy?Deb
**********************************************************************
The?user?have?to?give?the?input?manualy?or?through?a?data?file.
The?user?needs?to?enter?objective?functions?in?func-con.h
The?code?can?also?take?care?of?the?constraints.?Enter?the?constraints
in?the?space?provided?in?the?func-con.h?file.
Constraints?must?be?of?the?following?type:
g(x)?>=?0.0
Also?normalize?all?constraints?(see?the?example?problem?in?func-con.h)
If?your?program?asks?you?to?increase?the?values?of?some?parameters?in?the
program?come?to?main?program?and?accordingly?changed?the?values?which?are
defined?against?#define?...
The?program?generates?few?output?files.?These?are?described?as
1.output.out
*???????????This?file?has?the?detailed?record?for?all?the?variables
*???????????the?fitness?values?constraint?values?overall?constraint
????????????violation?(penalty)??and?their?ranks?for?all?the?members
*???????????of?old?population?in?the?left?hand?side?of?the?|**|
*???????????and?of?new?population?in?the?right?hand?side.
2.all_fitness.out
*?????????This?file?prints?the?record?of?all?the?fitness?values?for
*?????????different?individual?of?new?popultion?created?at?all
*?????????generations.
3.g_rank_record.out
*????????This?file?maintains?the?record?of?individuals?in?global?pop-
*????????-ulation?at?different?ranks?for?all?the?generations.
4.ranks.out
*?????????This?file?prints?the?number?of?individual?at?different?ranks
*??????????in?old?and?new?population?and?finds?rank?ratios
5.final_fitness.out
*?????????????????This?file?has?the?fitness?value?of?all?feasible?and
??????????????????non-dominated?individuals?at?the?final?generation
6.final_var.out
*?????????????????This?file?has?the?all?the?variables?of?the?feasible
??????????????????and?non-dominated?individuals?at?the?final?generation.
??????????????????The?i-th?solutions?here?corresponds?to?the?i-th?solution
??????????????????in?the?final_fitness.out?file.?
7.plot.out????????This?file?contains?gnuplot-based?file?for?plotting
??????????????????the?non-dominated?feasible?solutions?obtained?by?the?code.
*************************************************************************
*?????????This?is?recommended?to?delete?or?rename?all?the?*.out?files
*?????????obtained?from?the?previous?runs?as?some?files?are?opened?in
*?????????append?mode?so?they?give?false?resemblence?of?data?if?the
*?????????user?is?not?careful
Compilation?procedure:??gcc?nsga2.c?-lm
Run?./a.out?with?or?without?an?input?file
Input?data?files:?Three?files?are?included?but?at?one?time?one?is?needed
depending?on?the?type?of?va
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-03-22?20:16??nsga2code\
?????文件????????1500??2002-01-05?10:22??nsga2code\crossover.h
?????文件?????????942??2002-01-05?10:22??nsga2code\decode.h
?????文件????????3241??2002-01-05?10:22??nsga2code\dfit.h
?????文件????????2868??2002-01-05?10:22??nsga2code\func-con.h
?????文件?????????774??2002-01-05?10:22??nsga2code\init.h
?????文件??????????60??2002-01-05?10:22??nsga2code\inp-b
?????文件??????????59??2002-01-05?10:22??nsga2code\inp-r
?????文件??????????64??2002-01-05?10:22??nsga2code\inp-rb
?????文件?????????633??2002-01-05?10:22??nsga2code\input-binary
?????文件?????????885??2002-01-05?10:22??nsga2code\input-rb+bin
?????文件?????????423??2002-01-05?10:22??nsga2code\input-real
?????文件????????7544??2002-01-05?10:22??nsga2code\input.h
?????文件???????12548??2002-01-05?10:22??nsga2code\keepaliven.h
?????文件?????????692??2002-01-05?10:22??nsga2code\mut.h
?????文件???????15616??2002-01-05?10:22??nsga2code\nsga2.c
?????文件????????5314??2002-01-05?10:22??nsga2code\rancon.h
?????文件????????4011??2002-01-05?10:22??nsga2code\random.h
?????文件????????4297??2002-01-05?10:22??nsga2code\ranking.h
?????文件????????3051??2002-01-05?10:22??nsga2code\realcross2.h
?????文件?????????838??2002-01-05?10:22??nsga2code\realinit.h
?????文件????????1445??2002-01-05?10:22??nsga2code\realmut1.h
?????文件????????2685??2002-01-05?10:22??nsga2code\realselect.h
?????文件????????3722??2002-01-05?10:22??nsga2code\report.h
?????文件????????1668??2002-01-05?10:22??nsga2code\roullette.h
?????文件????????2760??2002-01-05?10:22??nsga2code\select.h
?????文件????????1294??2002-01-05?10:22??nsga2code\uniformxr.h
- 上一篇:互相關C語言程序xcorr
- 下一篇:人員信息管理系統c++版超詳細
評論
共有 條評論