summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/knowledge/SearchPoint.java4
-rw-r--r--nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/space/DesignSpace.java4
2 files changed, 2 insertions, 6 deletions
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/knowledge/SearchPoint.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/knowledge/SearchPoint.java
index 0085ff7e481e..c33d6490b4be 100644
--- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/knowledge/SearchPoint.java
+++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/knowledge/SearchPoint.java
@@ -42,9 +42,7 @@ public class SearchPoint extends BasicPoint implements IEncodeEngine {
}
private void importEncodeInfo(double[] info) {
- for(int i=0; i<encodeInfo.length; i++) {
- encodeInfo[i] = info[i];
- }
+ System.arraycopy(info, 0, encodeInfo, 0, encodeInfo.length);
}
private void importEncodeInfo(IEncodeEngine point) {
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/space/DesignSpace.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/space/DesignSpace.java
index 48f4df46042a..35e2ac0c7775 100644
--- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/space/DesignSpace.java
+++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/space/DesignSpace.java
@@ -131,9 +131,7 @@ public class DesignSpace {
public double[] getRealLoc(double[] imageLoc) {
double[] realLoc = new double[imageLoc.length];
- for (int i=0; i<imageLoc.length; i++) {
- realLoc[i] = imageLoc[i];
- }
+ System.arraycopy(imageLoc, 0, realLoc, 0, imageLoc.length);
annulusAdjust(realLoc);
return realLoc;
}