Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Optimization with Genetic algorithm

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-17-2012
12:09 AM

02-17-2012
12:09 AM

Optimization with Genetic algorithm

Optimization with Genetic algorithm.

Try pls Mathcad Server with your test function f(x, y) - http://twtmas.mpei.ac.ru/mas/Worksheets/Minimum.mcd

and see the picture:

PS I would like to create a video but sorry - no time.

Labels:

19 REPLIES 19

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-20-2012
04:37 AM

02-20-2012
04:37 AM

Re: Optimization with Genetic algorithm

One more solution with genetic algorithm:

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-07-2019
03:46 AM

02-07-2019
03:46 AM

Re: Optimization with Genetic algorithm

Hello!

Does this GA works for a 5-variable function?

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-12-2019
02:57 PM

02-12-2019
02:57 PM

Re: Optimization with Genetic algorithm

yes

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-13-2019
12:17 PM

02-13-2019
12:17 PM

Re: Optimization with Genetic algorithm

I guess the question (implicitely) also was if you would be so kind and share the worksheet 🙂

For most of us the Mathcad Application Server pages aren't that helpful.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-13-2019
12:54 PM

02-13-2019
12:54 PM

Re: Optimization with Genetic algorithm

Sorry!

See please the attach!

Tell please us is all ok for your function!

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-13-2019
07:33 PM

02-13-2019
07:33 PM

Re: Optimization with Genetic algorithm

We will see if Murarz will come back and is able to use and adopt your sheet to minimize his 5-argument function.

See this thread

for the function he has in mind.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-14-2019
01:20 PM

02-14-2019
01:20 PM

Re: Optimization with Genetic algorithm

Hello!!

I am back ! I will try for sure, thank you 🙂

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-14-2019
01:54 PM

02-14-2019
01:54 PM

Re: Optimization with Genetic algorithm

Thanks!

I am waiting your results!

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-14-2019
02:19 PM

02-14-2019
02:19 PM

Re: Optimization with Genetic algorithm

Just one more question, xb, xe and yb, ye is the range (in this case for two variables) where the function looks for the minimum ?

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-14-2019
02:49 PM

02-14-2019
02:49 PM

Re: Optimization with Genetic algorithm

xb, xe, yb and ye are for 2D problem.

There is a trick for 5D problem too!

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-14-2019
04:23 PM

02-14-2019
04:23 PM

Re: Optimization with Genetic algorithm

I know they are for 2D problem, just wanted to make sure what they stand for. I don't like tricks 😛

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-16-2019
01:48 PM

02-16-2019
01:48 PM

Re: Optimization with Genetic algorithm

Could you give me some clue? 🙂 I've been struggling with this and have no slightest idea where to even look for.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-18-2019
01:07 AM

02-18-2019
01:07 AM

Re: Optimization with Genetic algorithm

One method of the choking the minimum of the function of more than 2 argument:

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-18-2019
01:17 PM

02-18-2019
01:17 PM

Re: Optimization with Genetic algorithm

From the figure I see you use minimize function. Does the same applies to the MGA ? Would be a possibility to send the file in xmcd ?

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-20-2019
03:08 AM

02-20-2019
03:08 AM

Re: Optimization with Genetic algorithm

@Murarz wrote:

Sorry, I have not the xmcd-file. But you can create it yourself using the picture.

I can create it myself too - but...

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

03-08-2019
06:41 PM

03-08-2019
06:41 PM

Re: Optimization with Genetic algorithm

Thank you 🙂 But can I this trick of yours apply to the 5-variable function for the genetic algorithm? I mean how should I specify xx,xn in this case since as you said it is for a 2D problem? To be honest I don't understand what you have achieved with this.

Was it about fixing 3 variables from the minimize function, and looking for other two from the genetic algorithm ?

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-09-2019
03:42 AM

04-09-2019
03:42 AM

Re: Optimization with Genetic algorithm

Can I get any piece of advice how to convert this genetic alg for a 5 variable function ? I am still dealing with this but with no sucess. 😞

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-09-2019
08:06 AM

04-09-2019
08:06 AM

Re: Optimization with Genetic algorithm

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

04-13-2019
01:36 PM

04-13-2019
01:36 PM

Re: Optimization with Genetic algorithm

Thanks for the reply. But I still can't connect the dots. I assume that it relates to the previous post with the guessed values and 2D plots while using the minimize function. But my point the whole time is in using this 5D function for the Genethic algorithm where there are many local minima. Will it work in this case too ? I mean how should I specify xe and xb ?