Solver Problem

Diskutiere und helfe bei Solver Problem im Bereich Microsoft Office im Windows Info bei einer Lösung; Hello, I have a problem with my Master Thesis. I have to find three variables that work with my model. The problem there is, that each variable... Dieses Thema im Forum "Microsoft Office" wurde erstellt von MartinKuhlmann, 12. September 2018.

  1. Solver Problem


    Hello,

    I have a problem with my Master Thesis. I have to find three variables that work with my model. The problem there is, that each variable depends on both others. I have tried to find the solution by having three input parameters B, V and P and three solutions B_c, V_c and P_c.

    I calculate B_c with V and P, V_c with B and P, and P_c with B and V.

    Now i calculate the difference between B_c and B and the same for all other variables. I want to minimise all differences.

    So i build the sum of them and want to minimise it, because it is not working to minimise all three in one process. If it is possible, plz give the answer to me.


    I wrote a macro where C50 is the sum and D46:D48 are my input parameters.

    I set boundary conditions for each one:

    1<B<89

    1<C<150

    0.00001<P<0.5


    The problem is nonlinear, i have many if() cases in my table.


    Could someone change my solver makro that it will work? It always tells me, that i need boundary conditions. And if I chance RequireBounds to False it still says the same.


    Sub Makro()

    SolverReset

    SolverOk SetCell:="$C$50", MaxMinVal:=2, ValueOf:=0, ByChange:="$D$46:$D$48", _
    Engine:=3, EngineDesc:="Evolutionary"

    SolverAdd CellRef:="$D$46", Relation:=1, FormulaText:="89"
    SolverAdd CellRef:="$D$46", Relation:=3, FormulaText:="1"
    SolverAdd CellRef:="$D$47", Relation:=1, FormulaText:="150"
    SolverAdd CellRef:="$D$47", Relation:=3, FormulaText:="1"
    SolverAdd CellRef:="$D$48", Relation:=1, FormulaText:="0.5"
    SolverAdd CellRef:="$D$48", Relation:=3, FormulaText:="0.00001"
    SolverOptions MaxTime:=1200, Precision:=0.00001, Convergence:= _
    0.001, StepThru:=True, Scaling:=True, AssumeNonNeg:=True, Derivatives:=2
    SolverOptions PopulationSize:=1000, RandomSeed:=100, MutationRate:=0.075, Multistart:=True, RequireBounds:=True, MaxSubproblems:=0, MaxIntegerSols:=0, _
    IntTolerance:=0.1, SolveWithout:=False, MaxTimeNoImp:=300

    SolverSolve

    End Sub
     
  2. FalkNew Win User

    Add-In "Solver" funktioniert nicht - Excel 2016, 64bit, Windows 10

    Ich habe exakt dasselbe Problem mit einem neuen Windows 10 Laptop sowie einer neuen Office 2016 Home & Business Installation. Office reparieren, Solver Addin neu setzen, hat nichts gebracht. Kann es sein dass der Solver mit einer 64bit Excel Installation
    nicht richtig funktioniert?? Ich benötige den Solver für meine Arbeit, daher bin ich dringend an einer Lösung interessiert.
  3. Andreas Killer Win User

    Kompilierungsfehler in ausgeblendetem Modul

    Das Modul SolverCode befindet sich im Solver-AddIn, da der Solver weltweit ansonsten ohne Problem im Einsatz ist kannst Du davon ausgehen das das Problem in Deinem Rechner liegt.

    Ich würde zuerst mal eine Online-Reparatur versuchen. Wenn das keine Besserung bringt, das komplette Office deinstallieren, auch ggf. alte Versionen, Rechner säubern und dann nur eine Office-Version wieder installieren.

    Andreas.
  4. Andreas Killer Win User

    Solver in VBA gibt Fehlermeldung: Solver: Unerwarteter interner Fehler, oder der verfügbare Arbeitsspeicher ist ausgeschöpft

    Dies scheint jedoch nicht ein Problem des Arbeitsspeichers zu sein.
    Nicht unbedingt.

    Also zuerst einmal solltest Du prüfen, bzw. von Hand nachstellen ob der Solver überhaupt eine Lösung für das gestellte Problem berechnet.

    Wenn dem der Fall ist, dann sollte Dein Makro mit SolverReset anfangen, sonst hast Du ggf. noch Einstellungen einer vorherigen Berechnung im Solver drin.

    Dann mach einfach mal eine Leerzeile an den Anfang in jedes Modul in Deiner Datei und lösche Sie wieder und dann klick auf Debuggen\Komplieren von VBAProject. (VBA kompiliert bei Bedarf zwar automatisch, aber das kann manchmal komische Folgen haben).

    Dann ist die nächste Frage ob Dein Code Bedingungen mit Dezimalstellen in den Solver lädt, wenn ja, dann prüfe ob diese Werte auch wirklich so im Solver ankommen.

    Wenn alles bis hier ok ist, dann kann es an der System-Einstellung des virtuellen Arbeitsspeichers liegen. In VBA gibt es einen ähnliches Problem mit dem Fehler 35010, hier hilft dann in diesen seltenen Fällen eine Erhöhung des virtuellen Arbeitsspeichers
    in Windows. Aber ich halte es für unwahrscheinlich das es für Dich zutrifft.

    Andreas.
  5. A______A Win User

    Solver in VBA gibt Fehlermeldung: Solver: Unerwarteter interner Fehler, oder der verfügbare Arbeitsspeicher ist ausgeschöpft

    Hallo Andreas

    Vielen Dank für Deine Vorschläge!

    Ich habe nun einiges ausprobiert und nachgeforscht.

    "Von Hand" funktioniert der Solver wunderbar. Das Problem bei dieser Version ist, dass der Solver über VBA gesteuert komischerweise keine Kommastellen bei den Nebenbedingungen verarbeiten kann. Wenn die Nebenbedingungen jedoch bspw. in Prozent o.ä. definiert
    werden funktionierts.

    Vielen Dank nochmals und VG
  6. WolfSpohr_MSFT1931 Win User

    Excel 2016 Solver Problem

    Lieber Peterpan22,



    Bitte öffnen Sie den Thread mit die Kollegen
    hier
    .

    Ich bedanke mich für Ihr Verständnis.



    Mit freundlichem Gruß

    Wolf Fabian Spohr



    Microsoft Office 365 Support Engineer



    Bitte markieren Sie diese Antwort als ‚überprüft‘, wenn diese Ihnen weiterhelfen konnte, so dass auch andere Teilnehmer von der Lösung profitieren können. Die Teilnehmer, die die meisten Antworten zur Verfügung stellen, erhalten
    ein ‚Antwort-Abzeichen‘.
  7. User Advert


    Hi,

    willkommen im Windows Forum!
