decomp_obj_test.cpp
Go to the documentation of this file.
1 //=============================================================================
2 // Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
3 // Author: Gonzalo Mier
4 // BSD-3 License
5 //=============================================================================
6 
7 #include <gtest/gtest.h>
8 #include "fields2cover/types.h"
10 
11 TEST(fields2cover_obj_decomp_obj, computeCost) {
14  EXPECT_EQ(obj.computeCost(cells), 0.0);
15  EXPECT_TRUE(obj.isMinimizing());
16  EXPECT_FALSE(obj.isMaximizing());
17 }
18 
1_basic_types.cells
cells
Definition: 1_basic_types.py:93
types.h
7_decomposition.obj
obj
Definition: 7_decomposition.py:32
f2c::obj::DecompObjective
Base class for objective functions of cell decomposition.
Definition: decomp_objective.h:18
TEST
TEST(fields2cover_obj_decomp_obj, computeCost)
Definition: decomp_obj_test.cpp:11
f2c::types::Cells
Definition: Cells.h:21
decomp_objective.h


fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31