Findminimum of IntegralFindMinimum, NMinimize, etc. with external processIntegration does not give real...

How many Jimmys can fit?

Need a non-volatile memory IC with near unlimited read/write operations capability

Blocks from @ jafe

Strong Password Detection in Python

How can I use my cell phone's light as a reading light?

How do I separate enchants from items?

Why did Old English lose both thorn and eth?

Interpretation of non-significant results as "trends"

My professor has told me he will be the corresponding author. Will it hurt my future career?

Curly braces adjustment in tikz?

Can a landlord force all residents to use the landlord's in-house debit card accounts?

Users forgotting to regenerate PDF before sending it

Is there a formal/better word than "skyrocket" for the given context?

How to understand flavors and when to use combination of them?

run bash scripts in folder all at the same time

stuck {in/at} beta

Draw a diagram with rectangles

What was the profession 芸者 (female entertainer) called in Russia?

Tikz people in diagram

Four ships at the ocean with the same distance

As a supervisor, what feedback would you expect from a PhD who quits?

How should I ask for a "pint" in countries that use metric?

Other Space Shuttle O-ring failures

What is this strange structure on a mountain top in the Italian Alps?



Findminimum of Integral


FindMinimum, NMinimize, etc. with external processIntegration does not give real valueFindMinimum function does not produce minimum from near pointFindMinimum and WhenEventSimplifying Expressions for FindMinimumIssues with methods of FindMinimumCan you run FindMinimum excluding imaginary results?FindMinimum yields result, but still issues MachinePrecision digits errorFindMinimum Error - cvec: Constrained optimization is only supported with scalar valued variablesWhy is my integral not being evaluated?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2












$begingroup$


I am trying to find the value of $u$ that minimizes the following expression:



q = 1 - Exp[-u/b];
expr = Log[(1/(2 + b)) (1/(1 - q + q^2)) (q +
q^2 + (1 - q)^2 Exp[-u/2])/0.3553]; (*SEC BER equation *)
FindMinimum[Integrate[expr, {b, 1, 10}], {u, 0, 10}]


However, it does not yield any output. What's wrong with the code?










share|improve this question









$endgroup$








  • 1




    $begingroup$
    You may want to replace = by :=.
    $endgroup$
    – A.G.
    9 hours ago


















2












$begingroup$


I am trying to find the value of $u$ that minimizes the following expression:



q = 1 - Exp[-u/b];
expr = Log[(1/(2 + b)) (1/(1 - q + q^2)) (q +
q^2 + (1 - q)^2 Exp[-u/2])/0.3553]; (*SEC BER equation *)
FindMinimum[Integrate[expr, {b, 1, 10}], {u, 0, 10}]


However, it does not yield any output. What's wrong with the code?










share|improve this question









$endgroup$








  • 1




    $begingroup$
    You may want to replace = by :=.
    $endgroup$
    – A.G.
    9 hours ago














2












2








2





$begingroup$


I am trying to find the value of $u$ that minimizes the following expression:



q = 1 - Exp[-u/b];
expr = Log[(1/(2 + b)) (1/(1 - q + q^2)) (q +
q^2 + (1 - q)^2 Exp[-u/2])/0.3553]; (*SEC BER equation *)
FindMinimum[Integrate[expr, {b, 1, 10}], {u, 0, 10}]


However, it does not yield any output. What's wrong with the code?










share|improve this question









$endgroup$




I am trying to find the value of $u$ that minimizes the following expression:



q = 1 - Exp[-u/b];
expr = Log[(1/(2 + b)) (1/(1 - q + q^2)) (q +
q^2 + (1 - q)^2 Exp[-u/2])/0.3553]; (*SEC BER equation *)
FindMinimum[Integrate[expr, {b, 1, 10}], {u, 0, 10}]


However, it does not yield any output. What's wrong with the code?







numerical-integration mathematical-optimization






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 9 hours ago









jhon_wickjhon_wick

1796 bronze badges




1796 bronze badges








  • 1




    $begingroup$
    You may want to replace = by :=.
    $endgroup$
    – A.G.
    9 hours ago














  • 1




    $begingroup$
    You may want to replace = by :=.
    $endgroup$
    – A.G.
    9 hours ago








1




1




$begingroup$
You may want to replace = by :=.
$endgroup$
– A.G.
9 hours ago




$begingroup$
You may want to replace = by :=.
$endgroup$
– A.G.
9 hours ago










1 Answer
1






active

oldest

votes


















6












$begingroup$

You can do something like this.



Clear[expr];
q = 1 - Exp[-u/b];
expr[u_?NumericQ] :=
NIntegrate[
Log[(1/(2 + b)) (1/(1 - q + q^2)) (q + q^2 + (1 - q)^2 Exp[-u/2])/0.3553], {b, 1, 10}];


Now easy to optimize.



FindMinimum[expr[u], {u, 0, 10}]



{-10.5871, {u -> 1.2105}}







share|improve this answer









$endgroup$
















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "387"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f201657%2ffindminimum-of-integral%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









    6












    $begingroup$

    You can do something like this.



    Clear[expr];
    q = 1 - Exp[-u/b];
    expr[u_?NumericQ] :=
    NIntegrate[
    Log[(1/(2 + b)) (1/(1 - q + q^2)) (q + q^2 + (1 - q)^2 Exp[-u/2])/0.3553], {b, 1, 10}];


    Now easy to optimize.



    FindMinimum[expr[u], {u, 0, 10}]



    {-10.5871, {u -> 1.2105}}







    share|improve this answer









    $endgroup$


















      6












      $begingroup$

      You can do something like this.



      Clear[expr];
      q = 1 - Exp[-u/b];
      expr[u_?NumericQ] :=
      NIntegrate[
      Log[(1/(2 + b)) (1/(1 - q + q^2)) (q + q^2 + (1 - q)^2 Exp[-u/2])/0.3553], {b, 1, 10}];


      Now easy to optimize.



      FindMinimum[expr[u], {u, 0, 10}]



      {-10.5871, {u -> 1.2105}}







      share|improve this answer









      $endgroup$
















        6












        6








        6





        $begingroup$

        You can do something like this.



        Clear[expr];
        q = 1 - Exp[-u/b];
        expr[u_?NumericQ] :=
        NIntegrate[
        Log[(1/(2 + b)) (1/(1 - q + q^2)) (q + q^2 + (1 - q)^2 Exp[-u/2])/0.3553], {b, 1, 10}];


        Now easy to optimize.



        FindMinimum[expr[u], {u, 0, 10}]



        {-10.5871, {u -> 1.2105}}







        share|improve this answer









        $endgroup$



        You can do something like this.



        Clear[expr];
        q = 1 - Exp[-u/b];
        expr[u_?NumericQ] :=
        NIntegrate[
        Log[(1/(2 + b)) (1/(1 - q + q^2)) (q + q^2 + (1 - q)^2 Exp[-u/2])/0.3553], {b, 1, 10}];


        Now easy to optimize.



        FindMinimum[expr[u], {u, 0, 10}]



        {-10.5871, {u -> 1.2105}}








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 9 hours ago









        PlatoManiacPlatoManiac

        12.1k2 gold badges29 silver badges68 bronze badges




        12.1k2 gold badges29 silver badges68 bronze badges






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematica 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%2fmathematica.stackexchange.com%2fquestions%2f201657%2ffindminimum-of-integral%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

            Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

            Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

            Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m