Community Profile

photo

BrokenDreams


Active since 2019

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


In what order the transfer of functions take place in Fmincon?
The functions are 1)Fmincon 2)Objective Function 3)Constraint Function. Also in which step does it make use of Initial Guess

4 years ago | 1 answer | 0

1

answer

Question


Index exceeds the number of array elements (1). Caused by: Failure in initial nonlinear constraint function evaluation. FMINCON cannot continue.
My OBJECTIVE FUNCTION: function f=objective2(h,x,F_r,T_r,UA_r,n) options.Display='off'; %FlowStreams x(1)=F_r(1); x(2)=h; ...

4 years ago | 1 answer | 0

1

answer

Question


I get an error stating "Not enough input arguments. Error in constraint2 (line 3) c(1)=x(n+6)-x(n+7);". Please Help
My Objective function: function f=objective2(h,x,F_r,T_r,UA_r) options.Display='off'; %FlowStreams x(1)=F_r(1); x(2)=h; x(...

4 years ago | 1 answer | 0

1

answer

Question


How do I maximise Volume of a cylinder such that its Surface Area is less than 10 using fmincon by predicting only either radius or height but not both?
Volume= pi*r*r*h Surface Area= 2*pi*r*(h+r); i am solving a bigger problem. this simple example will help me to solve the bigg...

4 years ago | 1 answer | 0

1

answer

Question


How do I increment the value of a variable after each statement by 1?
I am trying to solve equations using fmincon. I have around 50 non linear constraints. At the moment i am defining them like ...

4 years ago | 1 answer | 0

1

answer

Question


Solver stopped prematurely. fmincon stopped because it exceeded the function evaluation limit, options.MaxFunctionEvaluations = 3.000000e+03. Unable to rectify this error. Please Help
F_r and T_r are defined. [m n ]=size(F_r); [M N]=size(T_r); My constraints are lengthy but i have checked it is correct. ...

4 years ago | 1 answer | 0

1

answer

Question


fmincon stopped because it exceeded the function evaluation limit, options.MaxFunctionEvaluations = 3.000000e+03.
I am looking to maximise x(n+10). I get wrong results. I am unable to find my mistake.

4 years ago | 0 answers | 0

0

answers

Question


I have a variable named T_t which is of dimension [1 20]. How do i add a normal error with a standard deviation of 1 to it?
I wrote T_t=T_t+1*randn(size(T_t)); But when i check the standard deviation using std( T_t(:) ) i get the value as 51. Pls help...

4 years ago | 1 answer | 0

1

answer

Question


How to add errors when standard deviation is given?
I have a dataset consisting of 50 rows. How do i add noise when standard deviation is given as i)2 ii) 3% of true value

4 years ago | 1 answer | 0

1

answer