Why would sequential quadratic programming fail to find global minimum?Issues with quadratic...

Why do we say ‘pairwise disjoint’, rather than ‘disjoint’?

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

What ability score modifier does a javelin's damage use?

Specifying a starting column with colortbl package and xcolor

Create chunks from an array

Why does liquid water form when we exhale on a mirror?

Why is there an extra space when I type "ls" in the Desktop directory?

Drawing close together horizontal lines in Latex

What problems would a superhuman have who's skin is constantly hot?

Having the player face themselves after the mid-game

How do spaceships determine each other's mass in space?

Minimizing with differential evolution

Does "Until when" sound natural for native speakers?

How to resolve: Reviewer #1 says remove section X vs. Reviewer #2 says expand section X

Is a piano played in the same way as a harmonium?

Virginia employer terminated employee and wants signing bonus returned

Does an unused member variable take up memory?

how to modify custom status text color in UI component grid magento 2?

How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?

How to check whether module is loaded with custom configurations?

Signed and unsigned numbers

Conservation of Mass and Energy

Was it really inappropriate to write a pull request for the company I interviewed with?

What's the 'present simple' form of the word "нашла́" in 3rd person singular female?



Why would sequential quadratic programming fail to find global minimum?


Issues with quadratic programmingQuadratic programming with simplex constraintsIs this a quadratic programming problem?SVM and quadratic programmingQuadratic programmingProve SVM Quadratic Programming has Hessian positive semidefiniteConstrained quadratic programming with positive semidefinite matrixWhat is a Sequential Quadratic Programming?Support Vector Machines: question about the underlying mathHow Sequential Quadratic Programming versus Quadratic programming and Iterative QP are related?













0












$begingroup$


I have a data set. A matrix $X$, $1300 times 20$ and output vector $mathbf{y} in Bbb R^{20}$ $$mathbf{y} = begin{bmatrix} 100\100\vdots\100end{bmatrix}$$
I am trying to run OLS on this data with $boldsymbol{beta} geq mathbf{0}$ and additional inequality constraints.



I first attempted to solve without the inequality constraints with a Python function that uses coordinate descent. This converged and this test proved I could find a global minimum. But the code doesn't accept constraints beyond $boldsymbol{beta} geq mathbf{0}$, so it's not enough for my purposes.



I then tried another Python function that uses sequential quadratic programming (SQP), which didn't converge to the global minimum. It should produce the same result since it's the same problem, but it didn't. You can see the details of my code here:



how to stop fmin_slqsp from converging to local minimum?



I determined it's likely the SQP method reached a local minimum whereas the coordinate descent method didn't.



Why would sequential quadratic programming fail to find global minimum?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Why don't you use CVXPY?
    $endgroup$
    – Rodrigo de Azevedo
    2 days ago










  • $begingroup$
    @RodrigodeAzevedo That looks promising. Do you have any recommendations for which methods specifically I should look at that would be useful for my case?
    $endgroup$
    – Stan Shunpike
    2 days ago










  • $begingroup$
    That is the whole point of CVXPY. You don't worry about methods. You just write up your optimization problem and CVXPY takes it from there. If the problem is not convex, CVXPY will complain. Good for prototyping.
    $endgroup$
    – Rodrigo de Azevedo
    2 days ago






  • 1




    $begingroup$
    It works much better but the solution is still off by a bit. It's 1444.482627745685.
    $endgroup$
    – Stan Shunpike
    2 days ago






  • 1




    $begingroup$
    @RodrigodeAzevedo Yes, this worked. This solved the issue. Fantastic, thank you so much for your help.
    $endgroup$
    – Stan Shunpike
    2 days ago


















0












$begingroup$


I have a data set. A matrix $X$, $1300 times 20$ and output vector $mathbf{y} in Bbb R^{20}$ $$mathbf{y} = begin{bmatrix} 100\100\vdots\100end{bmatrix}$$
I am trying to run OLS on this data with $boldsymbol{beta} geq mathbf{0}$ and additional inequality constraints.



