Go to the documentation of this file.
7 #include <gtest/gtest.h>
11 TEST(fields2cover_obj_direct_dist_path_obj, computeCost_cost) {
16 auto createRoute = [](
const F2CSwaths& s) {
18 route.addConnection();
20 route.addConnection();
29 auto r2 = createRoute(swaths2);
30 auto r4 = createRoute(swaths4);
38 std::vector<F2CPoint> ps1 {
p1,
p2};
72 TEST(fields2cover_obj_direct_dist_path_obj, params_check) {
Path cost function as the straight distance between points in a route.
virtual bool isMaximizing() const
Return true if the objective is to maximize the cost function.
void addGeometry(const Point &p)
TEST(fields2cover_obj_direct_dist_path_obj, computeCost_cost)
f2c::types::LineString F2CLineString
double computeCost(const F2CPoint &p1, const F2CPoint &p2) override
f2c::types::Point F2CPoint
double computeCostWithMinimizingSign(const T1 &t1)
Compute the cost function with minimizing sign.
virtual bool isMinimizing() const
Return true if the objective is to minimize the cost function.
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31