Mentions légales du service

Skip to content
Snippets Groups Projects

Resolve "Generic Cost functions"

Merged LOPEZ GANDIA Axel requested to merge 29-Generic-Cost-Function into master
2 files
+ 101
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 51
0
/* Crowd Simulator Engine
** Copyright (C) 2018 - Inria Rennes - Rainbow - Julien Pettre
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License
** as published by the Free Software Foundation; either version 2
** of the License, or (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**
**
**
** Authors: Axel Lopez Gandia, Javad Amirian, Florian Berton,
** Julien Legros, Lucas Pelerin, Beatriz Cabrero Daniel, Fabien Grzeskowiak
**
** Contact: crowd_group@inria.fr
*/
#ifndef LIB_GENERIC_COST_H
#define LIB_GENERIC_COST_H
#include <core/costFunction.h>
/*
* Empty Cost Function, use as template.
*/
class GenericCost : public CostFunction
{
private:
public:
GenericCost();
/**
* Computes the value and gradient of the cost function.
* Return the values to the policy to update the agent.
*/
virtual CostFunctionValues GetCostFunctionGradient(Agent* agent, World * world);
virtual ~GenericCost();
};
#endif //LIB_GENERIC_COST_H
Loading