Clear Filters
Clear Filters

Problem with sim command

5 views (last 30 days)
Santhosh Vasudevan
Santhosh Vasudevan on 23 May 2012
Hi All,
I get a error message while using sim command ( simulate dynamic system) inside Fitness function which i use for Genetic algorithm.
I know the error is Singularity problem. All i want to know is.. Is there any way by which i can overcome this error. ( that is i want ga to leave those input values and go further with its next search something like try catch go error handling block?)
Thank you in Advance.

Answers (2)

dimitris
dimitris on 23 May 2012
If i understood what you mean, your problem is that for some values you get an error. In this case you can set your constraints in a way that those values are not produced by the ga.

Santhosh Vasudevan
Santhosh Vasudevan on 23 May 2012
Thank you so much for replying dimitris
However I dont have mathematical equation to tell at which place those errors might occur. So i want ga to ignore the current input value and try next in the search.
And yes i think you have understood my problem.
Regards Santhosh

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!