Giter Club home page Giter Club logo

artificialbeecolony's Introduction

ThreeBeesBeta.c

// //Artificial Bee Colony Algorithm //Main Object: //Minimize the Objective Function //

// EMPLOYED BEE PHASE // FIRST: //A randomly chosen solution is used in producing a mutant solution of the solution i //and randomly selected solution must be different from the solution i -->sol(Param2Change)=Foods(i,Param2Change)+(Foods(i,Param2Change)-Foods(neighbour,Param2Change))*(rand-0.5)*2; //shifted onto the boundaries if generated parameter value is out of boundaries //evaluate new solution THEN: //a greedy selection is applied between the current solution i and its mutant //If the mutant solution is better than the current solution i, //replace the solution with the mutant and reset the trial counter of solution i //if the solution i can not be improved, increase its trial counter

// //Calculate Probabilities //A food source is chosen with the probability which is proportioal to its quality // for (i = 0;i<FoodNumber;i++) { NectarSource[i].rfitness = (0.9*(NectarSource[i].fitness / maxfit)) + 0.1; }

// //ONLOOKER BEE PHASE // //A food source is chosen with the probability which is proportioal to its quality NEXT SAME AS EMPLOYED

//--------------->MemorizeBestSource(); // //SCOUT BEE PHASE //determine the food sources whose trial counter exceeds the "limit" value //only one scout is allowed to occur in each cycle //

//determine the food sources whose trial counter exceeds the "limit" value

//--------------->MemorizeBestSource();

// COUT<<<<<<<<<<<<<<<<<<<<<<,OVER //

artificialbeecolony's People

Contributors

marcush1022 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.