Solve or reformulate LP with binary vector constraint and producta basic doubt on a multivariable...

Creepy dinosaur pc game identification

Store Credit Card Information in Password Manager?

Problem with TransformedDistribution

It grows, but water kills it

Strong empirical falsification of quantum mechanics based on vacuum energy density

Why do we read the Megillah by night and by day?

What does routing an IP address mean?

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Offered money to buy a house, seller is asking for more to cover gap between their listing and mortgage owed

250 Floor Tower

Aragorn's "guise" in the Orthanc Stone

Why is it that I can sometimes guess the next note?

C++ debug/print custom type with GDB : the case of nlohmann json library

WiFi Thermostat, No C Terminal on Furnace

Travelling outside the UK without a passport

Lowest total scrabble score

Should I stop contributing to retirement accounts?

Is it better practice to read straight from sheet music rather than memorize it?

Open a doc from terminal, but not by its name

A social experiment. What is the worst that can happen?

Is there a single word describing earning money through any means?

On a tidally locked planet, would time be quantized?

Create all possible words using a set or letters

Should I outline or discovery write my stories?



Solve or reformulate LP with binary vector constraint and product


a basic doubt on a multivariable optimization problemDifference between maximize $sumlimits_{k=1}^Kg_k(mathbf{x})$ and $sumlimits_{k=1}^{K}log(1+g_k(mathbf{x}))$ in convex optimizationSolving constrained linear programming problemFormulating an LP problem with vectorsStudy on function $ phi_{p}(x) = x_1^{p_1}cdots x_n^{p_n} $How predictable is $Y$, given values of $X_i$s?What are numerical algorithms to compute the maximum of a function which depends on many parameters?Probabilities maximizing productsRewrite $[p_1(x)geq 0 text{ and } p_2(x)geq 0] Rightarrow q(x)geq 0$, $[-p_1(x)geq 0 text{ and } -p_2(x)geq 0] Rightarrow q(x)geq 0$Maximize $det X$, subject to $X_{ii}leq P_i$, where $X>0$













-1












$begingroup$


I have the following problem:



Given $p =[p_1;p_2;cdots;p_n]^Tin R^n$, $t =[t_1;t_2;cdots;t_n]^Tin R^n$, $q in R$, $l^{[1]}, l^{[2]}, ..., l^{[M]}$, where $l^{[k]} = [l_1;l_2;cdots;l_n]^Tin R^n, forall_{k in {1, dots, n} } $, I have to find b where $b =[b_1;b_2;cdots;b_M]^Tin R^M$, and $b_k in {0,1}$ and $x^{[1]}, x^{[2]}, ..., x^{[M]}$, where $x^{[k]} in R^n, forall_{k in {1, dots, n} } $



$$text{maximize}, sum_{k=1}^{M} b_{k}(x^{[k]T}p - t_{k}) \ text{subject to}, sum_{k=1}^{N} b_{k} x^{[k]} leq q,\ x^{[k]} leq l^{[k]}, b in {0,1} $$



In other words, I have $M$ vectors $l^{[k]} in R^n, k in {1, dots, M} $ and I have to create $Z$ vectors $x^{[k]}$, $Z leq M$ with respect to those 2 constraints formulated above. Each vector has a "penalty" constant ($t_{k}$) and I have to adjust their elements so that $ sum_k (x^{[k]T}p - t_k)$ is maximum. As you can see, in order to formulate the idea of finding the best Z vectors, $Z leq M$, and have a LP problem, I artificially created binary vector $b$. So, $b$ would have $M-Z$ values of $0$ and $Z$ values of $1$. However, this binary vector complicates my problem, which is not LP anymore and I do not know how to solve.



So, I have two questions:




  1. Is there any way to better formulate the problem of choosing the best Z vectors that can maximize that sum? Can I get rid of $b$? Should I get rid of $p$ somehow? Should I merge p and $t_k$ so that $x^{[k]} = [x_1;x_2;cdots;x_n; -1] in R^{n+1}$ and $p_k = [p_1;p_2;cdots;p_n; t_k] in R^{n+1}$?


  2. How should I approach solving this problem? For all $Z leq M$, find all the posssible combinations of $Z$ vectors, and solving the LP problem (maximize the sum where $sum x^{[k]} < q$ and $x^{[k]} leq l^{[k]}$) for each of these problems would take an enormous ammount of time. I am interested in any software that can solve in reasonable time my problem.











