Community Profile

photo

Sara


Active since 2017

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


how to define if statement for fmincon function / optimization problem
Hello, Can anyone help me with below problem please? I am using fmincon to do the optimization by Matlab. I have a 'price' a...

6 years ago | 1 answer | 0

1

answer

Question


failure in initial objective function evaluation
Hello, I want to solve an optimization problem by Matlab fmincon function. I defined my objective function as: func...

6 years ago | 1 answer | 0

1

answer

Question


Matlab genetic algorithm fitness value plot
Hi, I used Matlab genetic algorithm (ga) for solving an optimization problem. I defined a plot option as @gaplotbestfun. The pl...

7 years ago | 0 answers | 0

0

answers

Question


Matlab genetic algorithm plotobjective error
Hi! I used Matlab ga (genetic algorithm) for optimization. I wrote my objective function in a separate .m file. when I run the ...

7 years ago | 1 answer | 0

1

answer

Question


objective function requires more input arguments to run
Hi, I am working on an optimization problem. The aim is to find the optimal value for x1 and y1, which are 1x24 vectors. I wr...

7 years ago | 1 answer | 0

1

answer

Question


error in Matlab function: Inner matrix dimensions must agree
Hi, I wrote this function in Matlab: function f = objfun(x,a,b) x1 = x(1:24); y1 = x(25:end); i = 1:24; ...

7 years ago | 1 answer | 0

1

answer

Question


how to compare all vector indexes with a constant value and switch the value of another variable (0 1) based on that
I have a 1x24 vector (a). I should define a command in Matlab which compare all 24 values of a vector (a) with a certain value (...

7 years ago | 1 answer | 0

1

answer

Question


fmincon objective function problem
I need to maximize the following objective function in Matlab: mean (a*I'*x1+b*(ones(1,24)-I)'*x1)-mean((a*(ones(1,24)-I)...

7 years ago | 2 answers | 0

2

answers

Question


my objective function should be maximized. It has 3 variables that all should be optimized, i.e. the optimization should give 3 optimized variables at the end.
My objective function also has an indicator function that its value depends on one of those 3 variables which has to be optimize...

7 years ago | 1 answer | 0

1

answer