This file shows a branch and bound algorithm in MATLAB but it is development code that is meant for understanding the algorithms. If you just have an MINLP problem that you'd like to solve, I'd recommend that you use either a program like AMPL or APMonitor. For a tutorial on solving a Mixed Integer problem, please refer to this video:
If you start at 8:30, you'll see how to set up an integer programming problem (by adding "int" to the variables names). The APOPT solver is an MINLP solver and will be able to solve your problem and it will do it much faster than this development MATLAB code.
If I just changed this objective function :minimize obj + y*y*(y+y+y) + y
then what about the constrains? They should also be changed?
Moreover, could you please tell me that I just need to change minlp.apm file? And no more verifications in other files? I almost cannot understand them line by line.
I just need to run a mixed integer nonlinear optimization with an objective function and constrains.
Justinian, there is additional information on vector and matrix operations in the documentation here:
It is an algebraic modeling language and matrix operations are supported although not as easily as MATLAB where matrices are a native structure.
Another strategy is to shift some of the pre- or post-processing to the MATLAB script and use APM for only the parts that need to be optimized. For example, if you Q * Q' can be done after the optimization, the results are returned to the MATLAB script where you can do this processing.