File: SDDPVisitedStatesWrap.h

package info (click to toggle)
stopt 5.12%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 8,860 kB
  • sloc: cpp: 70,456; python: 5,950; makefile: 72; sh: 57
file content (31 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (C) 2016 EDF
// All Rights Reserved
// This code is published under the GNU Lesser General Public License (GNU LGPL)
#ifndef SDDPVISITEDSTATESWRAP_H
#define SDDPVISITEDSTATESWRAP_H
#include <memory>
#include <Eigen/Dense>
#include "StOpt/sddp/SDDPVisitedStates.h"
#include "StOpt/sddp/LocalLinearRegressionForSDDP.h"

/// wrapper for SDDPVisitedStates
///*****************************
class  SDDPVisitedStatesWrap:  public StOpt::SDDPVisitedStates
{

public:

    SDDPVisitedStatesWrap(): StOpt::SDDPVisitedStates() {}

    void addVisitedState(const std::shared_ptr< Eigen::ArrayXd > &p_state, const Eigen::ArrayXd &p_particle, const StOpt::LocalLinearRegressionForSDDP   &p_regressor)
    {
        StOpt::SDDPVisitedStates::addVisitedState(p_state, p_particle, p_regressor);
    }

    void addVisitedStateForAll(const std::shared_ptr< Eigen::ArrayXd > &p_state,  const StOpt::LocalLinearRegressionForSDDP   &p_regressor)
    {
        StOpt::SDDPVisitedStates::addVisitedStateForAll(p_state, p_regressor);
    }
};

#endif