Pallas Solver
0.1
C++ Global Optimization Algorithms
|
Minimizes an objective function by brute force, trying all possible combinations of specified parameter ranges and outputs the best solution found. More...
#include <brute.h>
Classes | |
struct | HistoryOutput |
Stores information about the state of the system for at a given iteration number. More... | |
struct | Options |
struct | ParameterRange |
Range of values to test for the ith degree of freedom. More... | |
struct | Summary |
Contains a summary of the optimization. More... | |
Public Member Functions | |
Brute () | |
Default constructor. | |
void | Solve (const Brute::Options options, const GradientProblem &problem, const std::vector< Brute::ParameterRange > ¶meter_ranges, double *parameters, Brute::Summary *global_summary) |
Minimizes the specified gradient problem. More... | |
Minimizes an objective function by brute force, trying all possible combinations of specified parameter ranges and outputs the best solution found.
Example
void pallas::Brute::Solve | ( | const Brute::Options | options, |
const GradientProblem & | problem, | ||
const std::vector< Brute::ParameterRange > & | parameter_ranges, | ||
double * | parameters, | ||
Brute::Summary * | global_summary | ||
) |
Minimizes the specified gradient problem.
The specified options are used to setup a brute instance which is then used to minimize the GradientProblem. The optimal solution is stored in parameters
and a summary of the global optimization can be found in summary
.
options | pallas::Brute::Options. Options used to configure the optimization. |
problem | pallas::GradientProblem. The problem to optimize. |
parameters | double*. The starting point for further optimization. |
summary | Brute::Summary*. Summary instance to store the optimization details. |