Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: optimisation-fgoalattain usage
Replies: 1   Last Post: Nov 16, 2005 11:29 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Marcelo Marazzi

Posts: 24
Registered: 8/29/05
Re: optimisation-fgoalattain usage
Posted: Nov 16, 2005 11:29 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Can you post the code wrote, along with the
output that fgoalattain generates?

Please have the function display detailed output:
Set the option Display to 'iter' like this:
options = optimset('Display','iter');
and then pass "options" to fgoalattain.

-marcelo

sowmya wrote:
> i am unable to write the correct matlab code for the following
> problem : kindly help!
>
> MIN G1 = s1+ ; (satisfy exposure goal)
> MIN G2 = s2- ; (satisfy budget goal)
>
> sub to
> 4x1 + 8x2 + (s1+) - (s1-) = 45 (exposure goal)
> 8x1 + 24x2 + (s2+) - (s2-) =100(budget goal)
> x1+2x2 <=10 ( personnel limit)
> x1 <=6 (radio limit)
>
> x1,x2,s1+,s1-,s2+,s2- >=0
>
> combined objective : 2G1 + G2 = 2(s1+) + (s2-)
>
> required result: z=10 ; x1=5; x2=2.5 ; s1+ = 5; rest all=0
>
> i am not getting the correct result either...plz plz help
>
> sowmya




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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.