GPLIB++
Functions
GradFunc.cpp File Reference
#include "GradFunc.h"
#include "NumUtil.h"
#include <iostream>

Go to the source code of this file.

Functions

gplib::rvec CalcGradient (GeneralObjective &Objective, const gplib::rvec &Model)
 Calculate the Gradient dO(m)/dm of the objective function Objective at the point given by Model, return as a real vector. More...
 
gplib::rmat CalcPartialDerivs (GeneralObjective &Objective, const gplib::rvec &Model, const gplib::rvec varfactor)
 Calculate the matrix of partial derivatives (or sensitivity matrix) dD/dm, for objective function Objective at point Model. More...
 

Function Documentation

gplib::rvec CalcGradient ( GeneralObjective &  Objective,
const gplib::rvec &  Model 
)

Calculate the Gradient dO(m)/dm of the objective function Objective at the point given by Model, return as a real vector.

Calculate the model gradient vector df(m)/dm.

Definition at line 6 of file GradFunc.cpp.

gplib::rmat CalcPartialDerivs ( GeneralObjective &  Objective,
const gplib::rvec &  Model,
const gplib::rvec  varfactor 
)

Calculate the matrix of partial derivatives (or sensitivity matrix) dD/dm, for objective function Objective at point Model.

Calculate the model sensitivity matrix.

Definition at line 42 of file GradFunc.cpp.