help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: function minimization


From: Jason Moore
Subject: Re: function minimization
Date: Tue, 26 Jun 2012 13:28:47 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1


You could try GNU glpk and tell the LP solver to ignore the constraints by setting CTYPE to 'F'.

http://www.gnu.org/software/octave/doc/interpreter/Linear-Programming

Might not be as efficient as what has already been suggested but another thing for you to try.

Regards,

Jason


On 06/26/2012 01:00 PM, Michael Teitelbaum wrote:
Hi,
I am on octave beginner, trying to minimize a function of 2 variables.  I have the function ready, but I'm not sure where to go from here:

f = (A(4,4) * 1400 * A(4,3) / (A(4,3) + x) * y + 8 /1400 * (A(4,4) * 1400 * A(4,3) / (A(4,3) + x) * y + A(3,4) * 1400 * A(3,3) / (A(3,3) + x) * y) / 2 - A(3,4) * 1400 * A(3,3) / (A(3,3) + x) * y  - A(4,6)) ^ 2 + (A(5,4) * 1400 * A(5,3) / (A(5,3) + x) * y + 8 /1400 * (A(5,4) * 1400 * A(5,3) / (A(5,3) + x) * y + A(4,4) * 1400 * A(4,3) / (A(4,3) + x) * y) / 2 - A(4,4) * 1400 * A(4,3) / (A(4,3) + x) * y - A(5,6)) ^ 2 

I want octave to find the x and y values that minimize f.  I looked in the octave manual under "optimization" and found several options, but could not figure out how to use them.

-Thanks


_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave


reply via email to

[Prev in Thread] Current Thread [Next in Thread]