# TaoGAAppSetInitialSolutionVec

Sets the vector representing the variables and an initial guess.

## Synopsis

    #include "taoapp_ga.h"
    int TaoGAAppSetInitialSolutionVec(TAO_GA_APPLICATION gaapp, GAVec xx)

Collective on TAO_GA_APPLICATION

## Input Parameters

| taoapp | - the TAO_GA_APPLICATION context
| xx | - variable vector that stores the solution

Note: This vector will be used by the solver, so do not use it for other purposes. The user should destroy this vector after solving the application.

Note: If the user is unaware of a decent initial solution, the vector should be set to zero.

Note: The TAO solvers will not use the contents of this GAVec until the TaoSolveGAApplication() is called. Therefore the user may compute an initial solution in this vector after this routine -- but before TaoSolveGAApplication().

## See Also

TaoAppGetSolutionVec(), TaoAppSetObjectiveRoutine()

Level:beginner
Location:src/external/globalarraytao/taoapp_ga.c
TAO Solver Index
Table of Contents