OR-Tools  8.2
PortfolioOptimizer

Detailed Description

Definition at line 63 of file bop_portfolio.h.

Public Types

enum  Status {
  OPTIMAL_SOLUTION_FOUND , SOLUTION_FOUND , INFEASIBLE , LIMIT_REACHED ,
  INFORMATION_FOUND , CONTINUE , ABORT
}
 

Public Member Functions

 PortfolioOptimizer (const ProblemState &problem_state, const BopParameters &parameters, const BopSolverOptimizerSet &optimizer_set, const std::string &name)
 
 ~PortfolioOptimizer () override
 
bool ShouldBeRun (const ProblemState &problem_state) const override
 
Status Optimize (const BopParameters &parameters, const ProblemState &problem_state, LearnedInfo *learned_info, TimeLimit *time_limit) override
 
const std::string & name () const
 

Static Public Member Functions

static std::string GetStatusString (Status status)
 

Protected Attributes

const std::string name_
 
StatsGroup stats_
 

Member Enumeration Documentation

◆ Status

enum Status
inherited
Enumerator
OPTIMAL_SOLUTION_FOUND 
SOLUTION_FOUND 
INFEASIBLE 
LIMIT_REACHED 
INFORMATION_FOUND 
CONTINUE 
ABORT 

Definition at line 64 of file bop_base.h.

Constructor & Destructor Documentation

◆ PortfolioOptimizer()

PortfolioOptimizer ( const ProblemState problem_state,
const BopParameters &  parameters,
const BopSolverOptimizerSet &  optimizer_set,
const std::string &  name 
)

Definition at line 62 of file bop_portfolio.cc.

◆ ~PortfolioOptimizer()

~PortfolioOptimizer ( )
override

Definition at line 79 of file bop_portfolio.cc.

Member Function Documentation

◆ GetStatusString()

std::string GetStatusString ( Status  status)
staticinherited

Definition at line 39 of file bop_base.cc.

◆ name()

const std::string& name ( ) const
inlineinherited

Definition at line 49 of file bop_base.h.

◆ Optimize()

BopOptimizerBase::Status Optimize ( const BopParameters &  parameters,
const ProblemState problem_state,
LearnedInfo learned_info,
TimeLimit time_limit 
)
overridevirtual

Implements BopOptimizerBase.

Definition at line 124 of file bop_portfolio.cc.

◆ ShouldBeRun()

bool ShouldBeRun ( const ProblemState problem_state) const
inlineoverridevirtual

Implements BopOptimizerBase.

Definition at line 71 of file bop_portfolio.h.

Member Data Documentation

◆ name_

const std::string name_
protectedinherited

Definition at line 101 of file bop_base.h.

◆ stats_

StatsGroup stats_
mutableprotectedinherited

Definition at line 103 of file bop_base.h.


The documentation for this class was generated from the following files: