<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Alex,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>As the developer of OPTI I wrote most of the MEX interfaces, including the very basic CLP interface. I have never tried the CLP SLP solver, but if you have any questions regarding the interfacing of nonlinear solvers via MEX, then I am happy to help. I have been following this post and it sounds like it could be quite a bit of work to implement a general NLP interface (with a general nonlinear objective and nonlinear constraints called back to MATLAB) using CLP. John would be best to comment here, but typically interior point and sequential quadratic algorithms perform better for problems with largely nonlinear functions, than a sequential linear approach. Of course if your problem is only mildly nonlinear (bilinear or even quadratic), then the SLP approach may also work acceptably.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jonathan<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> clp-bounces@list.coin-or.org [mailto:clp-bounces@list.coin-or.org] <b>On Behalf Of </b>alex Dowson<br><b>Sent:</b> Saturday, 23 March 2013 6:13 p.m.<br><b>To:</b> Ted Ralphs<br><b>Cc:</b> clp@list.coin-or.org; John Forrest<br><b>Subject:</b> Re: [Clp] ClpSimplexNonlinear question<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>Hi<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>Thank you for suggestion. I will get something out of this.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>alex<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p></div><div><div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> <o:p></o:p></span></p></div><div><div><p class=MsoNormal style='background:whitesmoke'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> <a href="mailto:ted@Lehigh.EDU" title="ted@Lehigh.EDU">Ted Ralphs</a> <o:p></o:p></span></p></div><div><p class=MsoNormal style='background:whitesmoke'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>Sent:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> Saturday, March 23, 2013 4:28 AM<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:whitesmoke'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>To:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> <a href="mailto:alexdowson@hotmail.com" title="alexdowson@hotmail.com">alex Dowson</a> <o:p></o:p></span></p></div><div><p class=MsoNormal style='background:whitesmoke'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>Cc:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> <a href="mailto:john.forrest@fastercoin.com" title="john.forrest@fastercoin.com">John Forrest</a> ; <a href="mailto:clp@list.coin-or.org" title="clp@list.coin-or.org">clp@list.coin-or.org</a> <o:p></o:p></span></p></div><div><p class=MsoNormal style='background:whitesmoke'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'>Subject:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> Re: [Clp] ClpSimplexNonlinear question<o:p></o:p></span></p></div></div></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-family:"Calibri","sans-serif";color:black'>If you are trying to call COIN solvers from Matlab, you might save yourself some trouble looking at this:<br><br><a href="http://www.i2c2.aut.ac.nz/Wiki/OPTI/index.php/Main/WhatIsOPTI">http://www.i2c2.aut.ac.nz/Wiki/OPTI/index.php/Main/WhatIsOPTI</a>?<br><br>I haven't used it, but it looks pretty complete and well-supported.<br><br>Cheers,<br><br>Ted<o:p></o:p></span></p><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>On Thu, Mar 21, 2013 at 12:49 AM, alex Dowson <<a href="mailto:alexdowson@hotmail.com" target="_blank">alexdowson@hotmail.com</a>> wrote:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>Dear John<br><br>Thank you for code. I will try this.<br><br>Actually I wanted to make .mex file for matlab that I can call clp SLP solver from matlab so I have to understand how can pass<br>function and constraint from matlab without .mps file.<br><br>Also sorry about duplicate post I will follow rules. <o:p></o:p></span></p><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'><br><br><br><br>Alex<br><br><br>-----Original Message----- From: John Forrest<o:p></o:p></span></p></div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>Sent: Wednesday, March 20, 2013 8:16 PM<br>Cc: <a href="mailto:clp@list.coin-or.org" target="_blank">clp@list.coin-or.org</a> <o:p></o:p></span></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-family:"Calibri","sans-serif";color:black'><br>Subject: Re: [Clp] ClpSimplexNonlinear question<o:p></o:p></span></p></div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-family:"Calibri","sans-serif";color:black'>Alex,<br><br>I modified an example and attach it and solution log. I ran it as<br><br>testQP2 ../../../Data/Sample/share2qp.mps<br><br>that should show you how to load a model and a quadratic function. With<br>current code constraints are linear.<br><br>John Forrest<br><br><br><br><br><br><br><br><o:p></o:p></span></p></div></div><div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>_______________________________________________<br>Clp mailing list<br><a href="mailto:Clp@list.coin-or.org" target="_blank">Clp@list.coin-or.org</a><br><a href="http://list.coin-or.org/mailman/listinfo/clp" target="_blank">http://list.coin-or.org/mailman/listinfo/clp</a> <br>_______________________________________________<br>Clp mailing list<br><a href="mailto:Clp@list.coin-or.org" target="_blank">Clp@list.coin-or.org</a><br><a href="http://list.coin-or.org/mailman/listinfo/clp" target="_blank">http://list.coin-or.org/mailman/listinfo/clp</a><o:p></o:p></span></p></div></div></div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'><br><br clear=all><br>-- <br>Dr. Ted Ralphs<br>Associate Professor, Lehigh University<br>(610) 628-1280<br>ted 'at' lehigh 'dot' edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><o:p></o:p></span></p></div></div></div></div></body></html>