回答済み

Optimize function with Bayesian Optimization

As clearly stated in the documentation for bayesopt, the function passes a TABLE of values. However, rastriginsfcn expects a 2-D...

Optimize function with Bayesian Optimization

As clearly stated in the documentation for bayesopt, the function passes a TABLE of values. However, rastriginsfcn expects a 2-D...

3ヶ月 前 | 0

| 採用済み

回答済み

use of fminunc with more than one variables

Please see the documentation on writing scalar objective functions. If you have Release 2019a, you can also use the problem-bas...

use of fminunc with more than one variables

Please see the documentation on writing scalar objective functions. If you have Release 2019a, you can also use the problem-bas...

3ヶ月 前 | 0

回答済み

GA violates the linear inequality constraints

You have expressed your constraints as nonlinear inequality constraints, not as linear inequality constraints. If the constraint...

GA violates the linear inequality constraints

You have expressed your constraints as nonlinear inequality constraints, not as linear inequality constraints. If the constraint...

3ヶ月 前 | 0

| 採用済み

回答済み

How to set up user-supplied Hessian in fmincon for a minimization problem with nonlinear objective and nonlinear constraint?

For general advice related to this sort of problem, see Converged to an Infeasible Point. Alan Weiss MATLAB mathematical toolb...

How to set up user-supplied Hessian in fmincon for a minimization problem with nonlinear objective and nonlinear constraint?

For general advice related to this sort of problem, see Converged to an Infeasible Point. Alan Weiss MATLAB mathematical toolb...

4ヶ月 前 | 0

回答済み

genetic algorithm optimisation toolbox

If you have a multiobjective function, then use gamultiobj instead of ga. Alan Weiss MATLAB mathematical toolbox documentation...

genetic algorithm optimisation toolbox

If you have a multiobjective function, then use gamultiobj instead of ga. Alan Weiss MATLAB mathematical toolbox documentation...

4ヶ月 前 | 1

| 採用済み

回答済み

How to solve an optimization problem with stability constraints using 'fmincon'?

Perhaps this example will give you some ideas. It is written as a multiobjective problem, but you can adapt the code easily to s...

How to solve an optimization problem with stability constraints using 'fmincon'?

Perhaps this example will give you some ideas. It is written as a multiobjective problem, but you can adapt the code easily to s...

4ヶ月 前 | 1

回答済み

I have a time series of monthly log returns, and want to transform these into monthly log prices. How do I proceed?

doc cumsum Alan Weiss MATLAB mathematical toolbox documentation

I have a time series of monthly log returns, and want to transform these into monthly log prices. How do I proceed?

doc cumsum Alan Weiss MATLAB mathematical toolbox documentation

4ヶ月 前 | 0

回答済み

Bayesopt: min observed objective not decreasing

Take a look at the note in the documentation of Coupled Constraints. Alan Weiss MATLAB mathematical toolbox documentation

Bayesopt: min observed objective not decreasing

Take a look at the note in the documentation of Coupled Constraints. Alan Weiss MATLAB mathematical toolbox documentation

4ヶ月 前 | 0

回答済み

Plotting ga custom plot with additional inputs (calculated parameters )

When you create an anonymous function to pass extra parameters, the parameters that are available in the nested function are the...

Plotting ga custom plot with additional inputs (calculated parameters )

When you create an anonymous function to pass extra parameters, the parameters that are available in the nested function are the...

4ヶ月 前 | 0

回答済み

Find specific point in unknown "function"

The most efficient way is to use fzero as Torsten said. Your function is @(x)y(x)-1. For the most efficiency, set the initial po...

Find specific point in unknown "function"

The most efficient way is to use fzero as Torsten said. Your function is @(x)y(x)-1. For the most efficiency, set the initial po...

4ヶ月 前 | 2

| 採用済み

回答済み

GA calculates wrong penalty

