Formula to make larger number equate to a lesser valueGreedy Algorithm Proofproving a greedy algorithm with a...

Meta programming: Declare a new struct on the fly

Why are on-board computers allowed to change controls without notifying the pilots?

Indicating multiple different modes of speech (fantasy language or telepathy)

Resetting two CD4017 counters simultaneously, only one resets

Golf game boilerplate

Reply ‘no position’ while the job posting is still there (‘HiWi’ position in Germany)

Have I saved too much for retirement so far?

Was the picture area of a CRT a parallelogram (instead of a true rectangle)?

Is there enough fresh water in the world to eradicate the drinking water crisis?

No idea how to draw this using tikz

I2C signal and power over long range (10meter cable)

Can I Retrieve Email Addresses from BCC?

How to deal with or prevent idle in the test team?

A workplace installs custom certificates on personal devices, can this be used to decrypt HTTPS traffic?

Is it okay / does it make sense for another player to join a running game of Munchkin?

Did US corporations pay demonstrators in the German demonstrations against article 13?

Teaching indefinite integrals that require special-casing

How will losing mobility of one hand affect my career as a programmer?

The most efficient algorithm to find all possible integer pairs which sum to a given integer

Would it be legal for a US State to ban exports of a natural resource?

How do I repair my stair bannister?

Lightning Web Component - do I need to track changes for every single input field in a form

Bob has never been a M before

Can a malicious addon access internet history and such in chrome/firefox?



Formula to make larger number equate to a lesser value


Greedy Algorithm Proofproving a greedy algorithm with a exchange argumentFormulate this scheduling problem as a linear programIs there a general, algebraic way of solving this seating arrangement problem?Finding a spanning tree using exactly k red edges in a graph with edges colored by red/blue in linear time.Derive discrete formula for priorization algorithmHow to obtain edge set that containing the widest path from s to t by partitioning and searching?question about isolation lemma.Finding an MST among all spanning trees with maximum of white edgesMathematically what is the most efficient plan













1












$begingroup$


I'm forming an algorithm to assign priority weights to certain jobs that need to be done. I need to integrate a factor of Must be done by time. Meaning, this job HAS to be run by a specific time.



I'm calculating the minutes until that time, e.g. 120 minutes from now, but how do I turn the larger the number into a lesser weight.



Example



Job 1: 300 minutes from now



Job 2: 12 minutes from now



Job 3: 25 minutes from now



I'm trying to just take the minutes from now values, and multiply them by an arbitrary multiplier. The issue is obvious. The 300 minutes would weight the most and the 25 minutes would weigh the least. I need the opposite. What's a good solution to this issue? I'm sure there's a pretty basic equation for this, so excuse my non-math-knowing skills.



FYI - the values that I'm assigning are arbitrary right now. I'll just tweak them and run scenarios until I feel the bias' are correct.










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    You could divide by the number of minutes instead of multiplying.
    $endgroup$
    – gandalf61
    Nov 7 '18 at 17:34










  • $begingroup$
    I just tried to take the upper bound by grabbing Max minutes, then subtracted the minutes from now from each job from the upper bound. It seems to be giving me what I'm looking for, though I feel like dividing may be the best bet. Any input?
    $endgroup$
    – James
    Nov 7 '18 at 18:02
















1












$begingroup$


I'm forming an algorithm to assign priority weights to certain jobs that need to be done. I need to integrate a factor of Must be done by time. Meaning, this job HAS to be run by a specific time.



I'm calculating the minutes until that time, e.g. 120 minutes from now, but how do I turn the larger the number into a lesser weight.



Example



Job 1: 300 minutes from now



Job 2: 12 minutes from now



Job 3: 25 minutes from now



I'm trying to just take the minutes from now values, and multiply them by an arbitrary multiplier. The issue is obvious. The 300 minutes would weight the most and the 25 minutes would weigh the least. I need the opposite. What's a good solution to this issue? I'm sure there's a pretty basic equation for this, so excuse my non-math-knowing skills.



