<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic 回复： Constrained nonlinear optimization in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1283192#M533271</link>
    <description>&lt;P&gt;&lt;SPAN class="lia-link-disabled lia-page-link lia-link-navigation" style="color: #666666;"&gt;&lt;SPAN&gt;Hello,cah_londo.I meet the same question with you--Constrained nonlinear optimization. Have you solved your problem?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-link-disabled lia-page-link lia-link-navigation" style="color: #666666;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2010 09:18:37 GMT</pubDate>
    <dc:creator>enotsss</dc:creator>
    <dc:date>2010-10-19T09:18:37Z</dc:date>
    <item>
      <title>Constrained nonlinear optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1071963#M475037</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;Hi there,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;I have a constrained nonlinear optimization problem. I've tried to see and use Constrained Nonlinear Optimization.vi, but I got stuck with defining the constrained. When I looked for some help, it only shows &lt;SPAN class="Monospace"&gt;a template (labview\vi.lib\gmath\NumericalOptimization\cno_objective 
function template.vit&lt;/SPAN&gt;) which not giving much and real example.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;I have some experiences using 'fmincon' in Matlab. Although I know that we can use it in MathScript, but I want to get the result purely from LabView, not connecting and using Matlab 'fmincon' algorithm. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;A simple example I took from Matlab; If I have function &lt;SPAN style="font-style: italic"&gt;f(x) = –x1*x2*x3&lt;/SPAN&gt; and the constraint is &lt;SPAN style="font-style: italic"&gt;0 &amp;lt;= x1 + 2*x2 + 2*x3 &amp;lt;= 72&lt;/SPAN&gt;. How to write the constraint function to be connected into Constrained Nonlinear Optimization.vi ? Can someone help me ?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;PS: Those equestions (function and constrained) are just examples for my case. If someone already have another example which involving defining the constraints function, I would like to know it.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;Thank you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;Cah_londo &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2010 00:39:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1071963#M475037</guid>
      <dc:creator>cah_londo</dc:creator>
      <dc:date>2010-02-14T00:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Constrained nonlinear optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1071965#M475039</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;cah_londo wrote: &lt;BR /&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;Hi there,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt; If someone already have another example which involving defining the constraints function, I would like to know it.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;Thank you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;Cah_londo &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="verdana,geneva" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try &lt;SPAN class="noindex"&gt;&lt;SPAN class="Monospace"&gt;..\labview\examples\math\curvefit.llb&lt;/SPAN&gt; for an example of using the Constrained Nonlinear Optimization VI.&lt;/SPAN&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2010 00:48:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1071965#M475039</guid>
      <dc:creator>Giedrius.S</dc:creator>
      <dc:date>2010-02-14T00:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Constrained nonlinear optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1072728#M475368</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hi Giedrius,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Thanks for your advice. Yes indeed, it has an example of how to use Constraint Nonlinear Optimization.vi. However, when I opened the Static VI Reference as the input for objective and constraint function, I saw a text block stated that there are "&lt;EM&gt;no equality and inequality constraints for this problem&lt;/EM&gt;". On the other hand, an example of how to implement both equality and inequality constraints is the one I'm looking for.To be more precise, how to write&lt;FONT face="verdana,geneva"&gt; my constraints,&lt;/FONT&gt;&lt;SPAN class="noindex"&gt;&lt;FONT face="verdana,geneva"&gt;&lt;SPAN style="font-style: italic"&gt; 0 &amp;lt;= x1 + 2*x2 + 2*x3 &amp;lt;= 72 &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;? &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Cah Londo&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2010 23:02:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1072728#M475368</guid>
      <dc:creator>cah_londo</dc:creator>
      <dc:date>2010-02-15T23:02:01Z</dc:date>
    </item>
    <item>
      <title>回复： Constrained nonlinear optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1283192#M533271</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-link-disabled lia-page-link lia-link-navigation" style="color: #666666;"&gt;&lt;SPAN&gt;Hello,cah_londo.I meet the same question with you--Constrained nonlinear optimization. Have you solved your problem?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-link-disabled lia-page-link lia-link-navigation" style="color: #666666;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2010 09:18:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1283192#M533271</guid>
      <dc:creator>enotsss</dc:creator>
      <dc:date>2010-10-19T09:18:37Z</dc:date>
    </item>
    <item>
      <title>回复： Constrained nonlinear optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1285740#M533668</link>
      <description>&lt;P&gt;Hi enotsss,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I also found difficulties to apply boundaries in LabView. In fact, I gave up on this.&lt;/P&gt;
&lt;P&gt;Fortunately, I still can solve the problem with Matlab. If you still need to use LabView, probably you can use SIT connection after you finish with your nonlinear optimization process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck !&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2010 20:02:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1285740#M533668</guid>
      <dc:creator>cah_londo</dc:creator>
      <dc:date>2010-10-20T20:02:47Z</dc:date>
    </item>
    <item>
      <title>回复： Constrained nonlinear optimization</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1286480#M533786</link>
      <description>&lt;P&gt;Thank you, cah_londo! In fact, I intended to write a paper about the vi's application in engineering . So, I have no choise except I give up my plan. Yesterday, I called to the expert work in NI for help, but he didn't know how to use that vi either. I felt very disappointed and helpless. I solved the problem by C++ program, but you know , it's too long and not convenient. I deside to resarch that example and wait for help. Can somebody help me?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2010 12:26:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Constrained-nonlinear-optimization/m-p/1286480#M533786</guid>
      <dc:creator>enotsss</dc:creator>
      <dc:date>2010-10-21T12:26:20Z</dc:date>
    </item>
  </channel>
</rss>

