Answered
What is the difference between Optimproblem and linprog
For examples and a description of the problem-based approach, see Linear Programming and Mixed-Integer Linear Programming. Alan...

5 years ago | 0

Answered
Is there a bug in the genetic algorithm (ga) under certain conditions?
You have a nonlinear constraint function. This changes the algorithm quite a bit; see Nonlinear Constraint Solver Algoirithm. Se...

5 years ago | 0

Answered
solve optimization with constraints
This problem is similar to Create Multiperiod Inventory Model in Problem-Based Framework. I think that you will find the problem...

5 years ago | 0

| accepted

Answered
fmincon nonlinear constraints not being optimized
Your code contains a lot of lines of the form averagecurrentH2(isnan(averagecurrentH2))=0; When I run your entire code in debu...

5 years ago | 0

Answered
Get Jacobian when using problem-based approach in Optimization Toolbox
Unfortunately, you cannot get the Jacobian output when using the problem-based approach. If you need it, then convert your probl...

5 years ago | 1

| accepted

Answered
setting-up input variable in genetic algorithm
You need to use Mixed Integer ga Optimization in one of several ways. Internally to your objective function, change your intege...

5 years ago | 1

| accepted

Answered
selection of parameters by genetic algorithm
I think that you should use Mixed Integer ga Optimization. Create a binary variable x with 16 components. Create the linear cons...

5 years ago | 0

| accepted

Answered
What is considered a good value of hypervolume indicator for a given Pareto front surface?
The hypervolume depends on the scale of your objective functions, so there is no such thing as a "good" value. For a 3-objective...

5 years ago | 0

Answered
linprog not giving all possible solutions
You might want to try the problem-based approach, which makes formulating and analyzing your problem easier. v = optimvar('v','...

5 years ago | 1

| accepted

Answered
How to use genetic algorithm to minimize an objective function having 7 variables?
Your question seems to be "Is the genetic algorithm a good solver for global optimization?" The answer is in the table for choos...

5 years ago | 0

| accepted

Answered
Solving an implicit equation with fsolve and validating with fplot
You have set an enormous value of the FunctionTolerance option. Don't set any options and I expect that you will get a better an...

5 years ago | 0

Answered
Use of ga matlab function for optimization problem. I want to update the individuals inside the function to be optimized.
You can pass the result of fminsearch to ga by setting the result, say x, as the InitialPopulationMatrix option: options = opti...

5 years ago | 0

Answered
How to find global minima using fmincon function and non-linear constraint?
GlobalSearch and MultiStart use fmincon as the local solver, so they support whatever comstraints fmincon supports, meaning basi...

5 years ago | 0

| accepted

Answered
How to Control optimizaiton's variable changing step
Unfortunately, fmincon does not accept integer constraints. If your problem has an approximately quadratic objective, you can tr...

5 years ago | 0

| accepted

Answered
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...

5 years ago | 0

| accepted

Answered
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...

5 years ago | 0

Answered
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...

5 years ago | 0

| accepted

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

5 years ago | 0

Answered
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...

5 years ago | 0

Answered
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...

5 years ago | 0

| accepted

Answered
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)...

5 years ago | 0

| accepted

Answered
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...

5 years ago | 1

| accepted

Answered
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; ...

5 years ago | 0

Answered
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...

5 years ago | 0

Answered
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 ...

5 years ago | 0

Answered
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...

5 years ago | 0

Answered
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...

5 years ago | 1

| accepted

Answered
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...

5 years ago | 0

Answered
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...

5 years ago | 0

Answered
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...

5 years ago | 1

| accepted

Load more