Thread Subject: ga with integer variable

Subject: ga with integer variable

From: abdelmoumen

Date: 5 Jan, 2010 13:35:06

Message: 1 of 3

hi everybody

i have an integer variable x=1:0.5:3;
i want use the ga function with this variable, but the update method gives other values then i want.

is it possible to do this??

thanks

Subject: ga with integer variable

From: us

Date: 5 Jan, 2010 13:43:04

Message: 2 of 3

"abdelmoumen " <bmoumen27@yahoo.fr> wrote in message <hhvf6a$e90$1@fred.mathworks.com>...
> hi everybody
>
> i have an integer variable x=1:0.5:3;
> i want use the ga function with this variable, but the update method gives other values then i want.
>
> is it possible to do this??
>
> thanks

a hint:
- your X is NOT an integer variable...

us

Subject: ga with integer variable

From: Alan Weiss

Date: 5 Jan, 2010 16:35:11

Message: 3 of 3

us wrote:
> "abdelmoumen " <bmoumen27@yahoo.fr> wrote in message
> <hhvf6a$e90$1@fred.mathworks.com>...
>> hi everybody
>>
>> i have an integer variable x=1:0.5:3;
>> i want use the ga function with this variable, but the update method
>> gives other values then i want.
>>
>> is it possible to do this??
>>
>> thanks
>
> a hint:
> - your X is NOT an integer variable...
>
> us
Examine the following technical solution to see if it helps:
http://www.mathworks.com/support/solutions/en/data/1-10PDHC/

Alan Weiss
MATLAB mathematical toolbox documentation

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