{"id":63412,"date":"2020-10-20T11:20:17","date_gmt":"2020-10-20T15:20:17","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=63412"},"modified":"2022-11-21T09:46:28","modified_gmt":"2022-11-21T14:46:28","slug":"the-knapsack-problem-implementation-in-r","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/","title":{"rendered":"The Knapsack Problem Implementation in R"},"content":{"rendered":"\n<p class=\"has-background\" style=\"background-color:#b5e4c6\">The below is an excerpt. Visit Quantpedia to download the complete code and read the full article: <a href=\"https:\/\/quantpedia.com\/the-knapsack-problem-implementation-in-r\/\">https:\/\/quantpedia.com\/the-knapsack-problem-implementation-in-r\/<\/a><\/p>\n\n\n\n<p>The implementation of the Knapsack problem was created in R, using slightly modified Simulated annealing optimization algorithm. Recently, we have been asked about our implementation and the code. The code is commented and probably could be implemented more efficiently (in R or in another programming language). For example, R is more efficient with matrices, but the code would not be that &#8220;straightforward&#8221;. Feel free to&nbsp;<a href=\"https:\/\/quantpedia.com\/quantpedia-mission\/\">contact us<\/a>&nbsp;with any questions or new ideas!<\/p>\n\n\n\n<p>Commented and ready to be copied code:<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\n##### Simulated annealing Knapsack optimization ####<br><br>\n\n#m is vector of weights<br>\n#c is vector of values<br>\n#M is weight cap<br>\n#numbit is number of iterations, 100000 was used in the Knapsack ESG-Momentum<br>\n#par is a plotting paramter, if the plotting is enabled, plots and returns each par\u00b4s result<br>\n#tau is initial temperature<br>\n#pt controls the temperature decrease; decrease is set to be linear and pt was set to be 2.5 in the paper<br>\n#plotting &#8211; logical, TRUE if plotting is enabled, FALSE if disabled<br>\nknap.sann<-function(m,c,M,numbit,par,tau,pt,plotting){<br>\n#vectors for plotting<br>\nweight<-rep(0,numbit\/par)<br>\nvalue<-rep(0,numbit\/par)<br>\n#setting the n <br>\nn<-length(m)<br>\nx<-rep(0,n)<br>\n#solutions<br>\nbestval<-0<br>\nbestsol<-c(0)<br>\nfor (i in 1:numbit){<br>\ny<-x<br>\n#generating random item <br>\np<-sample(1:n,1)<br>\ny[p]<-abs(y[p]-1)<br>\n#new item is placed into knapsack (or dropped from knapsack) only if it fits into knapsack, <br>\n#if it does not fits,<br>\n#one item from the knapsack is taken into hand and either chosen item (p) or item in the hand (hand) is dropped<br>\nwhile (t(y)%*%m>M){<br>\nhand<-sample(x,1)<br>\ny[sample(c(p,hand),1)]<-0<br>\n}<br>\n#Simulated annealing part; section three in the paper ESG Scores and Price Momentum Are More Than Compatible <br>\nif (runif(1) < exp((t(x)%*%c - t(y)%*%c) \/ (tau \/ pt*i))) {<br>\nif(t(y)%*%c>bestval){<br>\nbestval<-t(y)%*%c<br>\nbestsol<-y<br>\n}<br>\nx <- y<br>\n}<br>\n#plotting<br>\nif(plotting==TRUE){<br>\nif(i %% par ==0){<br>\nprint(t(x)%*%c)<br>\nprint(t(x)%*%m)<br>\nweight[i\/par]<-t(x)%*%m<br>\nvalue[i\/par]<-t(x)%*%c<br>\n}<br>\n}<br>\n}<br>\nif(plotting==TRUE){<br>\nosX<-seq(1:length(weight))<br>\npar(mfrow=c(2,1))<br>\nplot(osX,weight)<br>\nlines(osX,rep(M,length(osX)),col=&#8221;red&#8221;)<br>\nplot(osX,value)<br>\n}<br>\n#results<br>\nresults <- list()<br>\nresults$first <- bestsol<br>\nresults$second <- bestval<br>\nreturn(results) <br>\n#return(bestsol)<br>\n}\n<\/p>\n\n\n\n<p>Author:&nbsp;<a href=\"https:\/\/www.linkedin.com\/in\/matus-padysak-14a44b185\/\">Matus Padysak<\/a>, Senior Analyst, Quantpedia.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quantpedia offers ready-to-use R script for implementation of the Knapsack problem, using slightly modified Simulated annealing optimization algorithm. <\/p>\n","protected":false},"author":518,"featured_media":63438,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,338,341,351,344,342],"tags":[626,806,4922,734,8587,8586,494,487,6591,8588],"contributors-categories":[13662],"class_list":{"0":"post-63412","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-ibkr-quant-news","10":"category-quant-development","11":"category-quant-europe","12":"category-quant-regions","13":"category-r-development","14":"tag-algorithm","15":"tag-data-science","16":"tag-econometrics","17":"tag-esg","18":"tag-knapsack-optimization","19":"tag-knapsack-problem","20":"tag-quant","21":"tag-r","22":"tag-rstats","23":"tag-simulated-annealing-optimization","24":"contributors-categories-quantpedia"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>The Knapsack Problem Implementation in R | IBKR Quant<\/title>\n<meta name=\"description\" content=\"Quantpedia offers ready-to-use R script for implementation of the Knapsack problem, using slightly modified Simulated annealing optimization algorithm.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/63412\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Knapsack Problem Implementation in R | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"Quantpedia offers ready-to-use R script for implementation of the Knapsack problem, using slightly modified Simulated annealing optimization algorithm.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-20T15:20:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:46:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/10\/quantpedia-R-blog.png\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Matus Padysak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Matus Padysak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-knapsack-problem-implementation-in-r\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-knapsack-problem-implementation-in-r\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Matus Padysak\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/1ebd1ffed939c217c70f1569a739fc6b\"\n\t            },\n\t            \"headline\": \"The Knapsack Problem Implementation in R\",\n\t            \"datePublished\": \"2020-10-20T15:20:17+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:46:28+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-knapsack-problem-implementation-in-r\\\/\"\n\t            },\n\t            \"wordCount\": 192,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-knapsack-problem-implementation-in-r\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/10\\\/quantpedia-R-blog.png\",\n\t            \"keywords\": [\n\t                \"algorithm\",\n\t                \"Data Science\",\n\t                \"Econometrics\",\n\t                \"ESG\",\n\t                \"Knapsack optimization\",\n\t                \"Knapsack problem\",\n\t                \"Quant\",\n\t                \"R\",\n\t                \"rstats\",\n\t                \"Simulated annealing optimization\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Quant\",\n\t                \"Quant Development\",\n\t                \"Quant Europe\",\n\t                \"Quant Regions\",\n\t                \"R Development\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-knapsack-problem-implementation-in-r\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-knapsack-problem-implementation-in-r\\\/\",\n\t            \"name\": \"The Knapsack Problem Implementation in R | IBKR Quant Blog\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-knapsack-problem-implementation-in-r\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-knapsack-problem-implementation-in-r\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/10\\\/quantpedia-R-blog.png\",\n\t            \"datePublished\": \"2020-10-20T15:20:17+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:46:28+00:00\",\n\t            \"description\": \"Quantpedia offers ready-to-use R script for implementation of the Knapsack problem, using slightly modified Simulated annealing optimization algorithm.\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-knapsack-problem-implementation-in-r\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-knapsack-problem-implementation-in-r\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/10\\\/quantpedia-R-blog.png\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/10\\\/quantpedia-R-blog.png\",\n\t            \"width\": 900,\n\t            \"height\": 540,\n\t            \"caption\": \"R programming\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/1ebd1ffed939c217c70f1569a739fc6b\",\n\t            \"name\": \"Matus Padysak\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/matuspadysak\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"The Knapsack Problem Implementation in R | IBKR Quant","description":"Quantpedia offers ready-to-use R script for implementation of the Knapsack problem, using slightly modified Simulated annealing optimization algorithm.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/63412\/","og_locale":"en_US","og_type":"article","og_title":"The Knapsack Problem Implementation in R | IBKR Quant Blog","og_description":"Quantpedia offers ready-to-use R script for implementation of the Knapsack problem, using slightly modified Simulated annealing optimization algorithm.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/","og_site_name":"IBKR Campus US","article_published_time":"2020-10-20T15:20:17+00:00","article_modified_time":"2022-11-21T14:46:28+00:00","og_image":[{"width":900,"height":540,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/10\/quantpedia-R-blog.png","type":"image\/png"}],"author":"Matus Padysak","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Matus Padysak","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/"},"author":{"name":"Matus Padysak","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/1ebd1ffed939c217c70f1569a739fc6b"},"headline":"The Knapsack Problem Implementation in R","datePublished":"2020-10-20T15:20:17+00:00","dateModified":"2022-11-21T14:46:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/"},"wordCount":192,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/10\/quantpedia-R-blog.png","keywords":["algorithm","Data Science","Econometrics","ESG","Knapsack optimization","Knapsack problem","Quant","R","rstats","Simulated annealing optimization"],"articleSection":["Data Science","Programming Languages","Quant","Quant Development","Quant Europe","Quant Regions","R Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/","name":"The Knapsack Problem Implementation in R | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/10\/quantpedia-R-blog.png","datePublished":"2020-10-20T15:20:17+00:00","dateModified":"2022-11-21T14:46:28+00:00","description":"Quantpedia offers ready-to-use R script for implementation of the Knapsack problem, using slightly modified Simulated annealing optimization algorithm.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-knapsack-problem-implementation-in-r\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/10\/quantpedia-R-blog.png","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/10\/quantpedia-R-blog.png","width":900,"height":540,"caption":"R programming"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/1ebd1ffed939c217c70f1569a739fc6b","name":"Matus Padysak","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/matuspadysak\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/10\/quantpedia-R-blog.png","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/63412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/518"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=63412"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/63412\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/63438"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=63412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=63412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=63412"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=63412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}