To answer your second question first, if you set a problem structure as documented then you can call ga by [x,fval] = ga(proble...

GA calculates wrong penalty

To answer your second question first, if you set a problem structure as documented then you can call ga by [x,fval] = ga(proble...

4ヶ月 前 | 0

| 採用済み

回答済み

GA calculates wrong penalty

You are probably seeing the result of the integer-constrained solver. The fitness function is modified by a penalty term. It is ...

GA calculates wrong penalty

You are probably seeing the result of the integer-constrained solver. The fitness function is modified by a penalty term. It is ...

4ヶ月 前 | 0

回答済み

Problems with fmincon constraints writing

You should not use linear constraints that way. Instead, use bounds. Your nonlinear constraint function looks fine. The reason...

Problems with fmincon constraints writing

You should not use linear constraints that way. Instead, use bounds. Your nonlinear constraint function looks fine. The reason...

4ヶ月 前 | 0

回答済み

neumann boundary condition in diffusion on a disk and ring

I think that you might be making a modeling error. If the flux across the boundaries is zero, then perhaps you should not have t...

neumann boundary condition in diffusion on a disk and ring

I think that you might be making a modeling error. If the flux across the boundaries is zero, then perhaps you should not have t...

4ヶ月 前 | 0

回答済み

Change the value of a variable between each iteration of fminsearch

I still think that I do not understand what you are really trying to do. But if you wnat to keep two functions equal, then in fm...

Change the value of a variable between each iteration of fminsearch

I still think that I do not understand what you are really trying to do. But if you wnat to keep two functions equal, then in fm...

4ヶ月 前 | 0

回答済み

Not enough input arguments for 'bayesopt'?

Please look at the documentation on Bayesian objective functions. The bayesopt solver passes a table to the objective function. ...

Not enough input arguments for 'bayesopt'?

Please look at the documentation on Bayesian objective functions. The bayesopt solver passes a table to the objective function. ...

4ヶ月 前 | 1

回答済み

fmincon: interior-point & SQP computational complexity

This question can probably be best estimated by scaling the problem from small to medium to lmedium-arge, running fmincon on all...

fmincon: interior-point & SQP computational complexity

This question can probably be best estimated by scaling the problem from small to medium to lmedium-arge, running fmincon on all...

4ヶ月 前 | 1

回答済み

How can I extract function evaluations that happen during iterations (fmincon) ?

The only way I know to do this is to have your objective function either display or write the values as it calculates them. The ...

How can I extract function evaluations that happen during iterations (fmincon) ?

The only way I know to do this is to have your objective function either display or write the values as it calculates them. The ...

4ヶ月 前 | 0

| 採用済み

回答済み

i need help in optimization toolbox

It is possible that the documentation has enough detail for your purpose: Genetic Algorithm Terminology How the Genetic Algori...

i need help in optimization toolbox

It is possible that the documentation has enough detail for your purpose: Genetic Algorithm Terminology How the Genetic Algori...

4ヶ月 前 | 0

回答済み

Use Bayesian Optimization on Existing Database

Do you want to query your database or run your model? If you want to just query your database, input the database into MATLAB an...

Use Bayesian Optimization on Existing Database

Do you want to query your database or run your model? If you want to just query your database, input the database into MATLAB an...

4ヶ月 前 | 0

回答済み

Choosing the best approach to quadratic progamming problem

The differences between the approaches are outlined here. There are several examples of quadratic programming here, both problem...

Choosing the best approach to quadratic progamming problem

The differences between the approaches are outlined here. There are several examples of quadratic programming here, both problem...

4ヶ月 前 | 0

回答済み

Question about an effect of ConstraintTolerance on multiple constraints for GA optimization

Thank you for the clear explanation. You have a difficult nonlinear problem with all integer variables. The solver is struggling...

Question about an effect of ConstraintTolerance on multiple constraints for GA optimization

Thank you for the clear explanation. You have a difficult nonlinear problem with all integer variables. The solver is struggling...

4ヶ月 前 | 1

| 採用済み

回答済み

Sparsity exploitation in optimization

There are several fmincon algorithms, and they each exploit sparsity differently. The term "large-scale" means that an algorithm...

Sparsity exploitation in optimization

There are several fmincon algorithms, and they each exploit sparsity differently. The term "large-scale" means that an algorithm...

4ヶ月 前 | 0

回答済み

Algorithm parameter of solve ignored

You are passing the options incorrectly. See this example on the solve function reference page. Alan Weiss MATLAB mathematical...

Algorithm parameter of solve ignored

You are passing the options incorrectly. See this example on the solve function reference page. Alan Weiss MATLAB mathematical...

4ヶ月 前 | 0

| 採用済み

回答済み

How to use the decision variables of the optimization problem in if else statement

I do not understand your formulation. You have ll and ul as optimization variables, which is why you are getting the complaints ...

How to use the decision variables of the optimization problem in if else statement

I do not understand your formulation. You have ll and ul as optimization variables, which is why you are getting the complaints ...

5ヶ月 前 | 0

回答済み

fmincon with sqp algorithm but without inclduing a gradient

See Benefits of Including Derivatives in the documentation. Alan Weiss MATLAB mathematical toolbox documentation

fmincon with sqp algorithm but without inclduing a gradient

See Benefits of Including Derivatives in the documentation. Alan Weiss MATLAB mathematical toolbox documentation

5ヶ月 前 | 1

回答済み

Drawing parabolas in pdeModeler

pdeModeler is for 2-D problems, so I assume that you have 2-D geometry. In this case, you can use a parametrized function for 2-...

Drawing parabolas in pdeModeler

pdeModeler is for 2-D problems, so I assume that you have 2-D geometry. In this case, you can use a parametrized function for 2-...

5ヶ月 前 | 0

回答済み

Error using fminunc with array as function output and multiple inputs

It is not clear what you are trying to do. Your P(x,T,Tmed) is not a scalar, so it is not clear what it means to minimize it. Y...

Error using fminunc with array as function output and multiple inputs

It is not clear what you are trying to do. Your P(x,T,Tmed) is not a scalar, so it is not clear what it means to minimize it. Y...

5ヶ月 前 | 0

回答済み

Optimization Problem: Max Sharpe Ratio

Currently, as the documentation clearly states, the problem-based approach does not apply to general nonlinear problems. You mus...

Optimization Problem: Max Sharpe Ratio

Currently, as the documentation clearly states, the problem-based approach does not apply to general nonlinear problems. You mus...

5ヶ月 前 | 0

回答済み

change stepsize of fmincon

See Set Larger Finite Differences. Also, check that your function returns different values for different inputs. Alan Weiss MA...

change stepsize of fmincon

See Set Larger Finite Differences. Also, check that your function returns different values for different inputs. Alan Weiss MA...

5ヶ月 前 | 0