|
James Allison <james.allison@mathworks.com> wrote in message <hnbbk9$di0$1@fred.mathworks.com>...
> The sim command (network/sim) may help you in getting the neural network
> model in the right format to use with the genetic algorithm. For example:
>
> function f = fitnessfcn(x)
>
> % define/load network parameters here, or pass them in as parameters to
> fitnessfcn
>
> f = sim(net,x,xi,Ai,T)
>
> You can then use ga to solve the optimization problem (doc ga). If there
> are nonlinear constraints you will also need to define a function that
> evaluates those. Using a genetic algorithm successfully normally
> requires some tuning of the algorithm parameters (such as the number of
> generations, etc.).
>
> If you need further help after reading the documentation and examples
> for network/sim and ga, you can contact technical support
> (www.mathworks.com -> support -> contact support).
>
> -James
>
> kallaks kklla wrote:
> > I want optimize processing parameter of injection molding using genetic
> > algorithm. but I don't how to use objective function from neural network
> > in genetic algorithm to get optimize point. can someone help me.
my input in matrix form, and I name it as testing, so, the fitness function become, "f=sim(net, testing)" right???
|