photo

Ylenia Placella


Last seen: quasi 4 anni fa Attivo dal 2020

Followers: 0   Following: 0

Statistica

  • Thankful Level 1

Visualizza badge

Feeds

Visto da

Domanda


How can I solve this fincon problem?
% I have to solve this problem min x*sigma*x h-xDx ≤0 where h is: h=linspace(h_min,h_max,50) close al...

quasi 4 anni fa | 1 risposta | 0

1

risposta

Risposto
Solver stopped prematurely. fmincon stopped because it exceeded the function evaluation limit, options.MaxFunctionEvaluations = 3.000000e+03.
%if now I want to calculate X and var_RAO for every h. How can I do? %I used this code. Does not mark error, but X and var_RAO ...

quasi 4 anni fa | 0

Domanda


Solver stopped prematurely. fmincon stopped because it exceeded the function evaluation limit, options.MaxFunctionEvaluations = 3.000000e+03.
%constraints c, ceq % size(D)=[69,69] %size(sigma)=[69,69] %length(h)=50 function[c,ceq]= nlcon (x) load ('workspacefminco...

circa 4 anni fa | 2 risposte | 0

2

risposte

Domanda


<stopping criteria details> Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-69.
I have to solve this problem. min x*sigma*x with h=linspace(h_min,h_max,50) D is a matrix 69x69 number variables 69 ...

circa 4 anni fa | 1 risposta | 0

1

risposta

Domanda


error fmincon with constraints: Aeq must have 3450 column(s).
close all; clear all; clc; load workspace17Rao.mat n=length(D); %n=69 %size(D)=69x69 x=zeros(1,n); h_min=0.639064969481681...

circa 4 anni fa | 1 risposta | 0

1

risposta

Domanda


fmincon:Supplied objective function must return a scalar value.
%constraints c and ceq for h=linspace(h_min,h_max,69); x=zeros(N,1); c=h-x(1)'*D*x(2); end function [c,ceq]= contr (x) ...

circa 4 anni fa | 0 risposte | 0

0

risposte

Domanda


Problem with fmincon:row dimension of Aeq must have 4 column(s).
% non linear constraints: % D is a matrix 69x69 for h=linspace(h_min,h_max,69) x=zeros(69,69); c=h-x(1)'*D*x(2); end funct...

circa 4 anni fa | 0 risposte | 0

0

risposte