include
fields2cover
objectives
sg_obj
sg_objective.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_SG_OBJECTIVE_H_
9
#define FIELDS2COVER_OBJECTIVES_SG_OBJECTIVE_H_
10
11
#include "
fields2cover/types.h
"
12
#include "
fields2cover/objectives/base_objective.h
"
13
14
15
namespace
f2c::obj
{
16
21
class
SGObjective
:
public
BaseObjective
<SGObjective> {
22
public
:
23
virtual
bool
isFastCompAvailable
()
const
{
return
false
;}
24
26
virtual
double
computeCost
(
const
F2CSwath
&);
28
virtual
double
computeCost
(
const
F2CSwaths
&);
30
virtual
double
computeCost
(
const
F2CSwathsByCells
&
swaths
);
32
virtual
double
computeCost
(
const
F2CCell
&);
34
virtual
double
computeCost
(
const
F2CCells
&);
36
virtual
double
computeCost
(
double
ang,
double
op_width,
const
F2CCell
&
cell
);
38
virtual
double
computeCost
(
const
F2CCell
& c,
const
F2CSwath
& s);
40
virtual
double
computeCost
(
const
F2CCell
& c,
const
F2CSwaths
& s);
42
virtual
double
computeCost
(
const
F2CCell
& c,
43
const
F2CSwathsByCells
&
swaths
);
45
virtual
double
computeCost
(
const
F2CCells
& c,
const
F2CSwath
& s);
47
virtual
double
computeCost
(
const
F2CCells
& c,
const
F2CSwaths
& s);
49
virtual
double
computeCost
(
const
F2CCells
& c,
50
const
F2CSwathsByCells
&
swaths
);
51
};
52
53
54
}
// namespace f2c::obj
55
56
#endif // FIELDS2COVER_OBJECTIVES_SG_OBJECTIVE_H_
5_route_planning.swaths
swaths
Definition:
5_route_planning.py:58
types.h
1_basic_types.cell
cell
Definition:
1_basic_types.py:88
f2c::types::Swath
Definition:
Swath.h:23
f2c::obj::SGObjective
Base class for objective functions of swath generators.
Definition:
sg_objective.h:21
f2c::types::Cell
Definition:
Cell.h:32
f2c::obj
Objective algorithms' namespace.
Definition:
base_objective.h:14
f2c::types::Cells
Definition:
Cells.h:21
f2c::obj::SGObjective::isFastCompAvailable
virtual bool isFastCompAvailable() const
Definition:
sg_objective.h:23
base_objective.h
f2c::types::SwathsByCells
Definition:
SwathsByCells.h:17
f2c::obj::BaseObjective
Definition:
base_objective.h:17
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