matheraum.de
Raum für Mathematik
Offene Informations- und Nachhilfegemeinschaft

Für Schüler, Studenten, Lehrer, Mathematik-Interessierte.
Hallo Gast!einloggen | registrieren ]
Startseite · Forum · Wissen · Kurse · Mitglieder · Team · Impressum
Forenbaum
^ Forenbaum
Status Mathe
  Status Schulmathe
    Status Primarstufe
    Status Mathe Klassen 5-7
    Status Mathe Klassen 8-10
    Status Oberstufenmathe
    Status Mathe-Wettbewerbe
    Status Sonstiges
  Status Hochschulmathe
    Status Uni-Analysis
    Status Uni-Lin. Algebra
    Status Algebra+Zahlentheo.
    Status Diskrete Mathematik
    Status Fachdidaktik
    Status Finanz+Versicherung
    Status Logik+Mengenlehre
    Status Numerik
    Status Uni-Stochastik
    Status Topologie+Geometrie
    Status Uni-Sonstiges
  Status Mathe-Vorkurse
    Status Organisatorisches
    Status Schule
    Status Universität
  Status Mathe-Software
    Status Derive
    Status DynaGeo
    Status FunkyPlot
    Status GeoGebra
    Status LaTeX
    Status Maple
    Status MathCad
    Status Mathematica
    Status Matlab
    Status Maxima
    Status MuPad
    Status Taschenrechner

Gezeigt werden alle Foren bis zur Tiefe 2

Navigation
 Startseite...
 Neuerdings beta neu
 Forum...
 vorwissen...
 vorkurse...
 Werkzeuge...
 Nachhilfevermittlung beta...
 Online-Spiele beta
 Suchen
 Verein...
 Impressum
Das Projekt
Server und Internetanbindung werden durch Spenden finanziert.
Organisiert wird das Projekt von unserem Koordinatorenteam.
Hunderte Mitglieder helfen ehrenamtlich in unseren moderierten Foren.
Anbieter der Seite ist der gemeinnützige Verein "Vorhilfe.de e.V.".
Partnerseiten
Dt. Schulen im Ausland: Mathe-Seiten:Weitere Fächer:

Open Source FunktionenplotterFunkyPlot: Kostenloser und quelloffener Funktionenplotter für Linux und andere Betriebssysteme
StartseiteMatheForenMatlabOptimierung mit Fmincon
Foren für weitere Schulfächer findest Du auf www.vorhilfe.de z.B. Informatik • Physik • Technik • Biologie • Chemie
Forum "Matlab" - Optimierung mit Fmincon
Optimierung mit Fmincon < Matlab < Mathe-Software < Mathe < Vorhilfe
Ansicht: [ geschachtelt ] | ^ Forum "Matlab"  | ^^ Alle Foren  | ^ Forenbaum  | Materialien

Optimierung mit Fmincon: Korrektur
Status: (Frage) überfällig Status 
Datum: 13:34 Di 16.02.2016
Autor: versager

Aufgabe
fun = @(x)1+x(1)/(1+x(2)) - 3*x(1)*x(2) + x(2)*(1+x(1));

lb = [0,0];
ub = [1,2];

A = [];
b = [];
Aeq = [];
beq = [];

x0 = [0.5,1];
x = fmincon(fun,x0,A,b,Aeq,beq,lb,ub);



Hallo,

das oben genannte Beispiel habe ich aus einem Beispiel von Matlab (doc fmincon) rauskopiert und wollte es testen. Leider kommt bei mir eine Fehlermeldung.

Error using fmincon
Too many input arguments.

Error in fmincontest (line 12)
x = fmincon(fun,x0,A,b,Aeq,beq,lb,ub);


Ich weis aber nicht warum, da ich es ja einfach aus der Hilfestellung von Matlab kopiert habe.
Kann mir jemand weiterhelfen?

Danke

        
Bezug
Optimierung mit Fmincon: Mitteilung
Status: (Mitteilung) Reaktion unnötig Status 
Datum: 17:40 Mi 17.02.2016
Autor: Frankfurt0815

Hallo.
Habe deine Code mal einfach mal so eingegeben und er wirft mir Ergebnisse aus ohne Fehleranzeige.
*************************************************************
>> fun = @(x)1+x(1)/(1+x(2)) - 3*x(1)*x(2) + x(2)*(1+x(1));

lb = [0,0];
ub = [1,2];

A = [];
b = [];
Aeq = [];
beq = [];

x0 = [0.5,1];
x = fmincon(fun,x0,A,b,Aeq,beq,lb,ub);

Local minimum found that satisfies the constraints.

Optimization completed because the objective function is non-decreasing in
feasible directions, to within the default value of the function tolerance,
and constraints are satisfied to within the default value of the constraint tolerance.

<stopping criteria details>

>>
Beste Grüße.

Bezug
        
Bezug
Optimierung mit Fmincon: Fälligkeit abgelaufen
Status: (Mitteilung) Reaktion unnötig Status 
Datum: 14:20 Do 18.02.2016
Autor: matux

$MATUXTEXT(ueberfaellige_frage)
Bezug
Ansicht: [ geschachtelt ] | ^ Forum "Matlab"  | ^^ Alle Foren  | ^ Forenbaum  | Materialien


^ Seitenanfang ^
www.matheraum.de
[ Startseite | Forum | Wissen | Kurse | Mitglieder | Team | Impressum ]