Thema:

Solver Problem - Microsoft Office

Die Seite wird geladen...

Solver Problem - Similar Threads - Solver Problem

Forum Datum

How do you solve the problem of not being able to save a PDF directly with a single click?

How do you solve the problem of not being able to save a PDF directly with a single click?: Hello everyoneFor some time now we have been having the problem that PDFs can no longer be saved directly to a file server. As soon as you click on the save button or press ctrl+s, the following...
Apps 6. Januar 2025

How do you solve the problem of not being able to save a PDF directly with a single click?

How do you solve the problem of not being able to save a PDF directly with a single click?: Hello everyoneFor some time now we have been having the problem that PDFs can no longer be saved directly to a file server. As soon as you click on the save button or press ctrl+s, the following...
Games und Spiele 6. Januar 2025

Solver optimiert nicht, teilt aber mit, eine Lösung gefunden zu haben.

Solver optimiert nicht, teilt aber mit, eine Lösung gefunden zu haben.: Eine problembeschreibung finden Sie im Screenshot.
Microsoft Office 6. Mai 2024

How can I solve synchronization problems with onenote?

How can I solve synchronization problems with onenote?: I use Microsoft applications with my university account. I use OneDrive to synchronize all my documents including word, onenote etc. OneDrive also works properly. However, synchronization of...
Microsoft Office 16. Februar 2024

Cannot solve 100% Disk activity on ACER Laptop Aspire R3-471

Cannot solve 100% Disk activity on ACER Laptop Aspire R3-471: Acer Aspire R3-471T, Win10 22H2 19045.3996I don't see any process allocating so much disk activity. I also tried to change the current disk with a new SSD, but the SSD does not run at all. Freeze...
Apps 12. Februar 2024

Cannot solve 100% Disk activity on ACER Laptop Aspire R3-471

Cannot solve 100% Disk activity on ACER Laptop Aspire R3-471: Acer Aspire R3-471T, Win10 22H2 19045.3996I don't see any process allocating so much disk activity. I also tried to change the current disk with a new SSD, but the SSD does not run at all. Freeze...
Games und Spiele 12. Februar 2024

Hswultpep.sys and the pc don't even try to solve it any more

Hswultpep.sys and the pc don't even try to solve it any more: Ich habe einen Treiber aktualisiert der einen Neustart machen müsste und jetzt habe ich einen BSoD mit den code Hswultpep.sys und mein pc führt keine diagnose mehr
Apps 8. November 2023
Solver Problem solved
  1. Diese Seite verwendet Cookies, um Inhalte zu personalisieren, diese deiner Erfahrung anzupassen und dich nach der Registrierung angemeldet zu halten.
    Auf dieser Website werden Cookies für die Zugriffsanalyse und Anzeigenmessung verwendet.
    Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies.