#include "taoapp_ga.h" int TaoGAAppSetObjectiveRoutine(TAO_GA_APPLICATION gaapp, int (*func)(TAO_GA_APPLICATION,GAVec,double*,void*), void *ctx)Collective on TAO_GA_APPLICATION
gaapp | - the TAO_GA_APPLICATION context | |
func | - routine for evaluating the function | |
ctx | - optional user-defined context for private data for the function evaluation routine (may be TAO_NULL) |
func (TAO_GA_APPLICATION tao,GAVec x,double *f,void *ctx);
tao | - TAO_GA_APPLICATION application context | |
x | - input vector | |
f | - function value | |
ctx | - optional user-defined context |
Using a single routine to compute the function and gradient, as specified via TaoGAAppSetObjectiveAndGradientRoutine(), may enable better performance for applications in which many of the function and gradient computations are identical.
Level:beginner
Location:src/external/globalarraytao/taoapp_ga.c
TAO Solver Index
Table of Contents