# forum.alglib.net

ALGLIB forum
 It is currently Fri Sep 22, 2023 12:07 pm

 All times are UTC

### Forum rules

1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.

 Page 1 of 1 [ 1 post ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Active Set Algorithm in VBAPosted: Tue Jun 07, 2011 12:36 pm

Joined: Tue Jun 07, 2011 12:14 pm
Posts: 1
Hello,

I am trying to solve a non-linear optimization problem with constraints using the VBA implementation of the AS algorithm. I found an example of the use of the Levenberg-Marquardt algorithm here: viewtopic.php?f=2&t=76. Is the AS algorithm used in the same way? Moreover, I did not fully grasp how I should include my target function / gradient. The example format seems to be the following:

Do While MinLMIteration(State)
X = State.X(0#)
Y = State.X(1#)
If State.NeedF then
State.F = Square(X-2#*Y)+Square(X-2#)+Square(Y-1#)
End If
If State.NeedFiJ then
State.Fi(0#) = X-2#*Y
State.Fi(1#) = X-2#
State.Fi(2#) = Y-1#
State.J(0#,0#) = 1#
State.J(0#,1#) = -2#
State.J(1#,0#) = 1#
State.J(1#,1#) = 0#
State.J(2#,0#) = 0#
State.J(2#,1#) = 1#
End If
Loop

To be sure, could you explain what the State.Fi and State.J statements mean?

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 1 post ]

 All times are UTC

#### Who is online

Users browsing this forum: Bing [Bot] and 4 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for: