Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube Google+
Results 1 to 3 of 3
  1. #1
    Junior Member lPainel's Avatar
    Join Date
    May 2012
    Posts
    0
    Downloads
    0
    Uploads
    0

    How do i maximise, (a*n1+b*n2+c*n3)<d, when n1, n2 and n3 are real positive

    unknown integers...? and the coefficients a, b, c and d are unique and known with (a,b,c)<d. Is there a known procedure? I can brute force a solution(s), i just wonder if there is a better way.
    and a,b,c and d are real and positive.
    Gianlino, i'd like to find values where the lhs is at its maximum value with respect to d. Ideally when n1+n2+n3 is small. For example, when a=2.5, b=1.5, c=1.1



    (n1) , (n2) , (n3) ,(a*n1+b*n2+c*n3) , d
    2.0000, 1.0000, 5.0000, 12.0000, 12.0000
    3.0000, 3.0000, 0, 12.0000, 12.1000
    1.0000, 2.0000, 6.0000, 12.1000, 12.2000
    3.0000, 1.0000, 3.0000, 12.3000, 12.3000
    2.0000 2.0000, 4.0000, 12.4000, 12.4000

    etc.
    note those values are for (a*n1+b*n2+c*n3)
    note those values are for (a*n1+b*n2+c*n3) less than are equal to d
    You can rewrite the constraints as:

    0
    it seems yahoo cuts off text with a less than or equal to symbols, irritating...
    You can rewrite the constraints as:
    0 less than n1 less than (d/a)
    0 less than n2 less than (d-a*n1)/b
    0 less than n3 less than or equal to (-a*n1*n2-b*n2*n3+d)/c
    which might be quicker but is still ugly.

  2. #2
    Junior Member gianlino's Avatar
    Join Date
    Jun 2012
    Posts
    1
    Downloads
    0
    Uploads
    0
    One can maximize a function but not an inequality. So what are you really asking?

  3. #3
    Junior Member Yin's Avatar
    Join Date
    Jan 2009
    Posts
    10
    Downloads
    0
    Uploads
    0
    I am thinking about using Lagrange Multipliers and let f(n,n n) = an + bn + cn.

    Rewrite all of your constraints as follows

    ann + bnn + cn d
    an + bn < d
    an < d

    f = <a,b,c> but since a,b, and c are positive, just treat the inequalities as equalities and continue the way you would with Lagrange Multipliers.

    There probably is a cleverer solution.

    Yin


Similar Threads

  1. Replies: 0
    Last Post: 12-30-2010, 02:00 PM
  2. Replies: 0
    Last Post: 03-03-2009, 02:08 AM
  3. videos on internet won't maximise?
    By renz carlo p in forum Internet
    Replies: 1
    Last Post: 12-17-2008, 01:59 AM
  4. Replies: 0
    Last Post: 11-24-2008, 04:36 PM
  5. how can i MAXIMISE my prescence on the internet?
    By indigoprime79 in forum Internet
    Replies: 1
    Last Post: 05-04-2008, 03:54 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 12:13 AM.
Powered by vBulletin® Version 4.2.5
Copyright © 2024 vBulletin Solutions Inc. All rights reserved.