swath_length.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_SWATH_LENGTH_H_
9 #define FIELDS2COVER_OBJECTIVES_SWATH_LENGTH_H_
10 
11 #include <numeric>
12 #include "fields2cover/types.h"
14 
15 namespace f2c::obj {
16 
18 class SwathLength : public SGObjective {
19  public:
21  double computeCost(const F2CSwath& s) override;
22 };
23 
24 } // namespace f2c::obj
25 
26 #endif // FIELDS2COVER_OBJECTIVES_SWATH_LENGTH_H_
f2c::obj::SwathLength
Global cost function as the length of the swaths.
Definition: swath_length.h:18
f2c::obj::SwathLength::computeCost
double computeCost(const F2CSwath &s) override
Compute the cost function.
Definition: swath_length.cpp:11
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
sg_objective.h
f2c::obj::SGObjective::computeCost
virtual double computeCost(const F2CSwath &)
Compute the cost function.
Definition: sg_objective.cpp:11


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