Answered

Trying to solve Bethe equations - system of non linear equations

You are the unfortunate victim of a naming discrepancy. The fsolve you linked is for Optimization Toolbox, not Symbolic Math sym...

Trying to solve Bethe equations - system of non linear equations

You are the unfortunate victim of a naming discrepancy. The fsolve you linked is for Optimization Toolbox, not Symbolic Math sym...

3 months ago | 0

Answered

How to use ObjectiveCutOff and ObjectiveImprovementThreshold from optimoptions in solver-based optimization problems

I think that you have a mistaken view of what these options do. Consult the options to see what they really do. I don't think th...

How to use ObjectiveCutOff and ObjectiveImprovementThreshold from optimoptions in solver-based optimization problems

I think that you have a mistaken view of what these options do. Consult the options to see what they really do. I don't think th...

3 months ago | 0

| accepted

Answered

Error using ofun Too many input arguments.

I cannot reproduce your issue. When I try the following, I do not get an error: x = randn(20,1); r = ofun(x) function f = o...

Error using ofun Too many input arguments.

I cannot reproduce your issue. When I try the following, I do not get an error: x = randn(20,1); r = ofun(x) function f = o...

3 months ago | 0

Answered

How to fit a generate polynomial coefficients of with general requirements

I could be wrong, but it sounds to me as if the Problem-Based Optimization Workflow would work well for you. You do not have an ...

How to fit a generate polynomial coefficients of with general requirements

I could be wrong, but it sounds to me as if the Problem-Based Optimization Workflow would work well for you. You do not have an ...

3 months ago | 0

Answered

How to fit a function to 2D array when some parts of the underlaying function are known?

Well, it depends what you mean by "Z is proportional to c/X and Z is proportional to c2 + c3Y + c4Y^2". You could mean that Z is...

How to fit a function to 2D array when some parts of the underlaying function are known?

Well, it depends what you mean by "Z is proportional to c/X and Z is proportional to c2 + c3Y + c4Y^2". You could mean that Z is...

4 months ago | 0

| accepted

Answered

Relation between population size and function count for genetic algorithm

The answer is that some population members are "elite," and they do not have to be evaluated again. See How the Genetic Algorith...

Relation between population size and function count for genetic algorithm

The answer is that some population members are "elite," and they do not have to be evaluated again. See How the Genetic Algorith...

4 months ago | 0

| accepted

Answered

Working of PSO with hybrid function

It means the hybrid function runs after particleswarm stops. Ends. Is done. That's what terminates means. In fact, it is equival...

Working of PSO with hybrid function

It means the hybrid function runs after particleswarm stops. Ends. Is done. That's what terminates means. In fact, it is equival...

4 months ago | 1

| accepted

Answered

Minimization and Optimization. Minimize output by optimizing inputs

Sounds like you would be best served with the Problem-Based Optimization Workflow. Declare the variables that can change as opti...

Minimization and Optimization. Minimize output by optimizing inputs

Sounds like you would be best served with the Problem-Based Optimization Workflow. Declare the variables that can change as opti...

4 months ago | 0

| accepted

Answered

Unable to perform assignment because the size of the left side is 1-by-14 and the size of the right side is 14-by-14.

The error statement is clear: your assignment (equality) statement has a 1-by-14 vector on the left and a 14-by-14 matrix on the...

Unable to perform assignment because the size of the left side is 1-by-14 and the size of the right side is 14-by-14.

The error statement is clear: your assignment (equality) statement has a 1-by-14 vector on the left and a 14-by-14 matrix on the...

4 months ago | 0

Answered

fmincon is returning some garbage values in the final output

When I run your script I get the same results as you, so thank you for including all the relevant information. Note that your c...

fmincon is returning some garbage values in the final output

When I run your script I get the same results as you, so thank you for including all the relevant information. Note that your c...

4 months ago | 0

Answered

(OPTIMIZATION) Initial point is a local minimum - PROBLEM!!

I suggest that you plot the square of the objective function over a reasonable range of the parameter and over a small range suc...

(OPTIMIZATION) Initial point is a local minimum - PROBLEM!!

I suggest that you plot the square of the objective function over a reasonable range of the parameter and over a small range suc...

4 months ago | 0

| accepted

Answered

solve a set of two linear equations

I don't really understand what you are trying to do, but it sounds to me like your best bet is to use the Problem-Based Optimiza...

solve a set of two linear equations

I don't really understand what you are trying to do, but it sounds to me like your best bet is to use the Problem-Based Optimiza...

4 months ago | 0

Answered

Solve taking too long, how to optimize code?

Another point of view in case Matt's solution is not satisfactory: work completely in floating point computation rather than sym...

Solve taking too long, how to optimize code?

Another point of view in case Matt's solution is not satisfactory: work completely in floating point computation rather than sym...

4 months ago | 0

Answered

Refreshment of the objective function with FMINCON

I think that you have a mistaken view of what fmincon does. All optimization solvers take a fixed objective function and iterate...

Refreshment of the objective function with FMINCON

I think that you have a mistaken view of what fmincon does. All optimization solvers take a fixed objective function and iterate...

4 months ago | 1

Answered

Optimisation: minimise function while maximising a design variable

Perhaps you can change the optimization in a nearly unnoticeable way that would bias solutions to have large values of R, like t...

Optimisation: minimise function while maximising a design variable

Perhaps you can change the optimization in a nearly unnoticeable way that would bias solutions to have large values of R, like t...

4 months ago | 2

Answered

Problem using fminbnd function

All optimization solvers require that the objective function return a scalar value. You need to write your objective function in...

Problem using fminbnd function

All optimization solvers require that the objective function return a scalar value. You need to write your objective function in...

4 months ago | 0

Answered

Augmented Lagrangian and Penalty Methods

Sounds like a homework problem. I suggest that you consult the documentation for passing extra parameters, such as Passing Extr...

Augmented Lagrangian and Penalty Methods

Sounds like a homework problem. I suggest that you consult the documentation for passing extra parameters, such as Passing Extr...

4 months ago | 0

Answered

Find gradient numerically for the equation

There are tools on the File Exchange that can help you find numerical approximations to derivatives. For example, see Adaptive R...

Find gradient numerically for the equation

There are tools on the File Exchange that can help you find numerical approximations to derivatives. For example, see Adaptive R...

4 months ago | 0

| accepted

Answered

optimization problem - problem using det funciton

The main problem is that det is not a Supported Operations on Optimization Variables and Expressions. For example, x = optimvar...

optimization problem - problem using det funciton

The main problem is that det is not a Supported Operations on Optimization Variables and Expressions. For example, x = optimvar...

4 months ago | 1

| accepted

Answered

How to optimize nonlinear multiple input model with multiple constraints

I doubt that you want a symbolic solution. You probably want numbers. So I suggest that you use the Problem-Based Optimization W...

How to optimize nonlinear multiple input model with multiple constraints

I doubt that you want a symbolic solution. You probably want numbers. So I suggest that you use the Problem-Based Optimization W...

4 months ago | 0

Answered

can i use different solvers for problem based optimisation in matlab

You CAN use different solvers. The question is, SHOULD you? In other questions you have shown that you are trying to solve an MI...

can i use different solvers for problem based optimisation in matlab

You CAN use different solvers. The question is, SHOULD you? In other questions you have shown that you are trying to solve an MI...

4 months ago | 0

| accepted

Answered

Optimizing 1 equation with 7 variables

I think that you would have an easier time formulating your problem by using the problem-based approach. However, if you really...

Optimizing 1 equation with 7 variables

I think that you would have an easier time formulating your problem by using the problem-based approach. However, if you really...

4 months ago | 0

Answered

Matlab optimprob _Problem based _how can i see the optimal parameter setting while using optimprob

You can set a plot function in the options for your solver. To see which solver is being used, call optimoptions: options = opt...

Matlab optimprob _Problem based _how can i see the optimal parameter setting while using optimprob

You can set a plot function in the options for your solver. To see which solver is being used, call optimoptions: options = opt...

4 months ago | 0

| accepted

Answered

How to find fixed number of variables with value 1 using Genetic Algorithm with population type Bitstring ?

If I understand you correctly (and I might not have understood), you want to impose a linear constraint on the population x sum...

How to find fixed number of variables with value 1 using Genetic Algorithm with population type Bitstring ?

If I understand you correctly (and I might not have understood), you want to impose a linear constraint on the population x sum...

4 months ago | 0

| accepted

Answered

Find best input combinations that will maximize the output of a non-linear ODE mathematical model

Add the parameters to optimize as a vector in your ODE calculation: function rest = Scrpt1(t,X,params) x2 = X(1); x3 = X(2);...

Find best input combinations that will maximize the output of a non-linear ODE mathematical model

Add the parameters to optimize as a vector in your ODE calculation: function rest = Scrpt1(t,X,params) x2 = X(1); x3 = X(2);...

5 months ago | 1

| accepted

Answered

How to use simulated annealing to optimize a simulation based, multicriteria Problem?

Your question confuses me because you talk about having a multiobjective problem but then seem to want to use simulannealbnd to ...

How to use simulated annealing to optimize a simulation based, multicriteria Problem?

Your question confuses me because you talk about having a multiobjective problem but then seem to want to use simulannealbnd to ...

5 months ago | 0

Answered

parallel computing in Genetic algorithm

You have to be careful using parallel computing. Are you using Simuulink® for the simulation? I am not sure that it can run in p...

parallel computing in Genetic algorithm

You have to be careful using parallel computing. Are you using Simuulink® for the simulation? I am not sure that it can run in p...

5 months ago | 0

Answered

How to find a part of function value in Genetic Algorithm after each iteration cycle

I think that you can write a Custom Output Function for Genetic Algorithm and use it to calculate what you want and store them i...

How to find a part of function value in Genetic Algorithm after each iteration cycle

I think that you can write a Custom Output Function for Genetic Algorithm and use it to calculate what you want and store them i...

5 months ago | 0

| accepted

Answered

Coding a GA using constraint functions but getting array size error. - SOLVED

I think that you can investigate this problem yourself by using the debugger to set a break point at or just before line 119, an...

Coding a GA using constraint functions but getting array size error. - SOLVED

I think that you can investigate this problem yourself by using the debugger to set a break point at or just before line 119, an...

5 months ago | 0

| accepted

Answered

multi constraints fmincon optimization

I don't know which of these variables are optimization variables, meaning those that can be changed to try to optimize, and whic...

multi constraints fmincon optimization

I don't know which of these variables are optimization variables, meaning those that can be changed to try to optimize, and whic...

5 months ago | 0

| accepted