[Swift-commit] r7766 - SwiftApps/SimulatedAnnealing
wilde at ci.uchicago.edu
wilde at ci.uchicago.edu
Fri Apr 11 16:49:14 CDT 2014
Author: wilde
Date: 2014-04-11 16:49:13 -0500 (Fri, 11 Apr 2014)
New Revision: 7766
Modified:
SwiftApps/SimulatedAnnealing/sa.swift
Log:
sa edit
Modified: SwiftApps/SimulatedAnnealing/sa.swift
===================================================================
--- SwiftApps/SimulatedAnnealing/sa.swift 2014-04-11 21:48:01 UTC (rev 7765)
+++ SwiftApps/SimulatedAnnealing/sa.swift 2014-04-11 21:49:13 UTC (rev 7766)
@@ -379,8 +379,8 @@
iterate c {
int cy = c + 1;
- float na[] = [ newx(a[0][0],0.5), newx(a[0][1],0.5), newx(a[0][2],0.5), newx(a[0][3],0.5) ];
- y[cy] = objective(na);
+ a[cy] = [ newx(a[0][0],0.5), newx(a[0][1],0.5), newx(a[0][2],0.5), newx(a[0][3],0.5) ];
+ y[cy] = objective(a[cy]);
trace(c,y[c]);
} until (c==10);
More information about the Swift-commit
mailing list