FYI - the values that I'm assigning are arbitrary right now. I'll just tweak them and run scenarios until I feel the bias' are correct.










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    You could divide by the number of minutes instead of multiplying.
    $endgroup$
    – gandalf61
    Nov 7 '18 at 17:34










  • $begingroup$
    I just tried to take the upper bound by grabbing Max minutes, then subtracted the minutes from now from each job from the upper bound. It seems to be giving me what I'm looking for, though I feel like dividing may be the best bet. Any input?
    $endgroup$
    – James
    Nov 7 '18 at 18:02














1












1








1





$begingroup$


I'm forming an algorithm to assign priority weights to certain jobs that need to be done. I need to integrate a factor of Must be done by time. Meaning, this job HAS to be run by a specific time.



I'm calculating the minutes until that time, e.g. 120 minutes from now, but how do I turn the larger the number into a lesser weight.



Example



Job 1: 300 minutes from now



Job 2: 12 minutes from now



Job 3: 25 minutes from now



I'm trying to just take the minutes from now values, and multiply them by an arbitrary multiplier. The issue is obvious. The 300 minutes would weight the most and the 25 minutes would weigh the least. I need the opposite. What's a good solution to this issue? I'm sure there's a pretty basic equation for this, so excuse my non-math-knowing skills.



FYI - the values that I'm assigning are arbitrary right now. I'll just tweak them and run scenarios until I feel the bias' are correct.










share|cite|improve this question









$endgroup$




I'm forming an algorithm to assign priority weights to certain jobs that need to be done. I need to integrate a factor of Must be done by time. Meaning, this job HAS to be run by a specific time.



I'm calculating the minutes until that time, e.g. 120 minutes from now, but how do I turn the larger the number into a lesser weight.



Example



Job 1: 300 minutes from now



Job 2: 12 minutes from now



Job 3: 25 minutes from now



I'm trying to just take the minutes from now values, and multiply them by an arbitrary multiplier. The issue is obvious. The 300 minutes would weight the most and the 25 minutes would weigh the least. I need the opposite. What's a good solution to this issue? I'm sure there's a pretty basic equation for this, so excuse my non-math-knowing skills.



FYI - the values that I'm assigning are arbitrary right now. I'll just tweak them and run scenarios until I feel the bias' are correct.







linear-algebra algorithms scoring-algorithm






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 7 '18 at 15:57









JamesJames

1061




1061








  • 1




    $begingroup$
    You could divide by the number of minutes instead of multiplying.
    $endgroup$
    – gandalf61
    Nov 7 '18 at 17:34










  • $begingroup$
    I just tried to take the upper bound by grabbing Max minutes, then subtracted the minutes from now from each job from the upper bound. It seems to be giving me what I'm looking for, though I feel like dividing may be the best bet. Any input?
    $endgroup$
    – James
    Nov 7 '18 at 18:02














  • 1




    $begingroup$
    You could divide by the number of minutes instead of multiplying.
    $endgroup$
    – gandalf61
    Nov 7 '18 at 17:34










  • $begingroup$
    I just tried to take the upper bound by grabbing Max minutes, then subtracted the minutes from now from each job from the upper bound. It seems to be giving me what I'm looking for, though I feel like dividing may be the best bet. Any input?
    $endgroup$
    – James
    Nov 7 '18 at 18:02








1




1




$begingroup$
You could divide by the number of minutes instead of multiplying.
$endgroup$
– gandalf61
Nov 7 '18 at 17:34




$begingroup$
You could divide by the number of minutes instead of multiplying.
$endgroup$
– gandalf61
Nov 7 '18 at 17:34












$begingroup$
I just tried to take the upper bound by grabbing Max minutes, then subtracted the minutes from now from each job from the upper bound. It seems to be giving me what I'm looking for, though I feel like dividing may be the best bet. Any input?
$endgroup$
– James
Nov 7 '18 at 18:02




$begingroup$
I just tried to take the upper bound by grabbing Max minutes, then subtracted the minutes from now from each job from the upper bound. It seems to be giving me what I'm looking for, though I feel like dividing may be the best bet. Any input?
$endgroup$
– James
Nov 7 '18 at 18:02










