Date  File  Comment by  Comment  Rating 

18 Mar 2015  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  John Hedengren  Hi Prateek. I'd recommend not using this script but instead to use the MATLAB or Python interface to APMonitor. Here is the APMonitor model file: Variables
It returns the answer of x1=3, x2=6. You can either solve it online through a webbrowser at http://apmonitor.com/online/view_pass.php or else through the MATLAB or Python interfaces here: http://apmonitor.com Please let me know if you need any additional help. John Hedengren 

18 Mar 2015  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  Prateek  hello sir, i want to solve the basic integer problem as mentioned below: maximize f = 3*x1 + 4*x2
so , i have modified the objective function and constraints in minlp.apm file, but i am getting wrong answer. I think i have to modify the minlp.apm file and program also according to the objective function and constraints mentioned above. can you tell me, where i have to change ??? Thanks pk 

10 Mar 2015  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  John Hedengren  Aitor, you can't currently use it with external functions. Those functions would need first and second derivative information of the constraints and objective through automatic differentiation, adjoint methods, or with finite differencing (slow and hard to control balance between machine precision and accuracy of gradients). If gradients are available, then it should be possible with some minor code modifications. This file submission example uses an external server as a webservice to provide gradients. 

09 Mar 2015  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  Aitor  Thank you for your work. I have one question: can I use this tool with external responses? In my case the constraints are obtained by other software; there is no an analytical expression for the nonlinear constraints. I try to minimize a linear function subject to nonlinear constraints with continuum and integer design variables.


01 Feb 2015  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  hsieh weikang  Thanks for your submission


19 Dec 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  John Hedengren  Please see the following link for additional information on MINLP including a MATLAB and Python interface to the Mixed Integer Nonlinear Programming solver, APOPT. http://apmonitor.com/me575/index.php/Main/DiscreteOptimization 

29 Nov 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  John Hedengren  Amirhosein, there is an integer tolerance (possibly 1e3). As long as the value is within that tolerance of an integer value, it is declared as an integer and accepted as a potential solution. Could you send me a copy of your files at john.hedengren@byu.edu if this isn't the issue? 

23 Nov 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  Amirhosein Jafari  I have 2 question.


02 Sep 2014  Model Predictive Control Model Predictive Control with discrete, continuous, linear, or nonlinear models.  yang  
08 Aug 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  Emre Savas  One last question, Where exactly I should put csv_load() command in minlp.m file that you provide in your submission? I think this is why I can't retrieve the data from csv file. I am using minlp.m file that you submitted in this page. Thanks for your help 

07 Aug 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  John Hedengren  Below is a simple model file that demonstrates how to load in external parameters into APMonitor. You can replace the File *.csv section with loading a CSV file of your choice through MATLAB with the csv_load() function. For testing, just copy the lines below and insert into the webinterface at: http://apmonitor.com/online/view_pass.php Constants
Parameters
Intermediates


07 Aug 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  Emre Savas  I have tried to do it in either way, but I am always getting this error: Error using urlreadwrite (line 90)
Error in urlread (line 36)
Error in apm_sol (line 7)
Error in minlp (line 160)
what I did was;
apm_info (server, app, 'FV', 'c[1]')
this code in minlp.m file.. I am getting the same error in either methods.


07 Aug 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  John Hedengren  The easiest way is probably as a CSV file and then load the data file with the command: csv_load (server, app, csv_filename) You'll need the APM MATLAB toolbox library that you can download from APMonitor.com. If you have the values in MATLAB you can also declare your parameters as FVs (fixed values) to create a way to load values dynamically such as: apm_info (server, app, 'FV', 'c[1][5][2][25]')
Unfortunately there are only convenient ways to load in 2D matrices in APMonitor. 

06 Aug 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  Emre Savas  John, I would like to assign different numbers to each cell of my matrix, which are independent of other variables. i.e:


06 Aug 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  John Hedengren  Okkes, you may find it easier to declare a constants and then use vectors and arrays within APMonitor to define variables and/or equations. Here is an example: Constants
Variables
Equations
Here is some additional information: http://apmonitor.com/wiki/index.php/Main/Arrays You can also submit a question to the APMonitor Discussion Forum here: http://apmonitor.com/wiki/index.php/Main/UsersGroup Let me know if you have any additional questions. 

06 Aug 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  Emre Savas  Thanks for your submission. It's quite userfriendly toolbox. I have a question. I need to create a matrix array (i.e f(i,j) where i and j are indices) using the parameters I define in my program. However, I would like to create it in a for loop statement to make it easier. It is quite painful to assign each cell of the array as an equation, if the dimension of indices (i and j) are too large. Is there any way to do this? Thanks,


17 Apr 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  Magina  
26 Mar 2014  Model Predictive Control Model Predictive Control with discrete, continuous, linear, or nonlinear models.  kullachart bunklanson  Thanks 

02 Mar 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  Elham  Hi John thanks. so you mean there is nothing available in MATLAB?


10 Feb 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  John Hedengren  Elham, 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: http://youtu.be/i8WS6HlE8qM 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. John 

09 Feb 2014  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  Elham  Hi
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.


27 Jun 2013  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  justinian555  okay,thanks for your reply 

26 Jun 2013  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  John Hedengren  Justinian, there is additional information on vector and matrix operations in the documentation here: http://apmonitor.com/wiki/index.php/Main/Arrays 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 postprocessing 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. 

26 Jun 2013  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  justinian555  Hello could apm file key matrix??
Thank Justinian 

25 Jun 2013  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  John Hedengren  Ziba, you need to change the following line in the minlp.apm file: minimize obj + y[1]*y[4]*(y[1]+y[2]+y[3]) + y[3] to be your specific objective function. You should also look at the APM MATLAB toolbox that gives you more flexibility and allows you to solve with the APOPT solver which is much faster than this version because all of the subNLP problems in the branch and bound are not solved with MATLAB but with optimized compiled code. http://apmonitor.com/wiki/index.php/Main/MATLAB The purpose of this submission is to demonstrate branch and bound algorithms in MATLAB, not necessarily as optimized code. The APOPT through APM MATLAB toolbox is many times faster than this version. The advantage of this version is that you can use any NLP solver to solve the relaxed subproblems and you also have the source code instead of using it as a webservice. John 

25 Jun 2013  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  Ziba  Hello If I want to use minlp as a function in my program how should I introduce my objective function to this function. I will be thankful if let me know the exact format for calling minlp function. Thank yoy


15 Apr 2013  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  John Hedengren  Yes, the x represent integer variables. You can change the problem by opening minlp.apm with a text editor. This is a developmental version of an MINLP solver. For a much faster solver, use the "built in" branch and bound capabilities of APOPT through APM MATLAB. http://apmonitor.com/wiki/index.php/Main/MATLAB Here is an example with integer variables that can be solved through a webinterface: http://apmonitor.com/online/view_pass.php?f=minlp.apm 

15 Apr 2013  MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB  ahmad  Hi, sorry how we can input our own objective functions? by the way, x represent integer variables and y represents nonintegeres, yes? 
