|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
2D linear-programming feasible region via half-plane intersection. More...
#include <geom_algorithms.H>#include <cassert>#include <fstream>#include <iomanip>#include <iostream>Go to the source code of this file.
Functions | |
| static void | print_banner (const char *title) |
| static Geom_Number | objective (const Point &p) |
| static void | write_polygon_wkt (ostream &out, const Polygon &poly) |
| static bool | export_csv (const char *path, const Polygon &feasible, const Point &best_point, const Geom_Number &best_value) |
| int | main (int argc, char **argv) |
2D linear-programming feasible region via half-plane intersection.
Demonstrates:
HalfPlaneIntersection bounded half-plane intersection.Definition in file halfplane_intersection_example.cc.
|
static |
Definition at line 95 of file halfplane_intersection_example.cc.
References Aleph::divide_and_conquer_partition_dp(), file, Aleph::geom_number_to_double(), Aleph::Point::get_x(), Aleph::Point::get_y(), Aleph::Dlink::Iterator::has_curr(), objective(), and write_polygon_wkt().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 128 of file halfplane_intersection_example.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), export_csv(), Aleph::geom_number_to_double(), Aleph::Point::get_x(), Aleph::Point::get_y(), Aleph::Dlink::Iterator::has_curr(), initialized, Aleph::Polygon::is_closed(), objective(), print_banner(), and Aleph::Polygon::size().
|
static |
Definition at line 61 of file halfplane_intersection_example.cc.
References Aleph::Point::get_x(), and Aleph::Point::get_y().
Referenced by export_csv(), and main().
|
static |
Definition at line 55 of file halfplane_intersection_example.cc.
Referenced by main().
|
static |
Definition at line 67 of file halfplane_intersection_example.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::geom_number_to_double(), Aleph::Point::get_x(), Aleph::Point::get_y(), and Aleph::Dlink::Iterator::has_curr().
Referenced by export_csv().