📄 tspsolution.java
字号:
public class TSPSolution extends net.iharder.opents.SolutionAdapter { public int[] tour; /* public TSPSolution(){} public TSPSolution( int numCustomers ) { tour = new int[ numCustomers ]; for( int i = 0; i < numCustomers; i++ ) tour[i] = i; } // end constructor */ public Object clone() { TSPSolution copy = (TSPSolution)super.clone(); copy.tour = (int[])this.tour.clone(); return copy; } // end clone } // end class TSPSolution
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -