Is it possible to integrate heuristic algorithm with Anylogic?












0















I am planning to use ant colony optimization (ACO) to optimize the layout design of a building. I want to use Anylogic to derive the performance of a certain layout design in each iteration of the ACO algorithm and finally obtain the best solution.



Is it necessary to use the APIs of anylogic to realize this idea ?
If the answer is Yes, then , it is possible to change layout design in Anylogic in each iteration of ACO automatically through API?










share|improve this question



























    0















    I am planning to use ant colony optimization (ACO) to optimize the layout design of a building. I want to use Anylogic to derive the performance of a certain layout design in each iteration of the ACO algorithm and finally obtain the best solution.



    Is it necessary to use the APIs of anylogic to realize this idea ?
    If the answer is Yes, then , it is possible to change layout design in Anylogic in each iteration of ACO automatically through API?










    share|improve this question

























      0












      0








      0








      I am planning to use ant colony optimization (ACO) to optimize the layout design of a building. I want to use Anylogic to derive the performance of a certain layout design in each iteration of the ACO algorithm and finally obtain the best solution.



      Is it necessary to use the APIs of anylogic to realize this idea ?
      If the answer is Yes, then , it is possible to change layout design in Anylogic in each iteration of ACO automatically through API?










      share|improve this question














      I am planning to use ant colony optimization (ACO) to optimize the layout design of a building. I want to use Anylogic to derive the performance of a certain layout design in each iteration of the ACO algorithm and finally obtain the best solution.



      Is it necessary to use the APIs of anylogic to realize this idea ?
      If the answer is Yes, then , it is possible to change layout design in Anylogic in each iteration of ACO automatically through API?







      anylogic






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 25 '18 at 13:00









      Pan XiyuPan Xiyu

      1




      1
























          1 Answer
          1






          active

          oldest

          votes


















          1














          To use a customized optimization algorithm, the optimization experiment obviously doesn't work because it uses its own heuristics.



          You can do that only with a custom experiment. In this custom experiment you will generate the ACO and run the simulation as many times as needed and collect the results to feed the next iteration.



          I have done this with Artificial bee colony, cuckoo search and genetic algorithms to optimize systems, so it should be the same for you.



          Nevertheless since you are trying to optimize a layout, you will have to smart on how you define your objective function restrictions and search parameters... but that's off-topic






          share|improve this answer


























          • Thanks! May I ask how did you realize heuristic algorithm with Anylogic custom experiment in more details? Should I write code in a Java IDE with the APIs provided by Anylogic?

            – Pan Xiyu
            Nov 26 '18 at 5:09











          • I don't think I can, the amount of details is too much... but what I suggest is to start by checking the examples in the help documentation on how to create a custom experiment, and then you will have to learn a bunch of JAVA if you don't know already and then yes you will have to use AnyLogic's APIs depending on what your model uses...

            – Felipe
            Nov 26 '18 at 9:20











          • Thanks for helping !

            – Pan Xiyu
            Nov 26 '18 at 13:41











          • You would help if you explained how the layout is built. If its an image or autocad then you cant change it. But using the elements of anylogic yes you can

            – Felipe
            Nov 26 '18 at 14:52











          • My idea is to get the optimal spacial configuration of the functions in a building, for example, meeting room, reading room, office and so on. So, I think I have to change the coordinates of the functions automatically in each iteration of ACO, and the area of the functions must fit the structure of the building, the behavior pattern (destination) of people should change correspondingly according to the new layout, is this possible using Anylogic?

            – Pan Xiyu
            Nov 27 '18 at 3:19











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53467696%2fis-it-possible-to-integrate-heuristic-algorithm-with-anylogic%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          To use a customized optimization algorithm, the optimization experiment obviously doesn't work because it uses its own heuristics.



          You can do that only with a custom experiment. In this custom experiment you will generate the ACO and run the simulation as many times as needed and collect the results to feed the next iteration.



          I have done this with Artificial bee colony, cuckoo search and genetic algorithms to optimize systems, so it should be the same for you.



          Nevertheless since you are trying to optimize a layout, you will have to smart on how you define your objective function restrictions and search parameters... but that's off-topic






          share|improve this answer


























          • Thanks! May I ask how did you realize heuristic algorithm with Anylogic custom experiment in more details? Should I write code in a Java IDE with the APIs provided by Anylogic?

            – Pan Xiyu
            Nov 26 '18 at 5:09











          • I don't think I can, the amount of details is too much... but what I suggest is to start by checking the examples in the help documentation on how to create a custom experiment, and then you will have to learn a bunch of JAVA if you don't know already and then yes you will have to use AnyLogic's APIs depending on what your model uses...

            – Felipe
            Nov 26 '18 at 9:20











          • Thanks for helping !

            – Pan Xiyu
            Nov 26 '18 at 13:41











          • You would help if you explained how the layout is built. If its an image or autocad then you cant change it. But using the elements of anylogic yes you can

            – Felipe
            Nov 26 '18 at 14:52











          • My idea is to get the optimal spacial configuration of the functions in a building, for example, meeting room, reading room, office and so on. So, I think I have to change the coordinates of the functions automatically in each iteration of ACO, and the area of the functions must fit the structure of the building, the behavior pattern (destination) of people should change correspondingly according to the new layout, is this possible using Anylogic?

            – Pan Xiyu
            Nov 27 '18 at 3:19
















          1














          To use a customized optimization algorithm, the optimization experiment obviously doesn't work because it uses its own heuristics.



          You can do that only with a custom experiment. In this custom experiment you will generate the ACO and run the simulation as many times as needed and collect the results to feed the next iteration.



          I have done this with Artificial bee colony, cuckoo search and genetic algorithms to optimize systems, so it should be the same for you.



          Nevertheless since you are trying to optimize a layout, you will have to smart on how you define your objective function restrictions and search parameters... but that's off-topic






          share|improve this answer


























          • Thanks! May I ask how did you realize heuristic algorithm with Anylogic custom experiment in more details? Should I write code in a Java IDE with the APIs provided by Anylogic?

            – Pan Xiyu
            Nov 26 '18 at 5:09











          • I don't think I can, the amount of details is too much... but what I suggest is to start by checking the examples in the help documentation on how to create a custom experiment, and then you will have to learn a bunch of JAVA if you don't know already and then yes you will have to use AnyLogic's APIs depending on what your model uses...

            – Felipe
            Nov 26 '18 at 9:20











          • Thanks for helping !

            – Pan Xiyu
            Nov 26 '18 at 13:41











          • You would help if you explained how the layout is built. If its an image or autocad then you cant change it. But using the elements of anylogic yes you can

            – Felipe
            Nov 26 '18 at 14:52











          • My idea is to get the optimal spacial configuration of the functions in a building, for example, meeting room, reading room, office and so on. So, I think I have to change the coordinates of the functions automatically in each iteration of ACO, and the area of the functions must fit the structure of the building, the behavior pattern (destination) of people should change correspondingly according to the new layout, is this possible using Anylogic?

            – Pan Xiyu
            Nov 27 '18 at 3:19














          1












          1








          1







          To use a customized optimization algorithm, the optimization experiment obviously doesn't work because it uses its own heuristics.



          You can do that only with a custom experiment. In this custom experiment you will generate the ACO and run the simulation as many times as needed and collect the results to feed the next iteration.



          I have done this with Artificial bee colony, cuckoo search and genetic algorithms to optimize systems, so it should be the same for you.



          Nevertheless since you are trying to optimize a layout, you will have to smart on how you define your objective function restrictions and search parameters... but that's off-topic






          share|improve this answer















          To use a customized optimization algorithm, the optimization experiment obviously doesn't work because it uses its own heuristics.



          You can do that only with a custom experiment. In this custom experiment you will generate the ACO and run the simulation as many times as needed and collect the results to feed the next iteration.



          I have done this with Artificial bee colony, cuckoo search and genetic algorithms to optimize systems, so it should be the same for you.



          Nevertheless since you are trying to optimize a layout, you will have to smart on how you define your objective function restrictions and search parameters... but that's off-topic







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 25 '18 at 18:36

























          answered Nov 25 '18 at 18:16









          FelipeFelipe

          2,0752722




          2,0752722













          • Thanks! May I ask how did you realize heuristic algorithm with Anylogic custom experiment in more details? Should I write code in a Java IDE with the APIs provided by Anylogic?

            – Pan Xiyu
            Nov 26 '18 at 5:09











          • I don't think I can, the amount of details is too much... but what I suggest is to start by checking the examples in the help documentation on how to create a custom experiment, and then you will have to learn a bunch of JAVA if you don't know already and then yes you will have to use AnyLogic's APIs depending on what your model uses...

            – Felipe
            Nov 26 '18 at 9:20











          • Thanks for helping !

            – Pan Xiyu
            Nov 26 '18 at 13:41











          • You would help if you explained how the layout is built. If its an image or autocad then you cant change it. But using the elements of anylogic yes you can

            – Felipe
            Nov 26 '18 at 14:52











          • My idea is to get the optimal spacial configuration of the functions in a building, for example, meeting room, reading room, office and so on. So, I think I have to change the coordinates of the functions automatically in each iteration of ACO, and the area of the functions must fit the structure of the building, the behavior pattern (destination) of people should change correspondingly according to the new layout, is this possible using Anylogic?

            – Pan Xiyu
            Nov 27 '18 at 3:19



















          • Thanks! May I ask how did you realize heuristic algorithm with Anylogic custom experiment in more details? Should I write code in a Java IDE with the APIs provided by Anylogic?

            – Pan Xiyu
            Nov 26 '18 at 5:09











          • I don't think I can, the amount of details is too much... but what I suggest is to start by checking the examples in the help documentation on how to create a custom experiment, and then you will have to learn a bunch of JAVA if you don't know already and then yes you will have to use AnyLogic's APIs depending on what your model uses...

            – Felipe
            Nov 26 '18 at 9:20











          • Thanks for helping !

            – Pan Xiyu
            Nov 26 '18 at 13:41











          • You would help if you explained how the layout is built. If its an image or autocad then you cant change it. But using the elements of anylogic yes you can

            – Felipe
            Nov 26 '18 at 14:52











          • My idea is to get the optimal spacial configuration of the functions in a building, for example, meeting room, reading room, office and so on. So, I think I have to change the coordinates of the functions automatically in each iteration of ACO, and the area of the functions must fit the structure of the building, the behavior pattern (destination) of people should change correspondingly according to the new layout, is this possible using Anylogic?

            – Pan Xiyu
            Nov 27 '18 at 3:19

















          Thanks! May I ask how did you realize heuristic algorithm with Anylogic custom experiment in more details? Should I write code in a Java IDE with the APIs provided by Anylogic?

          – Pan Xiyu
          Nov 26 '18 at 5:09





          Thanks! May I ask how did you realize heuristic algorithm with Anylogic custom experiment in more details? Should I write code in a Java IDE with the APIs provided by Anylogic?

          – Pan Xiyu
          Nov 26 '18 at 5:09













          I don't think I can, the amount of details is too much... but what I suggest is to start by checking the examples in the help documentation on how to create a custom experiment, and then you will have to learn a bunch of JAVA if you don't know already and then yes you will have to use AnyLogic's APIs depending on what your model uses...

          – Felipe
          Nov 26 '18 at 9:20





          I don't think I can, the amount of details is too much... but what I suggest is to start by checking the examples in the help documentation on how to create a custom experiment, and then you will have to learn a bunch of JAVA if you don't know already and then yes you will have to use AnyLogic's APIs depending on what your model uses...

          – Felipe
          Nov 26 '18 at 9:20













          Thanks for helping !

          – Pan Xiyu
          Nov 26 '18 at 13:41





          Thanks for helping !

          – Pan Xiyu
          Nov 26 '18 at 13:41













          You would help if you explained how the layout is built. If its an image or autocad then you cant change it. But using the elements of anylogic yes you can

          – Felipe
          Nov 26 '18 at 14:52





          You would help if you explained how the layout is built. If its an image or autocad then you cant change it. But using the elements of anylogic yes you can

          – Felipe
          Nov 26 '18 at 14:52













          My idea is to get the optimal spacial configuration of the functions in a building, for example, meeting room, reading room, office and so on. So, I think I have to change the coordinates of the functions automatically in each iteration of ACO, and the area of the functions must fit the structure of the building, the behavior pattern (destination) of people should change correspondingly according to the new layout, is this possible using Anylogic?

          – Pan Xiyu
          Nov 27 '18 at 3:19





          My idea is to get the optimal spacial configuration of the functions in a building, for example, meeting room, reading room, office and so on. So, I think I have to change the coordinates of the functions automatically in each iteration of ACO, and the area of the functions must fit the structure of the building, the behavior pattern (destination) of people should change correspondingly according to the new layout, is this possible using Anylogic?

          – Pan Xiyu
          Nov 27 '18 at 3:19




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53467696%2fis-it-possible-to-integrate-heuristic-algorithm-with-anylogic%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          To store a contact into the json file from server.js file using a class in NodeJS

          Redirect URL with Chrome Remote Debugging Android Devices

          Dieringhausen