Answered
How to solve the two equations numerically in which tabular data is also to be loaded?
First you have to make a function that interpolates your data so that the function can be evaluated at any point. Load the |c| a...

7 years ago | 1

Answered
Not enough input arguments is showing when a simple "fmincon" code is ran, anyone please help ?
Your error is that your |fmincon| call uses |nonlinfn| instead of the function handle |@nonlinfn|: x = fmincon(fun,x0,A,b,A...

7 years ago | 1

| accepted

Answered
I would like to use particleswarm function of matlab but my function is a discrete one with double values. Like it has 50 diff values and i need to use particle swarm to find global and local minimum after say 1000 iteration.
Sorry, the <https://www.mathworks.com/help/gads/particleswarm.html |particleswarm|> function deals only with continuous variable...

7 years ago | 0

Answered
How can I formulate a MILP to evaluate a supply chain optimisation?
There are several examples in the documentation, including a <https://www.mathworks.com/help/optim/examples/factory-warehouse-sa...

7 years ago | 0

Answered
Fmincon optimization and optimvar
Currently, |optimvar| is available only for linear and mixed-integer linear problems, <https://www.mathworks.com/help/optim/prob...

7 years ago | 0

Answered
Matlab not recognize optimproblem and optimvar in Optimization problem
|optimproblem| and |optimvar| were introduced in R2017b. If you have an earlier version of MATLAB, these functions are not avail...

7 years ago | 0

Answered
Hi , I don't know who can I use Hypervolme and spread quality indicators for problem optimization..i need your help
Usually, these quantities relate to multiobjective optimization. For information about hypervolume algorithms, see Fleischer,...

7 years ago | 0

| accepted

Answered
Passing parameters into .m function while trying to use fminsearch
You can pass extra parameters using <https://www.mathworks.com/help/matlab/math/parameterizing-functions.html nested functions o...

7 years ago | 1

| accepted

Answered
Can gaplotpareto be used with saved gamultiobj state data?
I think that |gaplotpareto| is intended to be used as a plot function, so I believe that it would be difficult to call directly....

7 years ago | 0

Answered
finding the optimal parameters
<https://www.mathworks.com/help/optim/ug/fit-differential-equation-ode.html This example> is relevant. Good luck, Alan Wei...

7 years ago | 0

| accepted

Answered
How to change Crossover Function in GA midway through solving?
I think that this will work, but I have not tested it, so use at your own risk. Suppose that you want to change the crossover...

7 years ago | 0

Answered
Output constraints in optimization toolbox
I am not sure that I understand you, because you say that you are minimizing the cost, but you also want to constrain the cost. ...

7 years ago | 0

Answered
Failure to maximise simulated likelihood
While your problem is quite involved, and I don't understand some of what you ask, I wonder whether you might do better by using...

7 years ago | 0

Answered
Optimization process in matlab and simulink
There are several examples showing optimization of a Simulink model: <https://www.mathworks.com/help/optim/ug/example-using-f...

7 years ago | 0

| accepted

Answered
I am looking for code, that is inverse of optimization. Have variable combinations (and plot them) that gives response value in a boundary.
You might be able to formulate this as an optimization problem. Your decision variables are a, b, c. The objective (the thing to...

7 years ago | 0

Answered
Constraints on dependent variable Matlab
Yes, you can impose any constraints you like by using a <https://www.mathworks.com/help/optim/ug/nonlinear-constraints.html nonl...

7 years ago | 0

Answered
Finding distribution from few moments
You could try the method of <http://www.fks.sk/~juro/docs/paper_spie_2.pdf this paper> (I have never tried it, but it seems like...

7 years ago | 0

Answered
How can I add multiple constraints to multiple variables for a GA optimization?
The <https://www.mathworks.com/help/optim/ug/nonlinear-constraints.html documentation for writing nonlinear constraints> shows a...

7 years ago | 2

| accepted

Answered
How to pass constants when solving nonlinear problem using fsolve
See <https://www.mathworks.com/help/optim/ug/passing-extra-parameters.html Passing Extra Parameters>. Alan Weiss MATLAB ma...

7 years ago | 0

Answered
Linear Programming - Optimization Over One Year
I think that you might find some enlightenment in these examples: * <https://www.mathworks.com/help/optim/examples/optimal-di...

7 years ago | 2

| accepted

Answered
Why does the root finder give an error when specified numroots > actual number of roots on the domain?
It appears that the value of |rootval2| comes from this line of code: rootval2(ir,:) = fminsearch(fun2,roots(ir),optimset('...

7 years ago | 0

Answered
Setting start points for MultiStart
<https://www.mathworks.com/help/gads/set-start-points-for-multistart.html Set Start Points for MultiStart> describes how to set ...

7 years ago | 0

| accepted

Answered
How to pass more parameters than the existing ones to output function of fmincon?
To pass external parameters, <https://www.mathworks.com/help/optim/ug/passing-extra-parameters.html use the documented ways>. Yo...

7 years ago | 1

| accepted

Answered
Maximizing likelihood not working
I think that you would have more success by maximizing the log of the likelihood, which should avoid many numerical issues. And ...

7 years ago | 0

| accepted

Answered
How can I make an array of cubic cells with PDE geometry?
No, sorry, currently you can only offset in the Z direction. This limitation is <https://www.mathworks.com/help/pde/ug/multicubo...

7 years ago | 0

| accepted

Answered
Extract the longest edge of a mesh generated by pdetool
You can extract the information yourself from the <https://www.mathworks.com/help/pde/ug/mesh-data.html Mesh Data>. First, ex...

7 years ago | 1

| accepted

Answered
Why does fmincon's constrviolation converge at a specific value?
For suggestions on trying to obtain a feasible solution, see <https://www.mathworks.com/help/optim/ug/when-the-solver-fails.html...

7 years ago | 1

| accepted

Answered
question on the lasso example in matlab documentation
The example is just intended to show how to use the function. I wanted to show what the output looked like, that the coefficient...

7 years ago | 0

| accepted

Answered
lsqcurvefit and multistart visibly not giving me a good fit. What am I doing wrong?
I am not sure that your objective function is defined properly. The objective function is supposed to have two input variables, ...

7 years ago | 0

| accepted

Answered
the output in my fgoalattain multiobjective optimization is going out of limit i put on upper and lower bound
<https://www.mathworks.com/help/optim/ug/iterations-can-violate-constraints.html As documented>, the |fgoalattain| solver can vi...

7 years ago | 0

Load more