{"id":671,"date":"2016-08-01T15:36:48","date_gmt":"2016-08-01T17:36:48","guid":{"rendered":"http:\/\/augustobaffa.pro.br\/site\/?page_id=671"},"modified":"2020-08-28T15:42:47","modified_gmt":"2020-08-28T18:42:47","slug":"multi-agent-fixed-cost-transportation-game","status":"publish","type":"page","link":"https:\/\/augustobaffa.pro.br\/site\/desafios-online\/multi-agent-fixed-cost-transportation-game\/","title":{"rendered":"Multi Agent Fixed Cost Transportation Game"},"content":{"rendered":"<p><a href=\"https:\/\/augustobaffa.pro.br\/site\/category\/games\/fctp\/\">Resultados de Partidas Realizadas<\/a><\/p>\n<h2>Problema<\/h2>\n<p>O problema do Fixed Cost Transportation consiste em um grafo bipartido no qual deseja-se transmitir um conjunto de produtos de um mesmo tipo atrav\u00e9s das arestas, de forma a minimizar o custo e atender a demanda. O custo \u00e9 definido pelo pre\u00e7o vari\u00e1vel cobrado por produto transportado somado ao custo fixo pago por usar determinada aresta. A formula\u00e7\u00e3o matem\u00e1tica \u00e9 dada por:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"674\" data-permalink=\"https:\/\/augustobaffa.pro.br\/site\/desafios-online\/multi-agent-fixed-cost-transportation-game\/fctp_img2\/#main\" data-orig-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img2.jpg\" data-orig-size=\"307,295\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"fctp_img2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img2.jpg\" class=\"aligncenter size-full wp-image-674\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img2.jpg\" alt=\"fctp_img2\" width=\"307\" height=\"295\" srcset=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img2.jpg 307w, https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img2-300x288.jpg 300w\" sizes=\"auto, (max-width: 307px) 100vw, 307px\" \/><\/p>\n<p><center>Onde: <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-51e73a1b6bcca0408b029811f92bb96a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#123;&#105;&#106;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"21\" style=\"vertical-align: -6px;\"\/> &#8211; fluxo, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-d84da72d4df82da40179930c5190ca71_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#99;&#95;&#123;&#105;&#106;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"19\" style=\"vertical-align: -6px;\"\/> &#8211; custo vari\u00e1vel, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-a326e13c987f761e924046f3ccdf3be1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;&#95;&#123;&#105;&#106;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"22\" style=\"vertical-align: -6px;\"\/> &#8211; custo fixo (atualizar)<\/center><\/p>\n<h2>Jogo<\/h2>\n<p>No jogo o problema original \u00e9 transformado para um problema de transporte comum <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-f9ed275b0bf1633b7ee83b78fcc28273_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#84;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: 0px;\"\/> mas com o custo vari\u00e1vel multiplicado por um fator constante <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-1b7260cedb8925b9e210bbeb6b9aef41_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#32;&#62;&#32;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"41\" style=\"vertical-align: -2px;\"\/> (e.g. <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-e773269b5cb89076308bb61b7d36ab04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#32;&#61;&#32;&#50;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"51\" style=\"vertical-align: 0px;\"\/>)<\/p>\n<p>O jogo consiste de dois rounds onde cada jogador pode fazer ofertas de custo vari\u00e1vel para um subconjunto de arestas, o payoff de cada jogador \u00e9 a soma do lucro obtido nos dois rounds como especificado a seguir<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"675\" data-permalink=\"https:\/\/augustobaffa.pro.br\/site\/desafios-online\/multi-agent-fixed-cost-transportation-game\/fctp_img3\/#main\" data-orig-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img3.jpg\" data-orig-size=\"844,192\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"fctp_img3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img3.jpg\" class=\"aligncenter size-medium_large wp-image-675\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img3-768x175.jpg\" alt=\"fctp_img3\" width=\"720\" height=\"164\" srcset=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img3-768x175.jpg 768w, https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img3-300x68.jpg 300w, https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img3.jpg 844w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<h2>Round 1<\/h2>\n<p>Em cada round, cada jogador deve oferecer um valor de custo vari\u00e1vel <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-41d4a89db3722950dc94351832a1bcd9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#95;&#123;&#105;&#106;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"20\" style=\"vertical-align: -6px;\"\/> entre <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-d84da72d4df82da40179930c5190ca71_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#99;&#95;&#123;&#105;&#106;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"19\" style=\"vertical-align: -6px;\"\/> e <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-f5cffe8014cd58564820895f33427f8b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#99;&#95;&#123;&#105;&#106;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"50\" style=\"vertical-align: -6px;\"\/> para um subconjunto de arestas. Se esse jogador apostar sozinho em alguma aresta o valor dela \u00e9 substitu\u00eddo no grafo do problema <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-f9ed275b0bf1633b7ee83b78fcc28273_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#84;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: 0px;\"\/> e ele \u201cganha\u201d:<\/p>\n<p><center><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-79107a19aa5569f264789dc045faec5a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#95;&#123;&#105;&#106;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"33\" style=\"vertical-align: -6px;\"\/> fluxo na aresta <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-2b20575ce9b01b18d55fb568cfa1db69_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#105;&#44;&#106;&#41;&#32;&#45;&#32;&#70;&#95;&#123;&#105;&#106;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"79\" style=\"vertical-align: -6px;\"\/><\/center><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"676\" data-permalink=\"https:\/\/augustobaffa.pro.br\/site\/desafios-online\/multi-agent-fixed-cost-transportation-game\/fctp_img4\/#main\" data-orig-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4.jpg\" data-orig-size=\"844,192\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"fctp_img4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4.jpg\" class=\"aligncenter size-medium_large wp-image-676\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4-768x175.jpg\" alt=\"fctp_img4\" width=\"720\" height=\"164\" srcset=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4-768x175.jpg 768w, https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4-300x68.jpg 300w, https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4.jpg 844w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>Se mais de um jogador apostar na mesma aresta todos pagam uma por\u00e7\u00e3o igual do custo fixo <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-a326e13c987f761e924046f3ccdf3be1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;&#95;&#123;&#105;&#106;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"22\" style=\"vertical-align: -6px;\"\/> mas apenas aquele com a menor oferta ganha o lucro:<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 20px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-705f5f1b0e3d66d0118e22673ab12689_l3.png\" height=\"20\" width=\"134\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#36;&#50;&#99;&#95;&#123;&#105;&#106;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#120;&#95;&#123;&#105;&#106;&#125;&#32;&#45;&#32;&#70;&#95;&#123;&#105;&#106;&#125;&#47;&#50;&#36; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 20px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-e1feb86cc4d0d59f0cad26759e42a94d_l3.png\" height=\"20\" width=\"47\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#36;&#45;&#70;&#95;&#123;&#105;&#106;&#125;&#47;&#50;&#36; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"676\" data-permalink=\"https:\/\/augustobaffa.pro.br\/site\/desafios-online\/multi-agent-fixed-cost-transportation-game\/fctp_img4\/#main\" data-orig-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4.jpg\" data-orig-size=\"844,192\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"fctp_img4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4.jpg\" class=\"aligncenter size-medium_large wp-image-676\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img5-768x175.jpg\" alt=\"fctp_img5\" width=\"720\" height=\"164\" \/><\/p>\n<p>Para determinar o fluxo em cada aresta basta resolver o problema de transporte comum com os custos das ofertas vencedoras nas arestas apostadas e com o custo aumentado nas demais.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"676\" data-permalink=\"https:\/\/augustobaffa.pro.br\/site\/desafios-online\/multi-agent-fixed-cost-transportation-game\/fctp_img4\/#main\" data-orig-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4.jpg\" data-orig-size=\"844,192\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"fctp_img4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4.jpg\" class=\"aligncenter size-medium_large wp-image-676\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img6-768x175.jpg\" alt=\"fctp_img6\" width=\"720\" height=\"164\" \/><\/p>\n<h2>Round 2<\/h2>\n<p>No fim da primeira rodada cada jogador ter\u00e1 um conjunto de arestas e seu respectivo lucro por elemento transportado continua, se ele ainda tiver a menor oferta. As pessoas que j\u00e1 apostaram em uma aresta n\u00e3o ter\u00e3o que pagar pelo custo fixo daquela aresta uma segunda vez.<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 18px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-e1201978cf26e6e0984f3a7b3e0cae9c_l3.png\" height=\"18\" width=\"72\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#36;&#50;&#99;&#95;&#123;&#105;&#106;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#120;&#95;&#123;&#105;&#106;&#125;&#36; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>Se um agente apostar em uma aresta que j\u00e1 foi disputada no round anterior por <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-dae6bae3dcdac4629730754352c5e329_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#82;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> jogadores mas n\u00e3o por ele, ent\u00e3o ele deve pagar <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-397f05cb79d9e17353c54bf195ef1088_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;&#95;&#123;&#105;&#106;&#125;&#47;&#40;&#82;&#43;&#49;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"89\" style=\"vertical-align: -6px;\"\/> como custo fixo para participar, esse valor ser\u00e1 distribu\u00eddo uniformemente entre os agentes que apostaram naquela aresta anteriormente.<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 20px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-248c493da426178f128ad4318db8efe2_l3.png\" height=\"20\" width=\"148\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#36;&#49;&#46;&#49;&#99;&#95;&#123;&#105;&#106;&#125;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#120;&#95;&#123;&#105;&#106;&#125;&#32;&#45;&#32;&#70;&#95;&#123;&#105;&#106;&#125;&#47;&#51;&#36; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 20px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-d8a0c3e002da838fd565c9782ce11acd_l3.png\" height=\"20\" width=\"42\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#36;&#70;&#95;&#123;&#105;&#106;&#125;&#47;&#54;&#36; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 20px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-c20d2e785306ee1caedad3db8252e143_l3.png\" height=\"20\" width=\"42\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#36;&#70;&#95;&#123;&#105;&#106;&#125;&#47;&#54;&#36; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"676\" data-permalink=\"https:\/\/augustobaffa.pro.br\/site\/desafios-online\/multi-agent-fixed-cost-transportation-game\/fctp_img4\/#main\" data-orig-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4.jpg\" data-orig-size=\"844,192\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"fctp_img4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img4.jpg\" class=\"aligncenter size-medium_large wp-image-676\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img7-768x175.jpg\" alt=\"fctp_img7\" width=\"720\" height=\"164\" \/><\/p>\n<p>Por fim, o n\u00famero total de arestas ofertadas pelos jogadores n\u00e3o deve ultrapassar uma quantia <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-f34f74d98915e33f37a086f8cbfb996a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#67;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> fixa por round. Se um jogador apostar menos arestas do que <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-f34f74d98915e33f37a086f8cbfb996a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#67;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> no primeiro round elas n\u00e3o contar\u00e3o como extra no segundo, se ofertar mais, apenas as primeiras <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/ql-cache\/quicklatex.com-f34f74d98915e33f37a086f8cbfb996a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#67;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> ser\u00e3o consideradas<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"680\" data-permalink=\"https:\/\/augustobaffa.pro.br\/site\/desafios-online\/multi-agent-fixed-cost-transportation-game\/fctp_img8\/#main\" data-orig-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img8.jpg\" data-orig-size=\"425,185\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"fctp_img8\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img8.jpg\" class=\"aligncenter size-full wp-image-680\" src=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img8.jpg\" alt=\"fctp_img8\" width=\"425\" height=\"185\" srcset=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img8.jpg 425w, https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2016\/08\/fctp_img8-300x131.jpg 300w\" sizes=\"auto, (max-width: 425px) 100vw, 425px\" \/><\/p>\n<h2>Inst\u00e2ncias:<\/h2>\n<ul>\n<li><a href=\"http:\/\/www.augustobaffa.pro.br\/_games\/fctpgame\/FCTPInstances.zip\">Inst\u00e2ncias<\/a> dispon\u00edveis no servidor. Descri\u00e7\u00e3o do formato (<a href=\"https:\/\/augustobaffa.pro.br\/site\/wp-content\/uploads\/2018\/06\/README.txt\">README<\/a>).<\/li>\n<\/ul>\n<p>Para a leitura das inst\u00e2ncias, utilize os seguintes crit\u00e9rios:<\/p>\n<ul>\n<li>Na se\u00e7\u00e3o ARCS ser\u00e3o usadas apenas as primeiras 4 colunas: 0-source 1-sink 2-varCost 3-fixedCost.<\/li>\n<li>A Se\u00e7\u00e3o S define os resources (supply, produtos) dos n\u00f3s source.<\/li>\n<li>A Se\u00e7\u00e3o D define as demandas (demands) para os n\u00f3s sink.<\/li>\n<\/ul>\n<h2>Dev Kits<\/h2>\n<ul>\n<li>Java 1.6+\n<ul>\n<li><a href=\"http:\/\/www.augustobaffa.pro.br\/_games\/fctpgame\/FCTPClient_java.zip\">Game Client API<\/a> (<a href=\"http:\/\/www.augustobaffa.pro.br\/_games\/fctpgame\/javadoc_api\" target=\"_blank\" rel=\"noopener noreferrer\">javadoc<\/a>) &#8211; API para conex\u00e3o ao servidor<\/li>\n<li><a href=\"http:\/\/www.augustobaffa.pro.br\/_games\/fctpgame\/FCTPExample_java.zip\">Game Bot Example<\/a> (<a href=\"http:\/\/www.augustobaffa.pro.br\/_games\/fctpgame\/javadoc_example\" target=\"_blank\" rel=\"noopener noreferrer\">javadoc<\/a>) &#8211; Exemplo de agente com decis\u00e3o aleat\u00f3ria<\/li>\n<\/ul>\n<\/li>\n<li>C# .net 4.0+\n<ul>\n<li><a href=\"http:\/\/www.augustobaffa.pro.br\/_games\/fctpgame\/FCTPClient_csharp.zip\">Game Client API<\/a> &#8211; API para conex\u00e3o ao servidor<\/li>\n<li><a href=\"http:\/\/www.augustobaffa.pro.br\/_games\/fctpgame\/FCTPExample_csharp.zip\">Game Bot Example<\/a> &#8211; Exemplo de agente com decis\u00e3o aleat\u00f3ria<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Din\u00e2mica do servidor:<\/h2>\n<p>O servidor utiliza um protocolo texto simples para as comunica\u00e7\u00f5es e \u00e9 implementado utilizando um Socket TCP\/IP ouvindo a porta &#8220;7777&#8221;. Os par\u00e2metros s\u00e3o separados utilizando o s\u00edmbolo ponto e virgula (&#8220;;&#8221;). A maioria dos comandos n\u00e3o requer par\u00e2metros.<\/p>\n<h3>O servidor possui cinco estados:<\/h3>\n<ul>\n<li>Ready: 30 segundos para os agentes se prepararem ou conectarem;<\/li>\n<li>Game: jogo em andamento. 5 minutos para todos os jogadores enviarem suas ofertas;<\/li>\n<li>Processing: processamento das ofertas;<\/li>\n<li>Intermission: 30 segundos de intervalo entre os rounds para que os agentes processem o resultado parcial da partida;<\/li>\n<li>Gameover: 30 segundos para que os agentes processem os resultados finais da partida;<\/li>\n<\/ul>\n<p>Durante os estados Ready, Processing, Intermission e Gameover somente os comandos b\u00e1sicos do servidor estar\u00e3o dispon\u00edveis (scoreboard, estados do jogo, troca de nome, troca de cor e chat). Os demais comandos do agente s\u00e3o desabilitados.<\/p>\n<h2>Comandos do Servidor:<\/h2>\n<p>Os comandos do servidor estar\u00e3o dispon\u00edveis atrav\u00e9s de m\u00e9todos implementados na classe disponibilizada pelo devkit. Segue uma lista de comandos e seus m\u00e9todos equivalentes:<\/p>\n<ul>\n<li>bid sendPostBid(); &#8211; enviar oferta (nome da instancia, v\u00e9rtice x, v\u00e9rtice y, valor)<\/li>\n<li>cancel sendCancelBid(); &#8211; cancelar oferta (nome da instancia, v\u00e9rtice x, v\u00e9rtice y)<\/li>\n<li>book sendRequestBookedBids(); &#8211; receber a lista de ofertas enviadas<\/li>\n<li>clear sendClearBook(); &#8211; apagar a lista de ofertas enviadas<\/li>\n<li>done sendBidsDone(); &#8211; finalizar o envio de ofertas<\/li>\n<\/ul>\n<ul>\n<li>instance sendRequestInstanceList(); &#8211; receber a lista de inst\u00e2ncias dispon\u00edveis<\/li>\n<li>gamestatus sendRequestGameStatus(); &#8211; receber o status do jogo (estado, round, tempo atual)<\/li>\n<li>playerstatus sendRequestUserStatus(); &#8211; receber status do usu\u00e1rio (posi\u00e7\u00e3o, estado do agente, pontos e energia)<\/li>\n<li>scorelist sendRequestScoreboard(); &#8211; lista de usu\u00e1rios logados e pontos<\/li>\n<li>quit sendGoodbye(); &#8211; desconectar do jogo<\/li>\n<\/ul>\n<ul>\n<li>name params[1]: name sendName &#8211; trocar de nome<\/li>\n<li>say params[1]: msg sendSay &#8211; enviar mensagem<\/li>\n<li>color params[3]: r(0-255), g(0-255), b(0-255) sendColor, sendColor(color) &#8211; trocar de cor<\/li>\n<\/ul>\n<p><!--\n\n\n<h2>Requisitos do Trabalho:<\/h2>\n\n\n\n\n<ul>\n \t\n\n<li>O programa deve ser implementado em qualquer linguagem e utilizar uma interface Socket TCP\/IP com o servidor (porta 8888. Ser\u00e3o disponibilizados DevKits em Java e C#).<\/li>\n\n\n \t\n\n<li>O programa deve implementar qualquer m\u00e9todo demonstrado na disciplina (Busca, L\u00f3gico, Incerteza, Aprendizado de M\u00e1quina, Fuzzy, Waypoints e\/ou M\u00e1quina de Estados).<\/li>\n\n\n \t\n\n<li>O programa deve exibir um log (em tela) das a\u00e7\u00f5es realizadas.<\/li>\n\n\n<\/ul>\n\n\n--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Resultados de Partidas Realizadas Problema O problema do Fixed Cost Transportation consiste em um grafo bipartido no qual deseja-se transmitir um conjunto de produtos de um mesmo tipo atrav\u00e9s das arestas, de forma a minimizar o custo e atender a demanda. O custo \u00e9 definido pelo pre\u00e7o vari\u00e1vel cobrado por produto transportado somado ao custo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":689,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-671","page","type-page","status-publish","hentry","post"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P45Kmr-aP","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/augustobaffa.pro.br\/site\/wp-json\/wp\/v2\/pages\/671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/augustobaffa.pro.br\/site\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/augustobaffa.pro.br\/site\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/augustobaffa.pro.br\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/augustobaffa.pro.br\/site\/wp-json\/wp\/v2\/comments?post=671"}],"version-history":[{"count":13,"href":"https:\/\/augustobaffa.pro.br\/site\/wp-json\/wp\/v2\/pages\/671\/revisions"}],"predecessor-version":[{"id":3991,"href":"https:\/\/augustobaffa.pro.br\/site\/wp-json\/wp\/v2\/pages\/671\/revisions\/3991"}],"up":[{"embeddable":true,"href":"https:\/\/augustobaffa.pro.br\/site\/wp-json\/wp\/v2\/pages\/689"}],"wp:attachment":[{"href":"https:\/\/augustobaffa.pro.br\/site\/wp-json\/wp\/v2\/media?parent=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}