Answered

nonlinear integer(boolean) programming problem

Is the cost linear in the decision variables? If so, use intlinprog. I assume that you have other constraints that you did not l...

nonlinear integer(boolean) programming problem

Is the cost linear in the decision variables? If so, use intlinprog. I assume that you have other constraints that you did not l...

3 months ago | 0

Answered

fmincon output is converging to infeasible point

While I don't understand your listed code at all, perhaps you will be able to solve your problem using some ideas from the docum...

fmincon output is converging to infeasible point

While I don't understand your listed code at all, perhaps you will be able to solve your problem using some ideas from the docum...

3 months ago | 0

Answered

Optimising using a combination of linear equality constraints and no constraints

I don't know whether your objective function is smooth or not. If it is smooth (differentiable), I would suggest that you use fm...

Optimising using a combination of linear equality constraints and no constraints

I don't know whether your objective function is smooth or not. If it is smooth (differentiable), I would suggest that you use fm...

3 months ago | 0

| accepted

Answered

Bayesian Optimization ionosphere example

I think that you need to do some reading in Model Building and Assessment. Please read about how to specify variables and object...

Bayesian Optimization ionosphere example

I think that you need to do some reading in Model Building and Assessment. Please read about how to specify variables and object...

3 months ago | 0

Answered

Bayesian Optimization ionosphere example

The bayesopt solver passes a table of values to the objective function. The x.n argument takes the 'n' field of the table x, an...

Bayesian Optimization ionosphere example

The bayesopt solver passes a table of values to the objective function. The x.n argument takes the 'n' field of the table x, an...

3 months ago | 0

Answered

How to know the current input for fminsearch?

For optimizing a simulation or ODE, you may want to try patternsearch and surrogateopt. For surrogateopt you will need to bound ...

How to know the current input for fminsearch?

For optimizing a simulation or ODE, you may want to try patternsearch and surrogateopt. For surrogateopt you will need to bound ...

3 months ago | 0

Answered

"Conversion to optim.problemdef.OptimizationExpression from sym is not possible." I am getting this error and I am not able to understand how to resolve this error.

You are mixing several data types in your problem. You cannot use optimization variables, symbolic variables, and numeric variab...

"Conversion to optim.problemdef.OptimizationExpression from sym is not possible." I am getting this error and I am not able to understand how to resolve this error.

You are mixing several data types in your problem. You cannot use optimization variables, symbolic variables, and numeric variab...

3 months ago | 1

| accepted

Answered

How to see the current value of the variable in "fminsearch" optimization?

You can do this using an Output Function. That example shows how to return the history of points, which is I think what you want...

How to see the current value of the variable in "fminsearch" optimization?

You can do this using an Output Function. That example shows how to return the history of points, which is I think what you want...

3 months ago | 2

| accepted

Answered

How to select the design variables on an optimization problem?

That is a reasonable approoach. In fact, some solvers check for "fixed" variables (those with equal upper and lower bounds) and ...

How to select the design variables on an optimization problem?

That is a reasonable approoach. In fact, some solvers check for "fixed" variables (those with equal upper and lower bounds) and ...

3 months ago | 0

| accepted

Answered

How to set a fixed step for lower and upper bounds (lb,ub) in particle swarm optimization?

I am not sure that I understand you. I think that you mean that you have discrete variables, you would like your solution to be ...

How to set a fixed step for lower and upper bounds (lb,ub) in particle swarm optimization?

I am not sure that I understand you. I think that you mean that you have discrete variables, you would like your solution to be ...

3 months ago | 0

| accepted

Answered

Trying to view/display an optimization problem(lmi)

I know nothing about EHCM toolbox. But it is apparent that the toolbox does not use the problem-based approach. The functions sh...

Trying to view/display an optimization problem(lmi)

I know nothing about EHCM toolbox. But it is apparent that the toolbox does not use the problem-based approach. The functions sh...

3 months ago | 0

Answered

2D 'Surface Plot' from 3D geometry

There are some examples in the documentation that might be related to what you want. Alan Weiss MATLAB mathematical toolbox do...

2D 'Surface Plot' from 3D geometry

There are some examples in the documentation that might be related to what you want. Alan Weiss MATLAB mathematical toolbox do...

3 months ago | 0

Answered

Is it possible to introduce time dependent function in any of the coefficient of pde form used in pde toolbox?

This portion of the documentation describes how to set up a general PDE for solution by PDE Toolbox. This is the general workflo...

Is it possible to introduce time dependent function in any of the coefficient of pde form used in pde toolbox?

This portion of the documentation describes how to set up a general PDE for solution by PDE Toolbox. This is the general workflo...

3 months ago | 0

Answered

genetic algorithm to optimize the variable of linear regression(a,b1,b2)

While you CAN solve a linear regression using ga, it is unwise to do so. Your answers will be faster and more accurate while usi...

genetic algorithm to optimize the variable of linear regression(a,b1,b2)

While you CAN solve a linear regression using ga, it is unwise to do so. Your answers will be faster and more accurate while usi...

3 months ago | 0

Answered

Simultaneous minimization of 3 equations to estimate 4 parameters

Did you understand that in general there is no such thing as the minimum of a vector-valued function? gamultiobj finds a Pareto ...

Simultaneous minimization of 3 equations to estimate 4 parameters

Did you understand that in general there is no such thing as the minimum of a vector-valued function? gamultiobj finds a Pareto ...