1 Answer
1






active

oldest

votes


















0












$begingroup$

I think you intended inverse proportionality.



Given a set of jobs indexed with $j in {1, 2, ldots, n}$, and given time limits $t_j in mathbb{R}$ for each job $j$, the weights $w_j$ can be defined in the following way:
$$
w_j = displaystyle frac{1}{t_j}.
$$



Example




Job $1$: $300$ minutes from now



Job $2$: $12$ minutes from now



Job $3$: $25$ minutes from now




In this case the weights will be:
$$
begin{align}
w_1 &= frac{1}{300} approx 0.00333\
w_2 &= frac{1}{12} approx 0.08333\
w_3 &= frac{1}{25} = 0.4\
end{align}
$$






share|cite|improve this answer









$endgroup$













    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2988708%2fformula-to-make-larger-number-equate-to-a-lesser-value%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$

    I think you intended inverse proportionality.



    Given a set of jobs indexed with $j in {1, 2, ldots, n}$, and given time limits $t_j in mathbb{R}$ for each job $j$, the weights $w_j$ can be defined in the following way:
    $$
    w_j = displaystyle frac{1}{t_j}.
    $$



    Example




    Job $1$: $300$ minutes from now



    Job $2$: $12$ minutes from now



    Job $3$: $25$ minutes from now




    In this case the weights will be:
    $$
    begin{align}
    w_1 &= frac{1}{300} approx 0.00333\
    w_2 &= frac{1}{12} approx 0.08333\
    w_3 &= frac{1}{25} = 0.4\
    end{align}
    $$






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      I think you intended inverse proportionality.



      Given a set of jobs indexed with $j in {1, 2, ldots, n}$, and given time limits $t_j in mathbb{R}$ for each job $j$, the weights $w_j$ can be defined in the following way:
      $$
      w_j = displaystyle frac{1}{t_j}.
      $$



      Example




      Job $1$: $300$ minutes from now



      Job $2$: $12$ minutes from now



      Job $3$: $25$ minutes from now




      In this case the weights will be:
      $$
      begin{align}
      w_1 &= frac{1}{300} approx 0.00333\
      w_2 &= frac{1}{12} approx 0.08333\
      w_3 &= frac{1}{25} = 0.4\
      end{align}
      $$






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        I think you intended inverse proportionality.



        Given a set of jobs indexed with $j in {1, 2, ldots, n}$, and given time limits $t_j in mathbb{R}$ for each job $j$, the weights $w_j$ can be defined in the following way:
        $$
        w_j = displaystyle frac{1}{t_j}.
        $$



        Example




        Job $1$: $300$ minutes from now



        Job $2$: $12$ minutes from now



        Job $3$: $25$ minutes from now




        In this case the weights will be:
        $$
        begin{align}
        w_1 &= frac{1}{300} approx 0.00333\
        w_2 &= frac{1}{12} approx 0.08333\
        w_3 &= frac{1}{25} = 0.4\
        end{align}
        $$






        share|cite|improve this answer









        $endgroup$



        I think you intended inverse proportionality.



        Given a set of jobs indexed with $j in {1, 2, ldots, n}$, and given time limits $t_j in mathbb{R}$ for each job $j$, the weights $w_j$ can be defined in the following way:
        $$
        w_j = displaystyle frac{1}{t_j}.
        $$



        Example




        Job $1$: $300$ minutes from now



        Job $2$: $12$ minutes from now



        Job $3$: $25$ minutes from now




        In this case the weights will be:
        $$
        begin{align}
        w_1 &= frac{1}{300} approx 0.00333\
        w_2 &= frac{1}{12} approx 0.08333\
        w_3 &= frac{1}{25} = 0.4\
        end{align}
        $$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Mar 14 at 21:00









        simonetsimonet

        370111




        370111






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2988708%2fformula-to-make-larger-number-equate-to-a-lesser-value%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Nidaros erkebispedøme

            Birsay

            Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?