src
fields2cover
objectives
pp_obj
pp_objective.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 "
fields2cover/objectives/pp_obj/pp_objective.h
"
8
9
namespace
f2c::obj
{
10
11
double
PPObjective::computeCost
(
const
F2CPath
&
path
) {
12
return
path
.length();
13
}
14
15
}
// namespace f2c::obj
16
f2c::obj::PPObjective::computeCost
virtual double computeCost(const F2CPath &path)
Return the cost of a path.
Definition:
pp_objective.cpp:11
2_objective_functions.path
path
Definition:
2_objective_functions.py:88
f2c::obj
Objective algorithms' namespace.
Definition:
base_objective.h:14
f2c::types::Path
Definition:
Path.h:23
pp_objective.h
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31