n_swath.h
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 #pragma once
8 #ifndef FIELDS2COVER_OBJECTIVES_N_SWATH_H_
9 #define FIELDS2COVER_OBJECTIVES_N_SWATH_H_
10 
11 #include "fields2cover/types.h"
13 
14 namespace f2c::obj {
15 
20 class NSwath : public SGObjective {
21  public:
23  double computeCost(const F2CSwath& s) override;
24  double computeCost(const F2CSwaths& swaths) override;
25 };
26 
27 } // namespace f2c::obj
28 
29 #endif // FIELDS2COVER_OBJECTIVES_N_SWATH_H_
5_route_planning.swaths
swaths
Definition: 5_route_planning.py:58
f2c::obj::NSwath
SG cost function as the number of swaths.
Definition: n_swath.h:20
types.h
f2c::types::Swath
Definition: Swath.h:23
f2c::obj::SGObjective
Base class for objective functions of swath generators.
Definition: sg_objective.h:21
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
sg_objective.h
f2c::obj::SGObjective::computeCost
virtual double computeCost(const F2CSwath &)
Compute the cost function.
Definition: sg_objective.cpp:11
f2c::types::Swaths
Definition: Swaths.h:20


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