[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave Nonlinearly Constrained Optimization
From: |
Juan Pablo Carbajal |
Subject: |
Re: Octave Nonlinearly Constrained Optimization |
Date: |
Sat, 3 May 2014 17:13:57 +0200 |
On Sat, May 3, 2014 at 2:03 AM, Ether Jones <address@hidden> wrote:
> Can someone please show me how to set up the following problem in Octave:
>
> maximize (x+y)
>
> subject to constraints:
>
> 0 <= x <= 75
>
> 0 <= y <= 75
>
> 29.5 - sqrt(0.184*(x+y)^2 + x^2) >= 0.0
>
> 45.5 - sqrt(0.184*(x+y)^2 + y^2) >= 0.0
>
> I have solved it in Maxima, Python, AMPL/MINOS, and Excel, but am stuck on
> the proper setup and syntax for Octave.
>
> x = 17.2 y = 38.7
>
> Thank you.
>
>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave
>
Chek the "sqp" routine.