- COST(1e4, edgewise_vertex_displacement_cost(vertices));
- COST(1e2, graph_layout_cost(vertices,vertex_areas));
-// COST(1e4, noncircular_rim_cost(vertices));
+ printing= printing_check(pr_cost,0);
+
+ if (printing) printf("%15lld c>e |", evaluations);
+
+ if (XBITS==3) {
+ COST( 3e2, line_bending_cost(vs->a));
+ COST( 1e3, edge_length_variation_cost(vs->a));
+ COST( 0.4e3, rim_proximity_cost(vs->a));
+ COST( 1e6, edge_angle_cost(vs->a));
+// COST( 1e1, small_triangles_cost(vs->a));
+ COST( 1e12, noncircular_rim_cost(vs->a));
+ stop_epsilon= 1e-6;
+ } else if (XBITS==4) {
+ COST( 3e2, line_bending_cost(vs->a));
+ COST( 3e3, edge_length_variation_cost(vs->a));
+ COST( 9.0e1, rim_proximity_cost(vs->a)); // 5e1 is too much
+ // 2.5e1 is too little
+ // 0.2e1 grows compared to previous ?
+ // 0.6e0 shrinks compared to previous ?
+ COST( 1e12, edge_angle_cost(vs->a));
+ COST( 1e12, noncircular_rim_cost(vs->a));
+ stop_epsilon= 1e-5;
+ } else {
+ abort();
+ }
+
+ if (printing) printf("| total %# e |", energy);