OP  0.1
OP is a optimization solver plugin package
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends
Public Member Functions | Public Attributes | List of all members
op::Optimizer Class Referenceabstract

Abstracted Optimizer implementation. More...

#include <op.hpp>

Collaboration diagram for op::Optimizer:
Collaboration graph
[legend]

Public Member Functions

 Optimizer ()
 Ctor has deferred initialization.
 
 iterate ([](){})
 
 save ([](){})
 
 final_obj (std::numeric_limits< double >::max())
 
virtual void setObjective (Functional &o)=0
 Sets the optimization objective. More...
 
virtual void addConstraint (Functional &)
 Adds a constraint for the optimization problem. More...
 
void Go ()
 Start the optimization.
 
void UpdatedVariableCallback ()
 What to do when the variables are updated.
 
virtual double Solution ()
 What to do when the solution is found. Return the objetive.
 
void Iteration ()
 What to do at the end of an optimization iteration.
 
void SaveState ()
 Saves the state of the optimizer.
 
virtual ~Optimizer ()=default
 Destructor.
 

Public Attributes

op::Go go
 Go function to start optimization.
 
CallbackFn update
 Update callback to compute before function calculations.
 
CallbackFn iterate
 iterate callback to compute before
 
CallbackFn save
 callback for saving current optimizer state
 
double final_obj
 final objective value
 

Detailed Description

Abstracted Optimizer implementation.

Definition at line 165 of file op.hpp.

Member Function Documentation

virtual void op::Optimizer::addConstraint ( Functional )
inlinevirtual

Adds a constraint for the optimization problem.

Parameters
[in]oConstraint Functional

Reimplemented in op::NLopt< T >.

Definition at line 186 of file op.hpp.

virtual void op::Optimizer::setObjective ( Functional o)
pure virtual

Sets the optimization objective.

Parameters
[in]oObjective Functional

Implemented in op::NLopt< T >, and TestOptimizer.


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