help-octave
[Top][All Lists]
Advanced

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

sqp optimization


From: Matheus Moreira
Subject: sqp optimization
Date: Tue, 17 Jul 2018 13:28:25 -0500 (CDT)

Hi guys,

I am trying to run a code, but i don't know how to implement it. I have a
function, which I want to optimize. I need to use some nonlinear constaints,
but they are parts of the function that I am optimizing. So, I created a
function for each constraints: 


x0 = [0.56;12;1.1;0.4;2.5;22;0.04]

lb = [0.1;10;1;0;1;15;0.03]

ub = [1.0;16;2;0.5;4;30;0.06]

function rest = h
  rest = address@hidden; @anginjIImai] 
endfunction

[x, obj, info, iter, nf, lambda] = sqp (x0, @rend,[],@h,lb,ub)


I got the following warning: "error: octave_base_value::resize (): wrong
type argument 'function handle'"

May someone help me?
Thanks!



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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