Thread Subject: S-function and GA solver

Subject: S-function and GA solver

From: Chong Jin Yang

Date: 2 Mar, 2009 03:46:01

Message: 1 of 2

Hello,

I'm just a student currently working on my control systems project. I'm quite new to Matlab so i appreciate any help and opinions.

I have designed a waste water treatment plant (WWTP) system in Simulink. As the system runs, I need to get the data from Simulink and use the Genetic Algorithm (GA) solver to produce optimised control inputs. Can the S-function call the genetic algorithm solver? Or must I export the Simulink data into a workspace and from there it is accessed by a separate M-file code which then calls the GA solver.

Regards,
Chong

Subject: S-function and GA solver

From: amaren

Date: 3 Mar, 2009 06:47:31

Message: 2 of 2

On Mar 2, 8:46=A0am, "Chong Jin Yang" <chongjiny...@yahoo.com> wrote:
> Hello,
>
> I'm just a student currently working on my control systems project. I'm q=
uite new to Matlab so i appreciate any help and opinions.
>
> I have designed a waste water treatment plant (WWTP) system in Simulink. =
As the system runs, I need to get the data from Simulink and use the Geneti=
c Algorithm (GA) solver to produce optimised control inputs. Can the S-func=
tion call the genetic algorithm solver? Or must I export the Simulink data =
into a workspace and from there it is accessed by a separate M-file code wh=
ich then calls the GA solver.
>
> Regards,
> Chong

u can call simulink the c code or M code of GA solver?
there r quite number of EXAMPLES ON HOW TO WRITE S- functions

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com