From: John Wang on 11 Jan 2010 23:19 I am working on a binary non-linear programming. The objective function is exponential. For example, Maximize -exp(-(2*(x(1)+x(2)))^1.2)*exp(-(1*(x(3)+x(4)))^1.2) Constraint: x(1)+x(3)=1; x(2)+x(4)=1; x(1)+x(2) >= x(3)+x(4) x(i)={0 or 1}, i=1, 2, 3, 4 I never solve the binary non-linear programming before. Shall I use GA or try some solvers? But GA can not specify the binary constraints. I tried minlp from tomlab. But the Hessian matrix is too complex to compute and 1/0^0.8 can occur, which will make the result inf. Anyone can help?? Thanks a lot.
From: Johan Löfberg on 12 Jan 2010 04:15 Is this the size of problems you really intend to solve? In tjhat case, just solve it by enumeration. In this case, you immediately see that out of the 16 combinations, there is only one feasible, X = [1 1 0 0] "John Wang" <huiwang223(a)gmail.com> wrote in message <higt7n$gmp$1(a)fred.mathworks.com>... > I am working on a binary non-linear programming. The objective function is exponential. For example, > > Maximize -exp(-(2*(x(1)+x(2)))^1.2)*exp(-(1*(x(3)+x(4)))^1.2) > > Constraint: > x(1)+x(3)=1; > x(2)+x(4)=1; > x(1)+x(2) >= x(3)+x(4) > > x(i)={0 or 1}, > i=1, 2, 3, 4 > > I never solve the binary non-linear programming before. Shall I use GA or try some solvers? But GA can not specify the binary constraints. > > I tried minlp from tomlab. But the Hessian matrix is too complex to compute and 1/0^0.8 can occur, which will make the result inf. > > Anyone can help?? Thanks a lot.
From: John Wang on 12 Jan 2010 09:47 Thanks for the reply. This is a just an example. The actual problem size will be bigger. The variable will be 25. Then that will be 2^25 possible combinations. Enumeration probably is a good way to do that. John €€€"Johan Löfberg" <loefberg(a)control.ee.ethz.ch> wrote in message <hihej9$be4$1(a)fred.mathworks.com>... > Is this the size of problems you really intend to solve? In tjhat case, just solve it by enumeration. In this case, you immediately see that out of the 16 combinations, there is only one feasible, X = [1 1 0 0] > > "John Wang" <huiwang223(a)gmail.com> wrote in message <higt7n$gmp$1(a)fred.mathworks.com>... > > I am working on a binary non-linear programming. The objective function is exponential. For example, > > > > Maximize -exp(-(2*(x(1)+x(2)))^1.2)*exp(-(1*(x(3)+x(4)))^1.2) > > > > Constraint: > > x(1)+x(3)=1; > > x(2)+x(4)=1; > > x(1)+x(2) >= x(3)+x(4) > > > > x(i)={0 or 1}, > > i=1, 2, 3, 4 > > > > I never solve the binary non-linear programming before. Shall I use GA or try some solvers? But GA can not specify the binary constraints. > > > > I tried minlp from tomlab. But the Hessian matrix is too complex to compute and 1/0^0.8 can occur, which will make the result inf. > > > > Anyone can help?? Thanks a lot.
|
Pages: 1 Prev: Copula Estimation - One Step Maximum Likelihood Next: Machine learning and classification |