Multiobjective optimization with constraints
Your input data is inconsistent: nvars = 2; lb = [0,0,0,0,0,0]; ub = [Inf,Inf,Inf,Inf,24,24]; Your bounds are on your decisi...

| accepted

Optimize parameter of Simulink model to fit experimetal data
I am not sure, but maybe the approaches in one of these examples will help: lsqnonlin with a Simulink® Model Using fminimax wi...

Is it possible to get some repeated values of non-dominated solutions in a pareto optimal solution set?
It can be difficult for solvers to remove duplicate points themselves. Feel free to do so yourself after the solver finishes. A...

| accepted

optimization using solver based
Try adding the following lines after your script has run: options = optimoptions('fmincon','MaxIterations',1e4); [sol,fval,exi...

Need Urgent Help on PSO to reflect the Mathmatical Function to MATLAB
Did you try fun = @(x)2*(x(1)-2)^2 + 3*(x(1)+x(2))^2 - (x(1)*x(2))^4; [sol,fval] = particleswarm(fun,2) You will see that thi...

What is the crossover method for solving real coded genetic algorithm in Global Optimization Toolbox
The documentation contains the following: How the Genetic Algorithm Works which talks about crossover in general. Crossover Op...

| accepted

How to calculate velocity in PSO CVRP
If you simply want to sort the variables, I suggest that you apply the sort function. nums = [1 4 4 2]; [~,snums] = sort(nums)...

| accepted

Global Optimization for a Simulink Model
You probably want to minimize the mean squared error. For an example, see lsqnonlin with a Simulink® Model. You can change the s...

| accepted

fmincon contraints range issue
You simply need two constraints, area_surf < 10 and area_surf > 5. function [c, ceq]= contraints(x) c(2) = area_surf(x) - 10; ...

optimization using symbolic toolbox
Your code returns j = (delta^2*t^3)/3 + (eta^2*t^3)/3 + t With this information, the symbolic portion of your problem is d...

Optimization tools: handling error output from objective functions
I suggest that you test for unexpected results within your objective function code and handle it appropriately. For example, if ...

Multi-stage amplifier optimization
I didn't try too run your code, but this line is incorrect syntax: ceq (1) = A(1)*A(2)*A(3)*A(4)*A(5) = 10000; It should be c...

Unable to use for loop in fmincon
You are not passing the value of p into myfun1. What is it supposed to represent in your code? What I mean is, when you write f...

| accepted

Bayesian optimization with sum constraint
This sounds like a balls-in-buckets problem. You have up to balls to place into buckets. The occupancy (number of balls) of bu...

fminsearch, Not enough input arguments.
Next time please give the entire error message by copying and pasting everything in red: Not enough input arguments. Error i...

Graphing a Multi-Objective Optimization problem
Using your functions (edited versions below), I called gamultiobj as follows: A = [2 1]; b = 2; options = optimoptions('gamul...

| accepted

Mixed Integer Linear Programming Problem
You might find the following documentation useful: Investigate Linear Infeasibilities Alan Weiss MATLAB mathematical toolbox ...

non-linear optimization with complex constrains
I think that you need to solve two different problems, one assuming w =100, one assuming w = 500. Your objective is discontinuou...

How To Optimize Model Parameters In Simulink?
Perhaps these examples are relevant: Fit ODE, Problem-Based Fit an Ordinary Differential Equation (ODE) Optimizing a Simulati...

| accepted

plot the final value of optimization
It seems that your data is x(i) and y(i), and the associated 2*a+3 and 4*b+9. Yeah, they are all constants, nothing much to plot...

| accepted

Multiobjective Genetic algorithm with integer variables
Sorry, currently there is no built-in function to perform integer-constrained multiobjective optimization. Alan Weiss MATLAB m...

Inverse of a function gives different results than the negative function with fmincon
The problem could be related to a few things, such as numerical stability and the presence of multiple local minima. For numeri...

| accepted

What is the scale problem in lsqcurvefit optimization?
Check out the lsqcurvefit FiniteDifferenceStepSize option that you set with optimoptions. Alan Weiss MATLAB mathematical toolb...

Optimization fmincon with integral. Results not optimal, what am I doing wrong?
The first-order optimality measure is not that small at the end. I suspect that your problem is a bit sensitive. i see in your c...

| accepted

Linear programming with conditional constraints
I think that you can do this with mixed-integer linear programming. Create auxiliary binary variables y1 and y2. These variables...

The error is that fsolve expects just one input argument, and you have many (I count 5 arguments, A_py,A_sy,M_py,M_sy,P_c) : g...

Failure in initial nonlinear constraint function evaluation. FMINCON cannot continue.
You did a good job converting the problem to code. Your only real errors are typos in the nonlinear constraint function. Try thi...

Mixed Integer (binary) Non-linear problem
That is way too many variables for ga even if it handled integer equality constraints. I suggest that you would probably be best...