I first attempted to solve without the inequality constraints with a Python function that uses coordinate descent. This converged and this test proved I could find a global minimum. But the code doesn't accept constraints beyond $boldsymbol{beta} geq mathbf{0}$, so it's not enough for my purposes.



I then tried another Python function that uses sequential quadratic programming (SQP), which didn't converge to the global minimum. It should produce the same result since it's the same problem, but it didn't. You can see the details of my code here:



how to stop fmin_slqsp from converging to local minimum?



I determined it's likely the SQP method reached a local minimum whereas the coordinate descent method didn't.



Why would sequential quadratic programming fail to find global minimum?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Why don't you use CVXPY?
    $endgroup$
    – Rodrigo de Azevedo
    2 days ago










  • $begingroup$
    @RodrigodeAzevedo That looks promising. Do you have any recommendations for which methods specifically I should look at that would be useful for my case?
    $endgroup$
    – Stan Shunpike
    2 days ago










  • $begingroup$
    That is the whole point of CVXPY. You don't worry about methods. You just write up your optimization problem and CVXPY takes it from there. If the problem is not convex, CVXPY will complain. Good for prototyping.
    $endgroup$
    – Rodrigo de Azevedo
    2 days ago






  • 1




    $begingroup$
    It works much better but the solution is still off by a bit. It's 1444.482627745685.
    $endgroup$
    – Stan Shunpike
    2 days ago






  • 1




    $begingroup$
    @RodrigodeAzevedo Yes, this worked. This solved the issue. Fantastic, thank you so much for your help.
    $endgroup$
    – Stan Shunpike
    2 days ago
















0












0








0





$begingroup$


I have a data set. A matrix $X$, $1300 times 20$ and output vector $mathbf{y} in Bbb R^{20}$ $$mathbf{y} = begin{bmatrix} 100\100\vdots\100end{bmatrix}$$
I am trying to run OLS on this data with $boldsymbol{beta} geq mathbf{0}$ and additional inequality constraints.



I first attempted to solve without the inequality constraints with a Python function that uses coordinate descent. This converged and this test proved I could find a global minimum. But the code doesn't accept constraints beyond $boldsymbol{beta} geq mathbf{0}$, so it's not enough for my purposes.



I then tried another Python function that uses sequential quadratic programming (SQP), which didn't converge to the global minimum. It should produce the same result since it's the same problem, but it didn't. You can see the details of my code here:



how to stop fmin_slqsp from converging to local minimum?



I determined it's likely the SQP method reached a local minimum whereas the coordinate descent method didn't.



Why would sequential quadratic programming fail to find global minimum?










share|cite|improve this question











$endgroup$




I have a data set. A matrix $X$, $1300 times 20$ and output vector $mathbf{y} in Bbb R^{20}$ $$mathbf{y} = begin{bmatrix} 100\100\vdots\100end{bmatrix}$$
I am trying to run OLS on this data with $boldsymbol{beta} geq mathbf{0}$ and additional inequality constraints.



I first attempted to solve without the inequality constraints with a Python function that uses coordinate descent. This converged and this test proved I could find a global minimum. But the code doesn't accept constraints beyond $boldsymbol{beta} geq mathbf{0}$, so it's not enough for my purposes.



I then tried another Python function that uses sequential quadratic programming (SQP), which didn't converge to the global minimum. It should produce the same result since it's the same problem, but it didn't. You can see the details of my code here:



how to stop fmin_slqsp from converging to local minimum?



I determined it's likely the SQP method reached a local minimum whereas the coordinate descent method didn't.



Why would sequential quadratic programming fail to find global minimum?







positive-semidefinite quadratic-programming






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 2 days ago







Stan Shunpike

















asked 2 days ago









Stan ShunpikeStan Shunpike

1,81611438




