X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=minimise.h;h=c2e13e7b40fef83169495c5b2754fc91333c90d1;hb=135adb1269cc41c10ebaf03e72d7258fd9e88a7d;hp=85dc96f31df978b0b0408bf556a292a0231a55d3;hpb=2377b968f55ddd5d6a8ff79ee9150316a218afc8;p=moebius2.git diff --git a/minimise.h b/minimise.h index 85dc96f..c2e13e7 100644 --- a/minimise.h +++ b/minimise.h @@ -7,10 +7,32 @@ #include "mgraph.h" -double graph_layout_cost(const Vertices v, const double vertex_areas[N]); +double compute_energy(const struct Vertices *vs); +void energy_init(void); + +double graph_layout_cost(const Vertices v, int section); void graph_layout_prepare(); -double noncircular_rim_cost(const Vertices vertices); -double edgewise_vertex_displacement_cost(const Vertices vertices); +void compute_vertex_areas(const Vertices vertices, int section); +void compute_edge_lengths(const Vertices vertices, int section); + +extern double vertex_areas[N], vertex_mean_edge_lengths[N], edge_lengths[N][V6]; + +extern const double edge_angle_cost_circcircrat; + +double line_bending_cost(const Vertices vertices, int section); +double noncircular_rim_cost(const Vertices vertices, int section); +double edge_length_variation_cost(const Vertices vertices, int section); +double rim_proximity_cost(const Vertices vertices, int section); +double edge_angle_cost(const Vertices vertices, int section); +double small_triangles_cost(const Vertices vertices, int section); + +extern const char *input_file, *best_file; +extern char *best_file_tmp; +extern long long evaluations; +extern double stop_epsilon; + +enum printing_instance { pr_cost, pr_size, pr__max }; +int printing_check(enum printing_instance, int indent); #endif /*MINIMISE_H*/