mango::Least_squares_solver Class Reference

#include <Least_squares_solver.hpp>

Inheritance diagram for mango::Least_squares_solver:
mango::Solver

Public Member Functions

 Least_squares_solver (Least_squares_problem *, int, int)
 
 ~Least_squares_solver ()
 
double optimize (MPI_Partition *)
 
void finite_difference_gradient (const double *, double *, double *)
 
void objective_function_wrapper (const double *, double *, bool *)
 
bool record_function_evaluation (const double *, double, bool)
 
void record_function_evaluation_pointer (const double *, double *, bool)
 
double residuals_to_single_objective (double *)
 
void residual_function_wrapper (const double *, double *, bool *)
 
void finite_difference_Jacobian (const double *, double *, double *)
 
- Public Member Functions inherited from mango::Solver
 Solver (Problem *, int)
 
 ~Solver ()
 
virtual void init_optimization ()
 
void finite_difference_Jacobian (vector_function_type, int, const double *, double *, double *)
 
void evaluate_set_in_parallel (vector_function_type, int, int, double *, double *, bool *)
 

Static Public Member Functions

static void least_squares_to_single_objective (int *, const double *, double *, int *, mango::Problem *, void *)
 
- Static Public Member Functions inherited from mango::Solver
static void objective_to_vector_function (int *, const double *, int *, double *, int *, mango::Problem *, void *)
 

Public Attributes

int N_terms
 
double * targets
 
double * sigmas
 
vector_function_type residual_function
 
double * best_residual_function
 
double * residuals
 
bool print_residuals_in_output_file
 
double * current_residuals
 
Least_squares_problemleast_squares_problem
 
- Public Attributes inherited from mango::Solver
algorithm_type algorithm
 
int N_parameters
 
objective_function_type objective_function
 
int function_evaluations
 
int argc
 
char ** argv
 
int max_function_and_gradient_evaluations
 
bool at_least_one_success
 
double * best_state_vector
 
double best_objective_function
 
int best_function_evaluation
 
bool bound_constraints_set
 
double * lower_bounds
 
double * upper_bounds
 
clock_t start_time
 
clock_t best_time
 
Packagepackage
 
double * state_vector
 
bool centered_differences
 
double finite_difference_step_size
 
std::string output_filename
 
int max_function_evaluations
 
int verbose
 
void * user_data
 
MPI_Partitionmpi_partition
 
Problemproblem
 
Recorderrecorder
 
int N_line_search
 

Protected Member Functions

 Least_squares_solver ()
 
void group_leaders_loop ()
 
- Protected Member Functions inherited from mango::Solver
 Solver ()
 
virtual void set_package ()
 

Detailed Description

Definition at line 28 of file Least_squares_solver.hpp.

Constructor & Destructor Documentation

◆ Least_squares_solver() [1/2]

mango::Least_squares_solver::Least_squares_solver ( )
protected

Definition at line 44 of file Least_squares_solver.cpp.

◆ Least_squares_solver() [2/2]

mango::Least_squares_solver::Least_squares_solver ( Least_squares_problem problem_in,
int  N_parameters_in,
int  N_terms_in 
)

Definition at line 25 of file Least_squares_solver.cpp.

◆ ~Least_squares_solver()

mango::Least_squares_solver::~Least_squares_solver ( )

Definition at line 50 of file Least_squares_solver.cpp.

Member Function Documentation

◆ finite_difference_gradient()

void mango::Least_squares_solver::finite_difference_gradient ( const double *  state_vector,
double *  base_case_objective_function,
double *  gradient 
)
virtual

Reimplemented from mango::Solver.

Definition at line 26 of file finite_difference_Jacobian_to_gradient.cpp.

◆ finite_difference_Jacobian()

void mango::Least_squares_solver::finite_difference_Jacobian ( const double *  state_vector_arg,
double *  base_case_residual,
double *  Jacobian 
)

Definition at line 54 of file Least_squares_solver.cpp.

◆ group_leaders_loop()

void mango::Least_squares_solver::group_leaders_loop ( )
protectedvirtual

Reimplemented from mango::Solver.

Definition at line 23 of file group_leaders_loop_least_squares.cpp.

◆ least_squares_to_single_objective()

void mango::Least_squares_solver::least_squares_to_single_objective ( int *  N,
const double *  x,
double *  f,
int *  failed_int,
mango::Problem this_problem,
void *  user_data 
)
static

Definition at line 149 of file optimize_least_squares.cpp.

◆ objective_function_wrapper()

void mango::Least_squares_solver::objective_function_wrapper ( const double *  x,
double *  f,
bool *  failed 
)
virtual

Reimplemented from mango::Solver.

Definition at line 90 of file residual_function_wrapper.cpp.

◆ optimize()

double mango::Least_squares_solver::optimize ( MPI_Partition mpi_partition_in)
virtual

Reimplemented from mango::Solver.

Definition at line 26 of file optimize_least_squares.cpp.

◆ record_function_evaluation()

bool mango::Least_squares_solver::record_function_evaluation ( const double *  x,
double  f,
bool  failed 
)
virtual

Reimplemented from mango::Solver.

Definition at line 61 of file residual_function_wrapper.cpp.

◆ record_function_evaluation_pointer()

void mango::Least_squares_solver::record_function_evaluation_pointer ( const double *  x,
double *  f,
bool  failed 
)
virtual

Reimplemented from mango::Solver.

Definition at line 53 of file residual_function_wrapper.cpp.

◆ residual_function_wrapper()

void mango::Least_squares_solver::residual_function_wrapper ( const double *  x,
double *  f,
bool *  failed 
)

Definition at line 26 of file residual_function_wrapper.cpp.

◆ residuals_to_single_objective()

double mango::Least_squares_solver::residuals_to_single_objective ( double *  residuals_in)

Definition at line 183 of file optimize_least_squares.cpp.

Member Data Documentation

◆ best_residual_function

double* mango::Least_squares_solver::best_residual_function

Definition at line 42 of file Least_squares_solver.hpp.

◆ current_residuals

double* mango::Least_squares_solver::current_residuals

Definition at line 45 of file Least_squares_solver.hpp.

◆ least_squares_problem

Least_squares_problem* mango::Least_squares_solver::least_squares_problem

Definition at line 46 of file Least_squares_solver.hpp.

◆ N_terms

int mango::Least_squares_solver::N_terms

Definition at line 38 of file Least_squares_solver.hpp.

◆ print_residuals_in_output_file

bool mango::Least_squares_solver::print_residuals_in_output_file

Definition at line 44 of file Least_squares_solver.hpp.

◆ residual_function

vector_function_type mango::Least_squares_solver::residual_function

Definition at line 41 of file Least_squares_solver.hpp.

◆ residuals

double* mango::Least_squares_solver::residuals

Definition at line 43 of file Least_squares_solver.hpp.

◆ sigmas

double* mango::Least_squares_solver::sigmas

Definition at line 40 of file Least_squares_solver.hpp.

◆ targets

double* mango::Least_squares_solver::targets

Definition at line 39 of file Least_squares_solver.hpp.


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