share|cite|improve this question









$endgroup$

















    -1












    $begingroup$


    I have the following problem:



    Given $p =[p_1;p_2;cdots;p_n]^Tin R^n$, $t =[t_1;t_2;cdots;t_n]^Tin R^n$, $q in R$, $l^{[1]}, l^{[2]}, ..., l^{[M]}$, where $l^{[k]} = [l_1;l_2;cdots;l_n]^Tin R^n, forall_{k in {1, dots, n} } $, I have to find b where $b =[b_1;b_2;cdots;b_M]^Tin R^M$, and $b_k in {0,1}$ and $x^{[1]}, x^{[2]}, ..., x^{[M]}$, where $x^{[k]} in R^n, forall_{k in {1, dots, n} } $



    $$text{maximize}, sum_{k=1}^{M} b_{k}(x^{[k]T}p - t_{k}) \ text{subject to}, sum_{k=1}^{N} b_{k} x^{[k]} leq q,\ x^{[k]} leq l^{[k]}, b in {0,1} $$



    In other words, I have $M$ vectors $l^{[k]} in R^n, k in {1, dots, M} $ and I have to create $Z$ vectors $x^{[k]}$, $Z leq M$ with respect to those 2 constraints formulated above. Each vector has a "penalty" constant ($t_{k}$) and I have to adjust their elements so that $ sum_k (x^{[k]T}p - t_k)$ is maximum. As you can see, in order to formulate the idea of finding the best Z vectors, $Z leq M$, and have a LP problem, I artificially created binary vector $b$. So, $b$ would have $M-Z$ values of $0$ and $Z$ values of $1$. However, this binary vector complicates my problem, which is not LP anymore and I do not know how to solve.



    So, I have two questions:




    1. Is there any way to better formulate the problem of choosing the best Z vectors that can maximize that sum? Can I get rid of $b$? Should I get rid of $p$ somehow? Should I merge p and $t_k$ so that $x^{[k]} = [x_1;x_2;cdots;x_n; -1] in R^{n+1}$ and $p_k = [p_1;p_2;cdots;p_n; t_k] in R^{n+1}$?


    2. How should I approach solving this problem? For all $Z leq M$, find all the posssible combinations of $Z$ vectors, and solving the LP problem (maximize the sum where $sum x^{[k]} < q$ and $x^{[k]} leq l^{[k]}$) for each of these problems would take an enormous ammount of time. I am interested in any software that can solve in reasonable time my problem.











    share|cite|improve this question









    $endgroup$















      -1












      -1








      -1





      $begingroup$


      I have the following problem:



      Given $p =[p_1;p_2;cdots;p_n]^Tin R^n$, $t =[t_1;t_2;cdots;t_n]^Tin R^n$, $q in R$, $l^{[1]}, l^{[2]}, ..., l^{[M]}$, where $l^{[k]} = [l_1;l_2;cdots;l_n]^Tin R^n, forall_{k in {1, dots, n} } $, I have to find b where $b =[b_1;b_2;cdots;b_M]^Tin R^M$, and $b_k in {0,1}$ and $x^{[1]}, x^{[2]}, ..., x^{[M]}$, where $x^{[k]} in R^n, forall_{k in {1, dots, n} } $



      $$text{maximize}, sum_{k=1}^{M} b_{k}(x^{[k]T}p - t_{k}) \ text{subject to}, sum_{k=1}^{N} b_{k} x^{[k]} leq q,\ x^{[k]} leq l^{[k]}, b in {0,1} $$



      In other words, I have $M$ vectors $l^{[k]} in R^n, k in {1, dots, M} $ and I have to create $Z$ vectors $x^{[k]}$, $Z leq M$ with respect to those 2 constraints formulated above. Each vector has a "penalty" constant ($t_{k}$) and I have to adjust their elements so that $ sum_k (x^{[k]T}p - t_k)$ is maximum. As you can see, in order to formulate the idea of finding the best Z vectors, $Z leq M$, and have a LP problem, I artificially created binary vector $b$. So, $b$ would have $M-Z$ values of $0$ and $Z$ values of $1$. However, this binary vector complicates my problem, which is not LP anymore and I do not know how to solve.



      So, I have two questions:




      1. Is there any way to better formulate the problem of choosing the best Z vectors that can maximize that sum? Can I get rid of $b$? Should I get rid of $p$ somehow? Should I merge p and $t_k$ so that $x^{[k]} = [x_1;x_2;cdots;x_n; -1] in R^{n+1}$ and $p_k = [p_1;p_2;cdots;p_n; t_k] in R^{n+1}$?


      2. How should I approach solving this problem? For all $Z leq M$, find all the posssible combinations of $Z$ vectors, and solving the LP problem (maximize the sum where $sum x^{[k]} < q$ and $x^{[k]} leq l^{[k]}$) for each of these problems would take an enormous ammount of time. I am interested in any software that can solve in reasonable time my problem.











      share|cite|improve this question









      $endgroup$




      I have the following problem:



      Given $p =[p_1;p_2;cdots;p_n]^Tin R^n$, $t =[t_1;t_2;cdots;t_n]^Tin R^n$, $q in R$, $l^{[1]}, l^{[2]}, ..., l^{[M]}$, where $l^{[k]} = [l_1;l_2;cdots;l_n]^Tin R^n, forall_{k in {1, dots, n} } $, I have to find b where $b =[b_1;b_2;cdots;b_M]^Tin R^M$, and $b_k in {0,1}$ and $x^{[1]}, x^{[2]}, ..., x^{[M]}$, where $x^{[k]} in R^n, forall_{k in {1, dots, n} } $



      $$text{maximize}, sum_{k=1}^{M} b_{k}(x^{[k]T}p - t_{k}) \ text{subject to}, sum_{k=1}^{N} b_{k} x^{[k]} leq q,\ x^{[k]} leq l^{[k]}, b in {0,1} $$



      In other words, I have $M$ vectors $l^{[k]} in R^n, k in {1, dots, M} $ and I have to create $Z$ vectors $x^{[k]}$, $Z leq M$ with respect to those 2 constraints formulated above. Each vector has a "penalty" constant ($t_{k}$) and I have to adjust their elements so that $ sum_k (x^{[k]T}p - t_k)$ is maximum. As you can see, in order to formulate the idea of finding the best Z vectors, $Z leq M$, and have a LP problem, I artificially created binary vector $b$. So, $b$ would have $M-Z$ values of $0$ and $Z$ values of $1$. However, this binary vector complicates my problem, which is not LP anymore and I do not know how to solve.



      So, I have two questions:




      1. Is there any way to better formulate the problem of choosing the best Z vectors that can maximize that sum? Can I get rid of $b$? Should I get rid of $p$ somehow? Should I merge p and $t_k$ so that $x^{[k]} = [x_1;x_2;cdots;x_n; -1] in R^{n+1}$ and $p_k = [p_1;p_2;cdots;p_n; t_k] in R^{n+1}$?


      2. How should I approach solving this problem? For all $Z leq M$, find all the posssible combinations of $Z$ vectors, and solving the LP problem (maximize the sum where $sum x^{[k]} < q$ and $x^{[k]} leq l^{[k]}$) for each of these problems would take an enormous ammount of time. I am interested in any software that can solve in reasonable time my problem.








      optimization linear-programming






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Mar 13 at 23:43









      S'en douS'en dou

      11




      11






















          0






          active

          oldest

          votes











          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          });
          });
          }, "mathjax-editing");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "69"
          };
          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
          },
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3147360%2fsolve-or-reformulate-lp-with-binary-vector-constraint-and-product%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Mathematics Stack Exchange!


          • 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.


          Use MathJax to format equations. MathJax reference.


          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%2fmath.stackexchange.com%2fquestions%2f3147360%2fsolve-or-reformulate-lp-with-binary-vector-constraint-and-product%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

          Magento 2 - Add success message with knockout Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Success / Error message on ajax request$.widget is not a function when loading a homepage after add custom jQuery on custom themeHow can bind jQuery to current document in Magento 2 When template load by ajaxRedirect page using plugin in Magento 2Magento 2 - Update quantity and totals of cart page without page reload?Magento 2: Quote data not loaded on knockout checkoutMagento 2 : I need to change add to cart success message after adding product into cart through pluginMagento 2.2.5 How to add additional products to cart from new checkout step?Magento 2 Add error/success message with knockoutCan't validate Post Code on checkout page

          Fil:Tokke komm.svg

          Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?