Click to See Complete Forum and Search --> : VB - GA - Matlab


pocketmoney
December 3rd, 2004, 04:40 AM
Hi all,

I just wonder to know whether VB .Net can communicate with genetic algorithm (GA) and the toolboxs in matlab. If so, is there any suggestions???

Thx. ^^

Best,
pm

------------------------
No one can make you feel inferior without your permission!!!

AnotherAlias
December 3rd, 2004, 07:16 AM
Easiest way..... COM Interop.

pocketmoney
December 3rd, 2004, 11:20 AM
Easiest way..... COM Interop.

Thanks AnotherAlias. I have add a reference called EvWatcher32 (a GA tool). How can i use it? Could you provide me some sample codes?

Besides, how to add a interop to communicate the fuzzy toolbox in Matlab???

Many thanks!!!

AnotherAlias
December 3rd, 2004, 11:26 AM
It depends on "wich way you want to go"...

If you want to write .NET code that can be used in those environments, then you create a ClasLibrary assembly and expose the classes as ComVisible.

If you want to access MatLim or GA code within your .NET code, then you create a wrapper (TlbImp.exe is the easist way), then you can treat them like .NET assemblies (well almost ;) )