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

📄 world.java

📁 遗传算法求解TSP问题
💻 JAVA
字号:
/*******************************************************************************
 * This is a simple JAVA-Applet to demonstrate algorithms solving the Traveling
 * Salesman problem. Feel free to use or modify it. If you do so, please send me
 * a copy.
 * Tim Stockheim (tim@stockheim.net)
 * 1995 (programmed) & 2001 (updated)
 * 
 * Please do not delete my name from this program.
 * The following files contain to the applet:
 * Knoten.java  Main.java  Map.java  Map1.java  Map2.java  Tour.java  World.java
 *******************************************************************************/
 
// Class World contains all parameters to construct the Tour

public class World {
  // width and height of the ordinate and absziss
  static int width = 1000;
  static int height = 1000;
  // to get a larger picture use the parameter
  static double scaling = 0.3;
  // number of initially created points
  static int points = 50;
  /* distance beetween 2 point
   attention if distance is to large not all points fit on the map --> deadlock */
  static int minDist = 25;
}

⌨️ 快捷键说明

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