<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Marketing Optimization using What-If &amp;amp;  R Linear Programming in Data Stories Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Marketing-Optimization-using-What-If-amp-R-Linear-Programming/m-p/243939#M1087</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Marketing Optimization using Linear Programming&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CMOs need to make complex decisions about budget allocation and marketing investment.&amp;nbsp;Deciding which campaigns will receive funding is never easy, especially with multiple factors and obligations that need to be taken into account.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This dashboard helps marketing managers to optimize the 'Return on Marketing Investment' (ROMI) across four channels. TV Ads, SEO , Adwords and Facebook. Based on the set parameters and rules , the dashboard gives a R Linear Programming Solutions that optimizes the ROMI.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;R Libraries used: linprog - for linear programming, grid, gridExtra,gtable - for plotting the results as a table&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiZTNlZjNkMTktMWY3Ni00ZTRlLTg0MmEtMzYxMWQ2OTI4MzIyIiwidCI6IjViNjdjODg2LTFhMjYtNDk4OC1hNzY3LTEwOTQzZTRkMTA2YyIsImMiOjEwfQ&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2017 09:54:48 GMT</pubDate>
    <dc:creator>ujwalynit</dc:creator>
    <dc:date>2017-09-01T09:54:48Z</dc:date>
    <item>
      <title>Marketing Optimization using What-If &amp;  R Linear Programming</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Marketing-Optimization-using-What-If-amp-R-Linear-Programming/m-p/243939#M1087</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Marketing Optimization using Linear Programming&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CMOs need to make complex decisions about budget allocation and marketing investment.&amp;nbsp;Deciding which campaigns will receive funding is never easy, especially with multiple factors and obligations that need to be taken into account.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This dashboard helps marketing managers to optimize the 'Return on Marketing Investment' (ROMI) across four channels. TV Ads, SEO , Adwords and Facebook. Based on the set parameters and rules , the dashboard gives a R Linear Programming Solutions that optimizes the ROMI.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;R Libraries used: linprog - for linear programming, grid, gridExtra,gtable - for plotting the results as a table&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiZTNlZjNkMTktMWY3Ni00ZTRlLTg0MmEtMzYxMWQ2OTI4MzIyIiwidCI6IjViNjdjODg2LTFhMjYtNDk4OC1hNzY3LTEwOTQzZTRkMTA2YyIsImMiOjEwfQ&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 09:54:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Marketing-Optimization-using-What-If-amp-R-Linear-Programming/m-p/243939#M1087</guid>
      <dc:creator>ujwalynit</dc:creator>
      <dc:date>2017-09-01T09:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Marketing Optimization using What-If &amp;  R Linear Programming</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Marketing-Optimization-using-What-If-amp-R-Linear-Programming/m-p/298971#M1226</link>
      <description>&lt;P&gt;R Code:&lt;/P&gt;
&lt;P&gt;my_df &amp;lt;- `dataset`&lt;/P&gt;
&lt;P&gt;library(linprog)&lt;/P&gt;
&lt;P&gt;ROI &amp;lt;- c(my_df$`TVROI Value`/100,my_df$`SEOROI Value`/100,my_df$`ADWORDSROI Value`/100,my_df$`FacebookROI Value`/100)&lt;BR /&gt;bVect &amp;lt;- c(my_df$`Total Budget`, 0, 0, -200000, -80000, -60000, 220000, 0, my_df$`Customer Base`)&lt;BR /&gt;AMatrix &amp;lt;- rbind(&lt;BR /&gt; c(1,1,1,1), # TOTAL&lt;BR /&gt; c(0.6,-0.4,-0.4,0.6), # SEO + AdWords &amp;gt; 60%&lt;BR /&gt; c(-0.2,-0.2,-0.2,0.8), # FB &amp;lt; 20%&lt;BR /&gt; c(-1,0,0,0), # Min TV&lt;BR /&gt; c(0,0,0,-1), # Min FB&lt;BR /&gt; c(0,-1,0,0), # Min SEO&lt;BR /&gt; c(0,1,0,0), # Max SEO&lt;BR /&gt; c(0,-3,1,0), # Adwords &amp;lt;= 3 SEO&lt;BR /&gt; c(my_df$`TV Reach Value`,my_df$`SEO Reach Value`,my_df$`Adwords Reach Value`,my_df$`Facebook Reach Value`) # Campaign reach&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;lpsol &amp;lt;- solveLP(ROI, bVect, AMatrix, TRUE)&lt;/P&gt;
&lt;P&gt;OptROI &amp;lt;- paste0("$", formatC(as.numeric(lpsol$opt), format="f", digits=0, big.mark=","))&lt;BR /&gt;TVSpend &amp;lt;- paste0("$", formatC(as.numeric(lpsol$solution[1]), format="f", digits=0, big.mark=","))&lt;BR /&gt;SEOSpend &amp;lt;- paste0("$", formatC(as.numeric(lpsol$solution[2]), format="f", digits=0, big.mark=","))&lt;BR /&gt;AdwordsSpend &amp;lt;- paste0("$", formatC(as.numeric(lpsol$solution[3]), format="f", digits=0, big.mark=","))&lt;BR /&gt;FacebookSpend &amp;lt;- paste0("$", formatC(as.numeric(lpsol$solution[4]), format="f", digits=0, big.mark=","))&lt;/P&gt;
&lt;P&gt;plot_df &amp;lt;- data.frame(Description=c('Optimum ROI','TV Spend','SEO Spend','Adwords Spend','Facebook Spend'),&lt;BR /&gt; Value=c(OptROI,TVSpend,SEOSpend,AdwordsSpend,FacebookSpend))&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;library(gtable)&lt;BR /&gt;library(gridExtra)&lt;BR /&gt;library(grid)&lt;BR /&gt;tt &amp;lt;- ttheme_minimal(&lt;BR /&gt; core=list(bg_params = list(fill = blues9[1:5], col=NA),&lt;BR /&gt; fg_params=list(fontface=1,fontsize=20)),&lt;BR /&gt; colhead=list(fg_params=list(col="navyblue", fontface=1,fontsize=20)))&lt;/P&gt;
&lt;P&gt;g &amp;lt;- tableGrob(plot_df[1:5,], rows = NULL,theme=tt)&lt;BR /&gt;g &amp;lt;- gtable_add_grob(g,&lt;BR /&gt; grobs = rectGrob(gp = gpar(fill = NA, lwd = 2)),&lt;BR /&gt; t = 2, b = nrow(g), l = 1, r = ncol(g))&lt;BR /&gt;g &amp;lt;- gtable_add_grob(g,&lt;BR /&gt; grobs = rectGrob(gp = gpar(fill = NA, lwd = 2)),&lt;BR /&gt; t = 1, l = 1, r = ncol(g))&lt;BR /&gt;grid.newpage()&lt;BR /&gt;grid.draw(g)&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 13:21:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Marketing-Optimization-using-What-If-amp-R-Linear-Programming/m-p/298971#M1226</guid>
      <dc:creator>ujwalynit</dc:creator>
      <dc:date>2017-11-08T13:21:49Z</dc:date>
    </item>
  </channel>
</rss>