1,81611438












  • $begingroup$
    Why don't you use CVXPY?
    $endgroup$
    – Rodrigo de Azevedo
    2 days ago










  • $begingroup$
    @RodrigodeAzevedo That looks promising. Do you have any recommendations for which methods specifically I should look at that would be useful for my case?
    $endgroup$
    – Stan Shunpike
    2 days ago










  • $begingroup$
    That is the whole point of CVXPY. You don't worry about methods. You just write up your optimization problem and CVXPY takes it from there. If the problem is not convex, CVXPY will complain. Good for prototyping.
    $endgroup$
    – Rodrigo de Azevedo
    2 days ago






  • 1




    $begingroup$
    It works much better but the solution is still off by a bit. It's 1444.482627745685.
    $endgroup$
    – Stan Shunpike
    2 days ago






  • 1




    $begingroup$
    @RodrigodeAzevedo Yes, this worked. This solved the issue. Fantastic, thank you so much for your help.
    $endgroup$
    – Stan Shunpike
    2 days ago




















  • $begingroup$
    Why don't you use CVXPY?
    $endgroup$
    – Rodrigo de Azevedo
    2 days ago










  • $begingroup$
    @RodrigodeAzevedo That looks promising. Do you have any recommendations for which methods specifically I should look at that would be useful for my case?
    $endgroup$
    – Stan Shunpike
    2 days ago










  • $begingroup$
    That is the whole point of CVXPY. You don't worry about methods. You just write up your optimization problem and CVXPY takes it from there. If the problem is not convex, CVXPY will complain. Good for prototyping.
    $endgroup$
    – Rodrigo de Azevedo
    2 days ago






  • 1




    $begingroup$
    It works much better but the solution is still off by a bit. It's 1444.482627745685.
    $endgroup$
    – Stan Shunpike
    2 days ago






  • 1




    $begingroup$
    @RodrigodeAzevedo Yes, this worked. This solved the issue. Fantastic, thank you so much for your help.
    $endgroup$
    – Stan Shunpike
    2 days ago


















$begingroup$
Why don't you use CVXPY?
$endgroup$
– Rodrigo de Azevedo
2 days ago




$begingroup$
Why don't you use CVXPY?
$endgroup$
– Rodrigo de Azevedo
2 days ago












$begingroup$
@RodrigodeAzevedo That looks promising. Do you have any recommendations for which methods specifically I should look at that would be useful for my case?
$endgroup$
– Stan Shunpike
2 days ago




$begingroup$
@RodrigodeAzevedo That looks promising. Do you have any recommendations for which methods specifically I should look at that would be useful for my case?
$endgroup$
– Stan Shunpike
2 days ago












$begingroup$
That is the whole point of CVXPY. You don't worry about methods. You just write up your optimization problem and CVXPY takes it from there. If the problem is not convex, CVXPY will complain. Good for prototyping.
$endgroup$
– Rodrigo de Azevedo
2 days ago




$begingroup$
That is the whole point of CVXPY. You don't worry about methods. You just write up your optimization problem and CVXPY takes it from there. If the problem is not convex, CVXPY will complain. Good for prototyping.
$endgroup$
– Rodrigo de Azevedo
2 days ago




1




1




$begingroup$
It works much better but the solution is still off by a bit. It's 1444.482627745685.
$endgroup$
– Stan Shunpike
2 days ago




$begingroup$
It works much better but the solution is still off by a bit. It's 1444.482627745685.
$endgroup$
– Stan Shunpike
2 days ago




1




1




$begingroup$
@RodrigodeAzevedo Yes, this worked. This solved the issue. Fantastic, thank you so much for your help.
$endgroup$
– Stan Shunpike
2 days ago






$begingroup$
@RodrigodeAzevedo Yes, this worked. This solved the issue. Fantastic, thank you so much for your help.
$endgroup$
– Stan Shunpike
2 days ago












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%2f3140376%2fwhy-would-sequential-quadratic-programming-fail-to-find-global-minimum%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%2f3140376%2fwhy-would-sequential-quadratic-programming-fail-to-find-global-minimum%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?