OP  0.1
OP is a optimization solver plugin package
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends
Public Member Functions | List of all members
TestOptimizer Class Reference
Collaboration diagram for TestOptimizer:
Collaboration graph
[legend]

Public Member Functions

void setObjective (op::Functional &) override
 Sets the optimization objective. More...
 
double Solution () override
 What to do when the solution is found. Return the objetive.
 
- Public Member Functions inherited from op::Optimizer
 Optimizer ()
 Ctor has deferred initialization.
 
 iterate ([](){})
 
 save ([](){})
 
 final_obj (std::numeric_limits< double >::max())
 
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.
 
void Iteration ()
 What to do at the end of an optimization iteration.
 
void SaveState ()
 Saves the state of the optimizer.
 
virtual ~Optimizer ()=default
 Destructor.
 

Additional Inherited Members

- Public Attributes inherited from op::Optimizer
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

Definition at line 4 of file test_optimizer.cpp.

Member Function Documentation

void TestOptimizer::setObjective ( op::Functional o)
inlineoverridevirtual

Sets the optimization objective.

Parameters
[in]oObjective Functional

Implements op::Optimizer.

Definition at line 8 of file test_optimizer.cpp.


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