3 months ago | 0

| accepted

Answered

Linprog: Any ideas why x in [0,1] return a binary solution?

I am not sure that I understand your objective function or all of your constraints, but it is well known that the solution of a ...

Linprog: Any ideas why x in [0,1] return a binary solution?

I am not sure that I understand your objective function or all of your constraints, but it is well known that the solution of a ...

3 months ago | 0

Answered

Linprog: some lambda.lower > lambda.upper in output

You are mistaken that lambda.lower relates to lambda.upper. These are Lagrange multipliers. If the solution is at a lower bound,...

Linprog: some lambda.lower > lambda.upper in output

You are mistaken that lambda.lower relates to lambda.upper. These are Lagrange multipliers. If the solution is at a lower bound,...

3 months ago | 0

Answered

How to solve a minimization problem of a least squares cost function?

To solve a set of nonlinear equations, I suggest that you use fsolve instead of fminunc. For fsolve your objective function shou...

How to solve a minimization problem of a least squares cost function?

To solve a set of nonlinear equations, I suggest that you use fsolve instead of fminunc. For fsolve your objective function shou...

3 months ago | 1

Answered

passing matrices in fmincon objective function

What does it mean to minimize a function that has more than one dimension? The answer is, the problem is ill-defined, there is n...

passing matrices in fmincon objective function

What does it mean to minimize a function that has more than one dimension? The answer is, the problem is ill-defined, there is n...

3 months ago | 0

Answered

How can I set up nonlcon in fmincon using a surface?

I do not understand your syntax opt = fmincon(p_surf,x0,[],[],[],[],lb,ub,[[t_surf], []],[]) and I suspect that fmincon does n...

How can I set up nonlcon in fmincon using a surface?

I do not understand your syntax opt = fmincon(p_surf,x0,[],[],[],[],lb,ub,[[t_surf], []],[]) and I suspect that fmincon does n...

3 months ago | 0

Answered

Meshing in Matlab using PDEToolbox

As the generateMesh page states, PDE Toolbox uses a triangular mesh in 2-D and a tetrahedral mesh in 3-D. This is also stated on...

Meshing in Matlab using PDEToolbox

As the generateMesh page states, PDE Toolbox uses a triangular mesh in 2-D and a tetrahedral mesh in 3-D. This is also stated on...

3 months ago | 0

Answered

user defined hessian in fminunc

The documentation on writing gradients and Hessians is here. The specifics for setting options and includiing the Hessian is her...

user defined hessian in fminunc

The documentation on writing gradients and Hessians is here. The specifics for setting options and includiing the Hessian is her...

4 months ago | 0

| accepted

Answered

Matlab 2020a outputs wrong fval for quadprog

Your problem has an added constant term that quadprog does not take into account, though solve does. Did you try calling [sol f...

Matlab 2020a outputs wrong fval for quadprog

Your problem has an added constant term that quadprog does not take into account, though solve does. Did you try calling [sol f...

4 months ago | 1

| accepted

Answered

multistart with matlab function

You almost had it right. Your objective function is @(x,xdata)myfun(x,xdata,E_x,Gamma_X,Gamma_C) where the arguments E_x,Gamma...

multistart with matlab function

You almost had it right. Your objective function is @(x,xdata)myfun(x,xdata,E_x,Gamma_X,Gamma_C) where the arguments E_x,Gamma...

4 months ago | 0

| accepted

Answered

multiobjective mix integer variable

You have just two binary variables. I suggest that you solve four problems, one for each configuration of the two binary variabl...

multiobjective mix integer variable

You have just two binary variables. I suggest that you solve four problems, one for each configuration of the two binary variabl...

4 months ago | 0

| accepted

Answered

fmincon fails to find a feasible solution

You might also want to consult the documentation on Converged to an Infeasible Point. Alan Weiss MATLAB mathematical toolbox d...

fmincon fails to find a feasible solution

You might also want to consult the documentation on Converged to an Infeasible Point. Alan Weiss MATLAB mathematical toolbox d...

4 months ago | 0

Answered

Understanding why GA's penalty profile is so similar for any run

Look at the definition of penalty value in the Integer ga Algorithm: If the member is feasible, the penalty function is the fit...

Understanding why GA's penalty profile is so similar for any run

Look at the definition of penalty value in the Integer ga Algorithm: If the member is feasible, the penalty function is the fit...

4 months ago | 1

Answered

define a dummy decision variable for optimization problem

It sounds to me as if the best approach is to solve three separate optimization problem, one for each value of m, and compare th...

define a dummy decision variable for optimization problem

It sounds to me as if the best approach is to solve three separate optimization problem, one for each value of m, and compare th...

4 months ago | 0

Answered

Finding feasible solution with intlinprog

A nonzero objective function vector can sometimes help intlinprog by breaking symmetry in the constraints. It is never clear wit...

Finding feasible solution with intlinprog

A nonzero objective function vector can sometimes help intlinprog by breaking symmetry in the constraints. It is never clear wit...

4 months ago | 2

Answered

How to solve SOCP program on MATLAB?

Currently, there is no dedicated SOCP solver in Optimization Toolboxâ„˘. But you can often include this kind of constraint either ...

How to solve SOCP program on MATLAB?

Currently, there is no dedicated SOCP solver in Optimization Toolboxâ„˘. But you can often include this kind of constraint either ...

4 months ago | 0