CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 21

Threaded View

  1. #1
    Join Date
    Jul 2008
    Posts
    12

    Angry Complex numbers and equation optimization using GA

    Hi
    I am currently trying to write a genetic algorithm to find the zero off a very big equation.

    The problem is, is that it involves numerus complex numbers. Only at the very last stage in the program do I want to convert these complex numbers into real numbers.

    This is done so I can plot the real and imaginary parts of the eigenvalue pairs so I can find the point were they cross the axis.

    BUT I can not find away of of using complex numbers in c++. and to convert these equations into two X = Real(X) + i * imaginary(X). would literally take days of rearranging equations !!.

    Is there any way I can get around this problem?

    Also whilst im at it my idea was to then import the complex numbers Eign_1_1 -> Eign_2_2 into another program were I would then split them into Real(Eign_1_1) and imag(Eign_1_1) which the zero would be then found using an evolutionary algorithm.

    Any ideas on how to do this part?

    Thanks

    Craig
    Attached Files Attached Files
    Last edited by Nighteyes; July 17th, 2008 at 02:37 PM. Reason: spelling... esp my name :P

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured