The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: fgoalattain: 3 GoalsExact to Achieve and 1 function to minimize
Replies: 6   Last Post: Jan 3, 2013 1:23 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Alan Weiss

Posts: 1,430
Registered: 11/27/08
Re: fgoalattain: 3 GoalsExact to Achieve and 1 function to minimize
Posted: Jan 2, 2013 10:37 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 12/27/2012 3:20 PM, Allamarein wrote:
>> Perhaps I should use 'nonlcon' and modify MyFun so that:
>> Function [c,ceq] = Const(x,goal)
>> [f4, f1_3] = MyFun(x)
>> % f1_3 = y(1:3)
>> % f4 = y(4)
>> ceq = f1_3 - goal
>> end
>> And minimize f4. However any evaluation of my function, in actual a double computational effort. I would avoid this 'brute force' approach
>> What's your opinion?

> The new question is: do you know an approach to avoid a double computational effort?

There is relatively new documentation on how to avoid double computation:

Also, there is an example showing how to use exact goal attainment
versus non-exact attainment:

Alan Weiss
MATLAB mathematical toolbox documentation

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.