統計
All
Feeds
回答済み
Cannot Connect to Local Redis Instance: Invalid Host Name "localhost"
I encountered this same message, for me the problem was that my /etc/hosts file on MacOS had been modified when I did some work ...
Cannot Connect to Local Redis Instance: Invalid Host Name "localhost"
I encountered this same message, for me the problem was that my /etc/hosts file on MacOS had been modified when I did some work ...
約2年 前 | 0
回答済み
Optimizing FLC with GA
Hi Michael, Here's an <http://www.mathworks.com/help/gads/examples/coding-and-minimizing-a-fitness-function-using-the-genetic...
Optimizing FLC with GA
Hi Michael, Here's an <http://www.mathworks.com/help/gads/examples/coding-and-minimizing-a-fitness-function-using-the-genetic...
10年以上 前 | 0
回答済み
how can i solved mixed integer linear programming using genetic algorithm in matlab
If your objective function and constraints are linear, I highly recommend using the mixed-integer linear programming solver in O...
how can i solved mixed integer linear programming using genetic algorithm in matlab
If your objective function and constraints are linear, I highly recommend using the mixed-integer linear programming solver in O...
11年弱 前 | 0
回答済み
how to implement MILP in matlab
As of R2014a, Optimization Toolbox has a mixed-integer linear programming solver: <http://www.mathworks.com/help/optim/ug/intli...
how to implement MILP in matlab
As of R2014a, Optimization Toolbox has a mixed-integer linear programming solver: <http://www.mathworks.com/help/optim/ug/intli...
11年弱 前 | 0
| 採用済み
回答済み
Numerical packing
Seeing how Optimization Toolbox has a mixed-integer solver in R2014a, I figured I would post this alternate solution that uses <...
Numerical packing
Seeing how Optimization Toolbox has a mixed-integer solver in R2014a, I figured I would post this alternate solution that uses <...
11年弱 前 | 3
回答済み
simultaneous linear equations minimization by linprog command
The summation of the variables being equal to a constant could be taken care of by an equality constraint. In that case, your A...
simultaneous linear equations minimization by linprog command
The summation of the variables being equal to a constant could be taken care of by an equality constraint. In that case, your A...
約11年 前 | 0
回答済み
I'm trying to write a bit of user friendly code where the user is prompted to enter file names and the names will be stored in an array. However, I keep getting errors. Can someone fix this code below?
Two things that I think will help: 1) Use a cell array to store the names of the files rather than an array. This will be ea...
I'm trying to write a bit of user friendly code where the user is prompted to enter file names and the names will be stored in an array. However, I keep getting errors. Can someone fix this code below?
Two things that I think will help: 1) Use a cell array to store the names of the files rather than an array. This will be ea...
11年以上 前 | 0
| 採用済み
回答済み
How do I find all the positive roots of (e^(-.2x ))(cos(2x))-.15x^2+1
2 things: 1) fzero is designed to find a single zero at a time. You will need to loop through each value for x0 and record the ...
How do I find all the positive roots of (e^(-.2x ))(cos(2x))-.15x^2+1
2 things: 1) fzero is designed to find a single zero at a time. You will need to loop through each value for x0 and record the ...
12年弱 前 | 0
回答済み
Genetic Algorithm - Plotting fitness values
PlotFcns needs to be passed in as an option for ga: problem.options.PlotFcns = @gaplotbestf;
Genetic Algorithm - Plotting fitness values
PlotFcns needs to be passed in as an option for ga: problem.options.PlotFcns = @gaplotbestf;
12年弱 前 | 1
| 採用済み
回答済み
export m-file with fmincon to C-Code for PowerPC
Hi Daniel, Generating C-Code from MATLAB code that includes optimization solvers such as fmincon is currently not supported. ...
export m-file with fmincon to C-Code for PowerPC
Hi Daniel, Generating C-Code from MATLAB code that includes optimization solvers such as fmincon is currently not supported. ...
12年弱 前 | 0
| 採用済み
回答済み
Nonlinear fit to multiple data sets with shared parameters
So if I understand correctly, you want to fit tau1, tau2, tau3 to all the data, but the other parameters are fit on an individua...
Nonlinear fit to multiple data sets with shared parameters
So if I understand correctly, you want to fit tau1, tau2, tau3 to all the data, but the other parameters are fit on an individua...
約12年 前 | 0
回答済み
Plotyy - Managing the colors of y-labels
For (1) you can set the YColor property of each of the axes, for example: set(AX(1),'YColor','k'); For (2), if you just ...
Plotyy - Managing the colors of y-labels
For (1) you can set the YColor property of each of the axes, for example: set(AX(1),'YColor','k'); For (2), if you just ...
12年以上 前 | 1
| 採用済み
回答済み
Solve Non Linear Equations using fsolve
From what I can tell this problem has 1600 equations and only 4 unknowns, which would mean it is overdetermined and likely doesn...
Solve Non Linear Equations using fsolve
From what I can tell this problem has 1600 equations and only 4 unknowns, which would mean it is overdetermined and likely doesn...
12年以上 前 | 1
回答済み
how can I change symbols in symbolic equations with x(1), x(2), ...
I believe the _matlabFunction_ function is what you are looking for: <http://www.mathworks.com/help/toolbox/symbolic/matlabfu...
how can I change symbols in symbolic equations with x(1), x(2), ...
I believe the _matlabFunction_ function is what you are looking for: <http://www.mathworks.com/help/toolbox/symbolic/matlabfu...
12年以上 前 | 0
回答済み
matlab2012a vs matlab20111b. Why does the latter produces an error message?
I think the cause here is that fminunc was updated in R2012a to attempt to recover when the objective function returns NaN or In...
matlab2012a vs matlab20111b. Why does the latter produces an error message?
I think the cause here is that fminunc was updated in R2012a to attempt to recover when the objective function returns NaN or In...
12年以上 前 | 2
| 採用済み
回答済み
How to fit parameters in an m.file to a curve?
Take a look at lsqcurvefit from the Optimization Toolbox. <http://www.mathworks.com/help/toolbox/optim/ug/lsqcurvefit.html>...
How to fit parameters in an m.file to a curve?
Take a look at lsqcurvefit from the Optimization Toolbox. <http://www.mathworks.com/help/toolbox/optim/ug/lsqcurvefit.html>...
12年以上 前 | 0
| 採用済み
回答済み
A very simple question for GA
It looks like there is an issue with the way your decision variables are defined. The input to the objective function (which is...
A very simple question for GA
It looks like there is an issue with the way your decision variables are defined. The input to the objective function (which is...
12年以上 前 | 0
| 採用済み
回答済み
Genetic Algorithm - weights ensemble optimization
Hi Michiel, If you aren't 100% set on using a Genetic Algorithm, I recommend starting with a gradient-based optimization solver...
Genetic Algorithm - weights ensemble optimization
Hi Michiel, If you aren't 100% set on using a Genetic Algorithm, I recommend starting with a gradient-based optimization solver...
12年以上 前 | 0
回答済み
Optimization in LinProg
Hi Meemai, The message "Optimization Terminated" means that the optimization completed as normal. If you look at the value o...
Optimization in LinProg
Hi Meemai, The message "Optimization Terminated" means that the optimization completed as normal. If you look at the value o...
12年以上 前 | 2
| 採用済み
回答済み
Optimization Toolbox - Choosing a Solver
Hi Norbert, Since your decision variable shift will need to be an integer (it's being used as an index), you would need to use ...
Optimization Toolbox - Choosing a Solver
Hi Norbert, Since your decision variable shift will need to be an integer (it's being used as an index), you would need to use ...
12年以上 前 | 1
回答済み
matrix inside a matrix
The REPMAT and DIAG commands should be able to do what you need: A = repmat([3;4;5],5,1) B = diag(A,0) Check out the ...
matrix inside a matrix
The REPMAT and DIAG commands should be able to do what you need: A = repmat([3;4;5],5,1) B = diag(A,0) Check out the ...
13年弱 前 | 0
| 採用済み
回答済み
Mixed integer optimisation with genetic algorithm problem
Hi Calen, The GA solver uses a penalty function when optimizing mixed-integer problems. The penalty function takes into accoun...
Mixed integer optimisation with genetic algorithm problem
Hi Calen, The GA solver uses a penalty function when optimizing mixed-integer problems. The penalty function takes into accoun...
13年弱 前 | 0
回答済み
How can I save the settings of fsolve in the optimization tool ?
You can create an options structure in your MATLAB function and then pass that structure to FSOLVE. The options structure is cre...
How can I save the settings of fsolve in the optimization tool ?
You can create an options structure in your MATLAB function and then pass that structure to FSOLVE. The options structure is cre...
13年弱 前 | 1
| 採用済み
回答済み
OUT OF MEMORY
This looks like it might help: <http://www.mathworks.com/products/image/description7.html>
OUT OF MEMORY
This looks like it might help: <http://www.mathworks.com/products/image/description7.html>
13年弱 前 | 1
| 採用済み
回答済み
Optimization Technique
If you're trying to minimize or maximize Y, and Y is a scalar, I'd recommend trying <http://www.mathworks.com/help/toolbox/optim...
Optimization Technique
If you're trying to minimize or maximize Y, and Y is a scalar, I'd recommend trying <http://www.mathworks.com/help/toolbox/optim...
13年弱 前 | 0
| 採用済み
回答済み
Lsqcurvefit on function depending on syms
Hi Gustav, You'll first need to use the matlabFunction command to convert the symbolic equation into a MATLAB function handle...
Lsqcurvefit on function depending on syms
Hi Gustav, You'll first need to use the matlabFunction command to convert the symbolic equation into a MATLAB function handle...
13年弱 前 | 0
| 採用済み
回答済み
Solving overdeterminated linear equation system with specified conditions
Hi Thomas, If you have the Optimization Toolbox, LSQLIN can solve constrained least-squares problems: <http://www.mathworks.com...
Solving overdeterminated linear equation system with specified conditions
Hi Thomas, If you have the Optimization Toolbox, LSQLIN can solve constrained least-squares problems: <http://www.mathworks.com...
13年弱 前 | 1
| 採用済み
回答済み
Optimization: share additional output of cost function with constraint function
There was a good discussion on this issue here: <http://www.mathworks.com/matlabcentral/newsreader/view_thread/269936> The te...
Optimization: share additional output of cost function with constraint function
There was a good discussion on this issue here: <http://www.mathworks.com/matlabcentral/newsreader/view_thread/269936> The te...
13年弱 前 | 1
| 採用済み
回答済み
How to use the OutputFcns function in the optimset options?
<http://www.mathworks.com/help/techdoc/math/bsgpq6p-23.html>
How to use the OutputFcns function in the optimset options?
<http://www.mathworks.com/help/techdoc/math/bsgpq6p-23.html>
13年弱 前 | 0
回答済み
For LSQNONLIN is it okay if the number of elements in the vector-valued function varies per iteration?
Hi Kevin, LSQNONLIN is using the values in the Fopt vector to determine the gradient, and it does this by calculating Fopt at...
For LSQNONLIN is it okay if the number of elements in the vector-valued function varies per iteration?
Hi Kevin, LSQNONLIN is using the values in the Fopt vector to determine the gradient, and it does this by calculating Fopt at...
13年弱 前 | 2
| 採用済み