C++ Neural Networks and Fuzzy Logic: Preface


Header File for C++ Program for Kohonen’s Approach



Download 1,14 Mb.
Pdf ko'rish
bet360/443
Sana29.12.2021
Hajmi1,14 Mb.
#77367
1   ...   356   357   358   359   360   361   362   363   ...   443
Bog'liq
C neural networks and fuzzy logic

Header File for C++ Program for Kohonen’s Approach

Listing 15.3 contains the header file for this program, and listing 15.4 contains the corresponding source file:



Listing 15.3 Header file for C++ program for Kohonen’s approach

//tsp_kohn.h V.Rao, H.Rao

#include

C++ Neural Networks and Fuzzy Logic:Preface

Other Approaches to Solve the Traveling Salesperson Problem

366



#include

#define MXSIZ 10

#define pi 3.141592654

class city_neuron

       {

       protected:

              double x,y;

              int mark,order,count;

              double weight[2];

              friend class tspnetwork;

       public:

              city_neuron(){};

              void get_neuron(double,double);

       };

class tspnetwork

       {


       protected:

              int chosen_city,order[MXSIZ];

              double gain,input[MXSIZ][2];

              int citycount,index,d[MXSIZ][MXSIZ];

              double gain_factor,diffsq[MXSIZ];

              city_neuron (cnrn)[MXSIZ];

       public:

              tspnetwork(int,double,double,double,double*,double*);

              void get_input(double*,double*);

              void get_d();

              void find_tour();

              void associate_city();

              void modify_weights(int,int);

              double wtchange(int,int,double,double);

              void print_d();

              void print_input();

              void print_weights();

              void print_tour();

       };


Download 1,14 Mb.

Do'stlaringiz bilan baham:
1   ...   356   357   358   359   360   361   362   363   ...   443




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish