Question

how to build logical relationships between elements of two vectors?

Hi everyone. I have a question that how can i correlate the element in two matrices. For example that suppose i have a matrix A=...

1 month ago | 1 answer | 0

Question

how to assign the equality relationship for the elements symmetry to the diagnoal of a matrix

Hi, I have a 4 by 4 matrix which is x0=[xo(1),xo(2),xo(3),xo(4) xo(5),xo(6),xo(7),xo(8) x0(9),xo(10),xo(11),xo(12) ...

2 months ago | 1 answer | 0

Question

why my ga yields very high fval while very low best penalty value?

Hi i am trying to solve a mixed integer program using ga, while my solution is not feasible but the fval is very strange. First,...

2 months ago | 0 answers | 0

Question

why ga become infeasible after increasing the size of variables

Hi, I am trying to use ga to solve a mixed integer optimization problem. I have a problem that ga became infeasible after i enla...

2 months ago | 0 answers | 0

Question

why ga generates different fval and penalty values

Hello everyone, I have a question when I check the result after i using GA on my integer (binary) minimization problem that the ...

3 months ago | 1 answer | 0

Question

Why I receive a NaN value

Hi everyone, i met a problem when i try to check my following code which is a function file, when i try with some inputs, Matlab...

3 months ago | 0 answers | 0

Question

Division by an OptimizationVariable not supported.

Hi everyone, I met a problem that in my equation, there is a part where includes a division of two optimization varaibles. For ...

4 months ago | 1 answer | 1

Question

error: Division by an OptimizationVariable not supported.

Hi everyone, I met a error mentioned in my title, however, i don't think my code could be organized by a solver-based approach. ...

4 months ago | 1 answer | 0

Question

Is it possible for a 3D varaible to be used in a optimization problem

Hi everyone, I have a very straightforward question that is it possible to operate on a 3D optimization varibale by using optimi...

4 months ago | 1 answer | 0

Question

multidimensional matrix optimization error

Hello everyone, I have an optimization variable y=optimvar('y',[4,1],'Type','integer','LowerBound',0,'UpperBound',1); and I...

4 months ago | 1 answer | 0

Answered

MILP - Multidimensional optimization

Hi, I am working on a similar question as yours, have you solved this question?

MILP - Multidimensional optimization

Hi, I am working on a similar question as yours, have you solved this question?

4 months ago | 0

Question

How to loop a objective function using the optimization toolbox?

Hi everyone, I have a question that how can I put a "loop" structure in a optmization problem. In my problem I have two binary...

4 months ago | 1 answer | 0

Question

How to make a matrix compose by seperate optimization variables

Hi everyone, I am thinking if it possible to put several optimizaiton variables into a matrix form. My optimization variable is...

4 months ago | 1 answer | 0

Question

how to create a symmetric binary variable matrix

Hi, I am wondering how to get binary variable matrix that is symmetric to the diagonal. The matrix looks like this: [y1 y2 y3 ...

5 months ago | 1 answer | 0

Question

How to define a binary variable matrix

Hi, I'm trying to define a binary variable matrix that each row has the same outputs, but differs in different rows. For examp...

5 months ago | 0 answers | 0

Question

how to iterate a binary variable matrix

Hi I have a matrix which is filled with binary variables, and in each iteration i want to get a new binary matrix with the same...

5 months ago | 0 answers | 0

Question

how to iterate a matrix for multiple times

Hi I have a matrix, let's say, a random 5x5 matrix. In time period 1, it is a 5x5 random matrix, in time period 2, all element...

5 months ago | 1 answer | 0