#if !defined(AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_) #define AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CGAQueen { public: CGAQueen(int nPopulation,int nIteration,float Mutation,int mChBoard) virtual ~CGAQueen() void Clear() // to clear chess board with 0 value void InitialPopulation() // to create the first and initial randompopulation void FillArea(int index) // to fill chess board with desired chromosome int CostFunc(int index) // determine the cost of matrix[index][index] void PopulationSort() // to sort population from the best to the worst void GenerateCrossOverMatrix() // a way to create children from parent is CcrossOver void Mating() // to create children from parents void Ap
資源簡(jiǎn)介:#if !defined(AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_) #define AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CGAQueen { pu...
上傳時(shí)間: 2015-12-27
上傳用戶:wuyuying
資源簡(jiǎn)介:/* ********************************************************************************************************* * ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? uC/TCP-IP V2 * ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ...
上傳時(shí)間: 2015-11-22
上傳用戶:the same kong
資源簡(jiǎn)介:Predefined Style options define the style by setting several other options. If other options are also used, the placement of the predefined style option in the command line is important. If the predefined style option is placed first, the o...
上傳時(shí)間: 2014-12-21
上傳用戶:zhangliming420
資源簡(jiǎn)介:C++完美演繹 經(jīng)典算法 如 /* 頭文件:my_Include.h */ #include <stdio.h> /* 展開C語(yǔ)言的內(nèi)建函數(shù)指令 */ #define PI 3.1415926 /* 宏常量,在稍后章節(jié)再詳解 */ #define circle(radius) (PI*radius*radius) /* 宏函數(shù),圓的面積 */ /* 將比較數(shù)值大小的...
上傳時(shí)間: 2014-01-17
上傳用戶:epson850
資源簡(jiǎn)介:#include "define.h" #include <stdio.h> #include <string.h> #include <ctype.h> #include <malloc.h> FILE *fp /*////////////////////////////////////////////////////////////////////////////// This is a pretreatment. /////////////////...
上傳時(shí)間: 2015-07-16
上傳用戶:ynsnjs
資源簡(jiǎn)介:his project was built and tested with WinAVR-20060125. Make sure the MCU target define in the Makefiles corresponds to the AVR you are using!! To build the code, just install WinAVR and run "make" from the console in echomaster and ...
上傳時(shí)間: 2014-10-10
上傳用戶:yan2267246
資源簡(jiǎn)介:% COMPDIR Computes a search direction in a subspace defined by Z. % Helper function for NLCONST. % Returns Newton direction if possible. % Returns random direction if gradient is small. % Otherwise, returns steepest descent direct...
上傳時(shí)間: 2014-01-24
上傳用戶:Thuan
資源簡(jiǎn)介:Refer to the UML diagram above and implement the Course class. After you define the Course class, you must create a Course object with the following details: Programming I, WXES1114, taught by SMT. Besides, your program must test all ...
上傳時(shí)間: 2014-01-26
上傳用戶:cx111111
資源簡(jiǎn)介:% Train a two layer neural network with the Levenberg-Marquardt % method. % % If desired, it is possible to use regularization by % weight decay. Also pruned (ie. not fully connected) networks can % be trained. % % Given a se...
上傳時(shí)間: 2016-12-27
上傳用戶:jcljkh
資源簡(jiǎn)介:1. This BSP can support 2443EVT0 board. If you want to use EVT0 BSP, set followings. In smdk2443\smdk2443.bat file set BSP_EVT1=1 -> set BSP_EVT1= In smdk2443\src\inc\bsp_cfg.h file #define EVT1 -> #def...
上傳時(shí)間: 2014-01-27
上傳用戶:fnhhs
資源簡(jiǎn)介:TLC2543是TI公司的12位串行模數(shù)轉(zhuǎn)換器,使用開關(guān)電容逐次逼近技術(shù)完成A/D轉(zhuǎn)換過(guò)程。由于是串行輸入結(jié)構(gòu),能夠節(jié)省51系列單片機(jī)I/O資源;且價(jià)格適中,分辨率較高,因此在儀器儀表中有較為廣泛的應(yīng)用。 TLC2543的特點(diǎn) (1)12位分辯率A/D轉(zhuǎn)換器; (2)在...
上傳時(shí)間: 2013-11-19
上傳用戶:shen1230
資源簡(jiǎn)介:假定從8位AD中讀取數(shù)據(jù)(如果是更高位的AD可定義數(shù)據(jù)類型為int),子程序?yàn)間et_ad(); 1、限幅濾波法(又稱程序判斷濾波法) ??? A、方法: ??????? 根據(jù)經(jīng)驗(yàn)判斷,確定兩次采樣允許的最大偏差值(設(shè)為A) ??????? 每次檢測(cè)到新值時(shí)判斷:...
上傳時(shí)間: 2014-12-26
上傳用戶:nanshan
資源簡(jiǎn)介:AT89C2051驅(qū)動(dòng)步進(jìn)電機(jī)的電路和源碼:AT89C2051驅(qū)動(dòng)步進(jìn)電機(jī)的電路和源碼 程序:stepper.c stepper.hex/* * STEPPER.C * sweeping stepper's rotor cw and cww 400 steps * Copyright (c) 1999 by W.Sirichote */#i nclude c:\mc5151io.h /* include i/o heade...
上傳時(shí)間: 2013-11-21
上傳用戶:boyaboy
資源簡(jiǎn)介:All inputs of the C16x family have Schmitt-Trigger input characteristics. These Schmitt-Triggers are intended to always provide proper internal low and high levels, even if anundefined voltage level (between TTL-VIL and TTL-VIH) is external...
上傳時(shí)間: 2013-10-23
上傳用戶:copu
資源簡(jiǎn)介:All inputs of the C16x family have Schmitt-Trigger input characteristics. These Schmitt-Triggers are intended to always provide proper internal low and high levels, even if anundefined voltage level (between TTL-VIL and TTL-VIH) is external...
上傳時(shí)間: 2014-04-02
上傳用戶:han_zh
資源簡(jiǎn)介:有兩種方式可以讓設(shè)備和應(yīng)用程序之間聯(lián)系:1.?通過(guò)為設(shè)備創(chuàng)建的一個(gè)符號(hào)鏈;2.?通過(guò)輸出到一個(gè)接口WDM驅(qū)動(dòng)程序建議使用輸出到一個(gè)接口而不推薦使用創(chuàng)建符號(hào)鏈的方法。這個(gè)接口保證PDO的安全,也保證安全地創(chuàng)建一個(gè)惟一的、獨(dú)立于語(yǔ)言的訪問(wèn)設(shè)備的方法。一個(gè)...
上傳時(shí)間: 2013-10-17
上傳用戶:gai928943
資源簡(jiǎn)介:串行編程器源程序(Keil C語(yǔ)言)//FID=01:AT89C2051系列編程器//實(shí)現(xiàn)編程的讀,寫,擦等細(xì)節(jié)//AT89C2051的特殊處:給XTAL一個(gè)脈沖,地址計(jì)數(shù)加1;P1的引腳排列與AT89C51相反,需要用函數(shù)轉(zhuǎn)換#include <e51pro.h> #define C2051_P3_7?P1_0#define C2051_P1?P0//...
上傳時(shí)間: 2013-11-12
上傳用戶:gut1234567
資源簡(jiǎn)介:微型打印機(jī)的C語(yǔ)言源程序:微型打印機(jī)的C51源程序#define uchar unsigned char#define uint unsigned int#include <reg52.h>#include <stdio.h>#include <absacc.h>#include <math.h>#include <string.h>#include <ctype.h>#include <stdlib.h>#define PIN XB...
上傳時(shí)間: 2013-10-18
上傳用戶:hasan2015
資源簡(jiǎn)介:16 16點(diǎn)陣顯示漢字原理及顯示程序 #include "config.h" #define??????????????? DOTLED_LINE_PORT??????? PORTB #define??????????????? DOTLED_LINE_DDR??????????????? DDRB #define???????...
上傳時(shí)間: 2013-11-18
上傳用戶:mnacyf
資源簡(jiǎn)介:1 /**————————————————————2 〖說(shuō)明〗I2C總線驅(qū)動(dòng)程序(用兩個(gè)普通IO模擬I2C總線)3 包括100Khz(T=10us)的標(biāo)準(zhǔn)模式(慢速模式)選擇,4 和400Khz(T=2.5us)的快速模式選擇,5 默認(rèn)11.0592Mhz的晶振。6 〖文件〗PCF8563T.C ﹫2001/11/2 77 〖作...
上傳時(shí)間: 2014-04-11
上傳用戶:xg262122
資源簡(jiǎn)介:10種軟件濾波方法的示例程序 假定從8位AD中讀取數(shù)據(jù)(如果是更高位的AD可定義數(shù)據(jù)類型為int),子程序?yàn)間et_ad(); 1、限副濾波 /*??A值可根據(jù)實(shí)際情況調(diào)整 ????value為有效值,new_value為當(dāng)前采樣值?? ????濾波程序返回有效的實(shí)際值??*/ #defin...
上傳時(shí)間: 2013-11-11
上傳用戶:gxf2016
資源簡(jiǎn)介:MMI spec Key sequence define
上傳時(shí)間: 2013-12-15
上傳用戶:lacsx
資源簡(jiǎn)介:a Java program that reads a file containing instructions written in self-defined file (TPL in this case), and executes those instructions. This program should take the name of the TPL file as a command line parameter, and write its output t...
上傳時(shí)間: 2015-01-11
上傳用戶:曹云鵬
資源簡(jiǎn)介:This code will be useful to you if you have tried using ADOCE, but never got anything to work. It is not meant to be integrated into any application, but rather it should be used for demonstrative purposes. It clearly shows the basics of ho...
上傳時(shí)間: 2014-01-13
上傳用戶:bcjtao
資源簡(jiǎn)介:Library of C functions that allows a program to use WinSock 2 functionality if it is available or fall back to WinSock 1.1 if it isn t.
上傳時(shí)間: 2015-01-18
上傳用戶:LIKE
資源簡(jiǎn)介:header define of EZ-LIB
上傳時(shí)間: 2015-02-09
上傳用戶:manlian
資源簡(jiǎn)介:不知道啊!25 result love(boy, girl) {- if ( boy.有房() and boy .有車() ) {- boy.set(nothing) return girl.嫁給(boy)
上傳時(shí)間: 2014-06-27
上傳用戶:aix008
資源簡(jiǎn)介:if (pfile() == 0) unlink(inname) else fprintf(stderr, "%s: I/O Error -- File unchanged\n", inname) fclose(outfile) fclose(infile) } exit(0)
上傳時(shí)間: 2015-03-12
上傳用戶:l254587896
資源簡(jiǎn)介:4. If a modified source code is distributed, the original unmodified -- source code must also be INCLUDED (or a link to the Free IP web -- site). In the modified source code there must be clear -- identification of the modified version.
上傳時(shí)間: 2013-12-14
上傳用戶:qq1604324866
資源簡(jiǎn)介:先序遍歷非遞歸算法 #define maxsize 100 typedef struct { Bitree Elem[maxsize] int top }SqStack void PreOrderUnrec(Bitree t) { SqStack s StackInit(s) p=t while (p!=null !StackEmpty(s
上傳時(shí)間: 2014-01-26
上傳用戶:hewenzhi