include
fields2cover
objectives
sg_obj
n_swath_modified.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_MODIFIED_H_
9
#define FIELDS2COVER_OBJECTIVES_N_SWATH_MODIFIED_H_
10
11
#include "
fields2cover/types.h
"
12
#include "
fields2cover/objectives/sg_obj/n_swath.h
"
13
14
namespace
f2c::obj
{
15
20
class
NSwathModified
:
public
NSwath
{
21
public
:
22
using
SGObjective::computeCost
;
23
bool
isFastCompAvailable
()
const override
{
return
true
;}
24
double
computeCost
(
double
ang,
double
op_width,
const
F2CCell
&
cell
)
override
;
25
};
26
27
}
// namespace f2c::obj
28
29
#endif // FIELDS2COVER_OBJECTIVES_N_SWATH_MODIFIED_H_
f2c::obj::NSwath
SG cost function as the number of swaths.
Definition:
n_swath.h:20
types.h
f2c::obj::NSwathModified::isFastCompAvailable
bool isFastCompAvailable() const override
Definition:
n_swath_modified.h:23
1_basic_types.cell
cell
Definition:
1_basic_types.py:88
f2c::types::Cell
Definition:
Cell.h:32
f2c::obj
Objective algorithms' namespace.
Definition:
base_objective.h:14
f2c::obj::NSwathModified::computeCost
double computeCost(double ang, double op_width, const F2CCell &cell) override
Compute the cost function.
Definition:
n_swath_modified.cpp:11
f2c::obj::SGObjective::computeCost
virtual double computeCost(const F2CSwath &)
Compute the cost function.
Definition:
sg_objective.cpp:11
n_swath.h
f2c::obj::NSwathModified
SG cost function as the number of swaths .
Definition:
n_swath_modified.h:20
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31