{"id":537,"date":"2022-04-05T12:54:57","date_gmt":"2022-04-05T11:54:57","guid":{"rendered":"http:\/\/perf.unime.it\/magnet\/?page_id=537"},"modified":"2022-04-07T09:30:24","modified_gmt":"2022-04-07T08:30:24","slug":"introduction","status":"publish","type":"page","link":"http:\/\/perf.unime.it\/magnet\/?page_id=537","title":{"rendered":"Introduction"},"content":{"rendered":"\n<p>MAGNET 1.0 is provided with a new Application Program Interface (API). It has been designed mainly for better  accessing new solution numerical methods for evaluating a model; at the same time the naming has been changed to be compliant with the usual naming adopted in most library functions.<br>The Markovian agents interaction mechanism supported by MAGNET is the message passing based mechanism; other mechanisms are planned to be implemented in future releases.<\/p>\n\n\n\n<p>In the new 1.0.0 version, MAGNET uses the <a href=\"https:\/\/www.gnu.org\/software\/gsl\">Gnu Scientific Library<\/a> (GSL) for manipulating matrices and vectors; as such, MAGNET inherits data types about vectors and matrices, their operations, and error management from the GSL layer. Detailed documentation of GSL features can be found in the <a href=\"https:\/\/www.gnu.org\/software\/gsl\/#documentation\">official web site<\/a> and are not described here.<\/p>\n\n\n\n<p>When a new model is designed with MAGNET a C file is produced. At time compilation GSL library are linked to the executable, thus GSL must be installed in the system where the C source file is compiled; GSL libraries are not provided with MAGNET. Current version (ver 1.0) has been tested with GSL 2.7.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>API Functionalities<\/strong><\/h4>\n\n\n\n<p>Groups of routines identify functionalities in MAGNET. Functions and data types are defined in the header file <code>magnet.h<\/code><\/p>\n\n\n\n<p>The main functionalities provided are aimed to:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>create a new Markovian agent model<\/li><li>deploying agents over the space (the space is assumed <em>n<\/em>-dimensional) <\/li><li>defining and starting model analysis<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>Specific data types are defined to this purpose.<br><br><\/p>\n\n\n\n<div class=\"wp-block-buttons alignwide is-content-justification-right is-layout-flex wp-container-core-buttons-is-layout-1888cafc wp-block-buttons-is-layout-flex\">\n\n\n\n\n\n\n\n\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-white-color has-cyan-bluish-gray-background-color has-text-color has-background\" href=\"http:\/\/perf.unime.it\/magnet\/?page_id=24\" style=\"border-radius:25px\">next<\/a><\/div>\n\n\n\n\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MAGNET 1.0 is provided with a new Application Program Interface (API). It has been designed mainly for better accessing new solution numerical [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-537","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/perf.unime.it\/magnet\/index.php?rest_route=\/wp\/v2\/pages\/537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/perf.unime.it\/magnet\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/perf.unime.it\/magnet\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/perf.unime.it\/magnet\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/perf.unime.it\/magnet\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=537"}],"version-history":[{"count":30,"href":"http:\/\/perf.unime.it\/magnet\/index.php?rest_route=\/wp\/v2\/pages\/537\/revisions"}],"predecessor-version":[{"id":720,"href":"http:\/\/perf.unime.it\/magnet\/index.php?rest_route=\/wp\/v2\/pages\/537\/revisions\/720"}],"wp:attachment":[{"href":"http:\/\/perf.unime.it\/magnet\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}