Commit e0dfaa96 authored by Rubin, Paul's avatar Rubin, Paul

Changed square of L2 norm to L2 norm.

parent 4f40d853
......@@ -56,7 +56,7 @@ public final class L1 extends Model {
return String.format("%nL1 norm of the final solution = %5.2e%n",
mip.getValue(l1))
+ String.format("L2 norm of the final solution = %5.2e%n",
mip.getValue(l2));
Math.sqrt(mip.getValue(l2)));
}
/**
......@@ -74,7 +74,7 @@ public final class L1 extends Model {
String report =
String.format("%nNew incumbent with L1 norm = %5.2e"
+ " and L2 norm %5.2e%n",
getValue(l1), getValue(l2));
getValue(l1), Math.sqrt(getValue(l2)));
System.out.println(report);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment