Searching Solver for a convex seperable Integer programm











up vote
0
down vote

favorite












I have given a problem of the form $min sum_{j=1}^n f_j(x_j)$, s.t. $sum_{j=1}^n g_j(x_j) leq b$. Both the $g_j$ and $f_j$ are convex functions and $x_j$ are integer, so its a convex seperable Integer programm.



Are there any solvers for this problem (preferably R or matlab, but ill take anything)?



Ive been googling but the only solution I found so far would be to transform the problem to a 0-1 knapsack problem and use an R solver. That would work, but I'd prefer a general solution without transforming the problem by hand first, because i have several problems of this type.










share|cite|improve this question






















  • What is the range for $x_j$ (so an upper bound)? Any MINLP solver should be able to solve this.
    – LinAlg
    Nov 17 at 23:15












  • The upper bound depends on the specific problem (I have several of the same form) but I can calculate it for each problem. So MINLP solvers work also for a full integer NLP? Can you recommend one?
    – StefanWK
    Nov 18 at 11:35










  • Typically MINLP solvers do not work so well since solving the nonlinear problems to optimality is difficult. Due to the separability however, you may be lucky.
    – LinAlg
    Nov 18 at 13:43















up vote
0
down vote

favorite












I have given a problem of the form $min sum_{j=1}^n f_j(x_j)$, s.t. $sum_{j=1}^n g_j(x_j) leq b$. Both the $g_j$ and $f_j$ are convex functions and $x_j$ are integer, so its a convex seperable Integer programm.



Are there any solvers for this problem (preferably R or matlab, but ill take anything)?



Ive been googling but the only solution I found so far would be to transform the problem to a 0-1 knapsack problem and use an R solver. That would work, but I'd prefer a general solution without transforming the problem by hand first, because i have several problems of this type.










share|cite|improve this question






















  • What is the range for $x_j$ (so an upper bound)? Any MINLP solver should be able to solve this.
    – LinAlg
    Nov 17 at 23:15












  • The upper bound depends on the specific problem (I have several of the same form) but I can calculate it for each problem. So MINLP solvers work also for a full integer NLP? Can you recommend one?
    – StefanWK
    Nov 18 at 11:35










  • Typically MINLP solvers do not work so well since solving the nonlinear problems to optimality is difficult. Due to the separability however, you may be lucky.
    – LinAlg
    Nov 18 at 13:43













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have given a problem of the form $min sum_{j=1}^n f_j(x_j)$, s.t. $sum_{j=1}^n g_j(x_j) leq b$. Both the $g_j$ and $f_j$ are convex functions and $x_j$ are integer, so its a convex seperable Integer programm.



Are there any solvers for this problem (preferably R or matlab, but ill take anything)?



Ive been googling but the only solution I found so far would be to transform the problem to a 0-1 knapsack problem and use an R solver. That would work, but I'd prefer a general solution without transforming the problem by hand first, because i have several problems of this type.










share|cite|improve this question













I have given a problem of the form $min sum_{j=1}^n f_j(x_j)$, s.t. $sum_{j=1}^n g_j(x_j) leq b$. Both the $g_j$ and $f_j$ are convex functions and $x_j$ are integer, so its a convex seperable Integer programm.



Are there any solvers for this problem (preferably R or matlab, but ill take anything)?



Ive been googling but the only solution I found so far would be to transform the problem to a 0-1 knapsack problem and use an R solver. That would work, but I'd prefer a general solution without transforming the problem by hand first, because i have several problems of this type.







convex-optimization discrete-optimization






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 17 at 20:11









StefanWK

727




727












  • What is the range for $x_j$ (so an upper bound)? Any MINLP solver should be able to solve this.
    – LinAlg
    Nov 17 at 23:15












  • The upper bound depends on the specific problem (I have several of the same form) but I can calculate it for each problem. So MINLP solvers work also for a full integer NLP? Can you recommend one?
    – StefanWK
    Nov 18 at 11:35










  • Typically MINLP solvers do not work so well since solving the nonlinear problems to optimality is difficult. Due to the separability however, you may be lucky.
    – LinAlg
    Nov 18 at 13:43


















  • What is the range for $x_j$ (so an upper bound)? Any MINLP solver should be able to solve this.
    – LinAlg
    Nov 17 at 23:15












  • The upper bound depends on the specific problem (I have several of the same form) but I can calculate it for each problem. So MINLP solvers work also for a full integer NLP? Can you recommend one?
    – StefanWK
    Nov 18 at 11:35










  • Typically MINLP solvers do not work so well since solving the nonlinear problems to optimality is difficult. Due to the separability however, you may be lucky.
    – LinAlg
    Nov 18 at 13:43
















What is the range for $x_j$ (so an upper bound)? Any MINLP solver should be able to solve this.
– LinAlg
Nov 17 at 23:15






What is the range for $x_j$ (so an upper bound)? Any MINLP solver should be able to solve this.
– LinAlg
Nov 17 at 23:15














The upper bound depends on the specific problem (I have several of the same form) but I can calculate it for each problem. So MINLP solvers work also for a full integer NLP? Can you recommend one?
– StefanWK
Nov 18 at 11:35




The upper bound depends on the specific problem (I have several of the same form) but I can calculate it for each problem. So MINLP solvers work also for a full integer NLP? Can you recommend one?
– StefanWK
Nov 18 at 11:35












Typically MINLP solvers do not work so well since solving the nonlinear problems to optimality is difficult. Due to the separability however, you may be lucky.
– LinAlg
Nov 18 at 13:43




Typically MINLP solvers do not work so well since solving the nonlinear problems to optimality is difficult. Due to the separability however, you may be lucky.
– LinAlg
Nov 18 at 13:43










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










If the range of $x_j$ is limited, you can formulate the problems in terms of binary variables $y_{jk}$, where $y_{jk}=1$ if $x_j=k$. The problem is then:
$$min_{y in{0,1}^{ntimes K}} left{ sum_j sum_k y_{jk} f_j(k) mid sum_j sum_k y_{jk} g_j(k) leq b, sum_k y_{jk}=1 right}$$
The advantage of separability carries over, so I expect the relaxation to be efficiently solvable.






share|cite|improve this answer





















  • thanks for your answers so far, ive been thinking about it and have posted another question on the topic:math.stackexchange.com/questions/3004893/…
    – StefanWK
    Nov 19 at 12:55













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',
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%2f3002757%2fsearching-solver-for-a-convex-seperable-integer-programm%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










If the range of $x_j$ is limited, you can formulate the problems in terms of binary variables $y_{jk}$, where $y_{jk}=1$ if $x_j=k$. The problem is then:
$$min_{y in{0,1}^{ntimes K}} left{ sum_j sum_k y_{jk} f_j(k) mid sum_j sum_k y_{jk} g_j(k) leq b, sum_k y_{jk}=1 right}$$
The advantage of separability carries over, so I expect the relaxation to be efficiently solvable.






share|cite|improve this answer





















  • thanks for your answers so far, ive been thinking about it and have posted another question on the topic:math.stackexchange.com/questions/3004893/…
    – StefanWK
    Nov 19 at 12:55

















up vote
1
down vote



accepted










If the range of $x_j$ is limited, you can formulate the problems in terms of binary variables $y_{jk}$, where $y_{jk}=1$ if $x_j=k$. The problem is then:
$$min_{y in{0,1}^{ntimes K}} left{ sum_j sum_k y_{jk} f_j(k) mid sum_j sum_k y_{jk} g_j(k) leq b, sum_k y_{jk}=1 right}$$
The advantage of separability carries over, so I expect the relaxation to be efficiently solvable.






share|cite|improve this answer





















  • thanks for your answers so far, ive been thinking about it and have posted another question on the topic:math.stackexchange.com/questions/3004893/…
    – StefanWK
    Nov 19 at 12:55















up vote
1
down vote



accepted







up vote
1
down vote



accepted






If the range of $x_j$ is limited, you can formulate the problems in terms of binary variables $y_{jk}$, where $y_{jk}=1$ if $x_j=k$. The problem is then:
$$min_{y in{0,1}^{ntimes K}} left{ sum_j sum_k y_{jk} f_j(k) mid sum_j sum_k y_{jk} g_j(k) leq b, sum_k y_{jk}=1 right}$$
The advantage of separability carries over, so I expect the relaxation to be efficiently solvable.






share|cite|improve this answer












If the range of $x_j$ is limited, you can formulate the problems in terms of binary variables $y_{jk}$, where $y_{jk}=1$ if $x_j=k$. The problem is then:
$$min_{y in{0,1}^{ntimes K}} left{ sum_j sum_k y_{jk} f_j(k) mid sum_j sum_k y_{jk} g_j(k) leq b, sum_k y_{jk}=1 right}$$
The advantage of separability carries over, so I expect the relaxation to be efficiently solvable.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Nov 18 at 13:47









LinAlg

7,6791520




7,6791520












  • thanks for your answers so far, ive been thinking about it and have posted another question on the topic:math.stackexchange.com/questions/3004893/…
    – StefanWK
    Nov 19 at 12:55




















  • thanks for your answers so far, ive been thinking about it and have posted another question on the topic:math.stackexchange.com/questions/3004893/…
    – StefanWK
    Nov 19 at 12:55


















thanks for your answers so far, ive been thinking about it and have posted another question on the topic:math.stackexchange.com/questions/3004893/…
– StefanWK
Nov 19 at 12:55






thanks for your answers so far, ive been thinking about it and have posted another question on the topic:math.stackexchange.com/questions/3004893/…
– StefanWK
Nov 19 at 12:55




















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


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


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%2f3002757%2fsearching-solver-for-a-convex-seperable-integer-programm%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

QoS: MAC-Priority for clients behind a repeater

Ивакино (Тотемский район)

Can't locate Autom4te/ChannelDefs.pm in @INC (when it definitely is there)