src
fields2cover
objectives
sg_obj
n_swath.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/sg_obj/n_swath.h
"
8
9
namespace
f2c::obj
{
10
11
double
NSwath::computeCost
(
const
F2CSwath
& s) {
12
return
1.0;
13
}
14
15
double
NSwath::computeCost
(
const
F2CSwaths
&
swaths
) {
16
return
swaths
.size();
17
}
18
19
}
// namespace f2c::obj
20
5_route_planning.swaths
swaths
Definition:
5_route_planning.py:58
f2c::types::Swath
Definition:
Swath.h:23
f2c::obj
Objective algorithms' namespace.
Definition:
base_objective.h:14
f2c::obj::NSwath::computeCost
double computeCost(const F2CSwath &s) override
Compute the cost function.
Definition:
n_swath.cpp:11
f2c::types::Swaths
Definition:
Swaths.h:20
n_swath.h
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31