比較実験用データを作成

main
KoyoNoguchi 2 months ago
parent 004187541c
commit 1ac1b2ea1f
  1. 2
      .gitignore
  2. 1
      README.md
  3. BIN
      eGeneGeneX.dat
  4. BIN
      eGeneGeneY.dat
  5. BIN
      eGeneGeneZ.dat
  6. BIN
      es10.dat
  7. BIN
      es2.dat
  8. BIN
      es20.dat
  9. BIN
      es5.dat
  10. BIN
      output.dat
  11. BIN
      tGeneGeneX.dat
  12. BIN
      tGeneGeneY.dat
  13. BIN
      tGeneGeneZ.dat
  14. BIN
      ts10.dat
  15. BIN
      ts2.dat
  16. BIN
      ts20.dat
  17. BIN
      ts5.dat
  18. 6
      tsp.h
  19. 2
      tsp_jikken.c
  20. 34
      出力ファイル一覧.md

2
.gitignore vendored

@ -77,7 +77,7 @@ dkms.conf
# *.pdf
## Generated if empty string is given at "Please type another file name for output:"
.pdf
*.pdf
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl

@ -0,0 +1 @@
gcc -Wall -lm tsp_jikken.c tsp_private.c tsp_public.c tsp.c -o tsp ; .\tsp check.dat > output.dat ; gnuplot generation.plt

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -7,10 +7,10 @@
#define POSITION_MAX 10 /* 都市座標の最大値 */
/* 以下のパラメータを調節する */
#define GENE_NUM 100 /* 個体数 */
#define GENE_NUM 200 /* 個体数 */
#define ELETE 1 /* エリート戦略用 */
#define GENERATION 100 /* 進化世代数 */
#define MUTATION_RATIO 0.05 /* 突然変異確率 */
#define GENERATION 50 /* 進化世代数 */
#define MUTATION_RATIO 0.2 /* 突然変異確率 */
#define CROSSOVER_RATIO 0.3 /* 交叉確率 */ /* 本実験では不使用 */
#define SELECT_NUM 2 /* トーナメント方式で選ぶ遺伝子の数 */

@ -2,7 +2,7 @@
#include <stdlib.h>
#include "tsp.h"
#define ELETE_SELECTION NO /* エリート戦略で選択 */
#define ELETE_SELECTION YES /* エリート戦略で選択 */
/* 距離(または適合度)でソートするための比較関数 */
int compare_fitness(const void *a, const void *b) {

@ -1,6 +1,6 @@
# 出力一覧
## 収束曲線
## 選択戦略の比較,収束曲線
### only_mutation1
@ -58,3 +58,35 @@ elete1をtour1と同じような開始にしたバージョン
- GENERATION 100
- MUTATION_RATIO 0.2
- SELECT_NUM 10
## パラメータ比較
### ~m0.~~
突然変異確率の影響
- GENE_NUM 100
- ELETE 1
- GENERATION 100
- MUTATION_RATIO 0.01, 0.05, 0.10, 0.20
- SELECT_NUM 2
### ~s~
トーナメントサイズの影響
- GENE_NUM 100
- ELETE 1
- GENERATION 100
- MUTATION_RATIO 0.2
- SELECT_NUM 2, 5, 10, 20
### ~GeneGeneX/Y/Z
個体数と世代数のトレードオフ
- GENE_NUM 50/100/200
- ELETE 1
- GENERATION 200/100/50
- MUTATION_RATIO 0.2
- SELECT_NUM 2

Loading…
Cancel
Save