Filter löschen
Filter löschen

fmincon, MaxFunctionEvaluations and out of memory

1 Ansicht (letzte 30 Tage)
Hessam Fathipour
Hessam Fathipour am 30 Mai 2019
Bearbeitet: Walter Roberson am 1 Jun. 2019
When I increasing manually the "MaxFunctionEvaluations" in fmincon, optimization stopped because of "out of memory". How can I fix it?
  1 Kommentar
Walter Roberson
Walter Roberson am 30 Mai 2019
I would not tend to expect that unless your objective function is saving data to memory, or in certain cases involving OutputFcn or PlotFcn ?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Hessam Fathipour
Hessam Fathipour am 1 Jun. 2019
Bearbeitet: Hessam Fathipour am 1 Jun. 2019
it's that error I mentioned:
Error using ldl
Out of memory. Type "help memory" for your options.
Error in formAndFactorKKTmatrix
Error in computeTrialStep
Error in barrier
  1 Kommentar
Walter Roberson
Walter Roberson am 1 Jun. 2019
Bearbeitet: Walter Roberson am 1 Jun. 2019
Are you using OutputFcn or PlotFcn or saving data to persistent memory or global variables?
Are you using a lot of input variables? Possibly enough that without the increasing in function evaluations, it cannot estimate the gradient even once, so increasing the maximum function evaluations might be permitting it to proceed further than it would otherwise?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Systems of Nonlinear Equations finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by