Submitted

Optimization in MATLAB: An Introduction to Quadratic Programming

Files used in "An Introduction to Quadratic Programming" Webinar

9 months ago | 24 downloads |

Submitted

Analyzing Fleet Test Data using MATLAB

Files from the webinar "Analyzing Fleet Test Data using MATLAB"

1 year ago | 3 downloads |

Submitted

Mixed-Integer Linear Programming in MATLAB

MATLAB files from the webinar

1 year ago | 20 downloads |

Submitted

Files for the 2012 Webinar "Tips and Tricks - Getting Started Using Optimization with MATLAB"

These are the files that were used for the demonstrations in the webinar.

1 year ago | 5 downloads |

Submitted

CVaR Portfolio Optimization

Conditional Value at Risk (CVaR) portfolio optimization with the PortfolioCVaR object

1 year ago | 12 downloads |

Submitted

Optimal Component Selection Using the Mixed-Integer Genetic Algorithm

Use the mixed-integer genetic algorithm to solve an engineering design problem.

1 year ago | 24 downloads |

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

1 year ago

Solved

Model a mass spring system

Model an ideal mass-spring system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/images/se...

1 year ago

Solved

Make a half wave rectifier

Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...

1 year ago

Solved

Produce a cosine wave

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

1 year ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

2 years ago

Linked

Integer Programming

Solve linear programming problems with integer variables.

3 years ago | 58 clicks |

Answered

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

3 years ago | 0

Solved

Text processing - Help Johnny write a letter home from camp

Johnny overuses the word 'great'. Write a script that will help him with this and future letters. If a sentence contains more ...

3 years ago

Solved

Set the array elements whose value is 13 to 0

Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

3 years ago

Answered

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

3 years ago | 0

Answered

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

3 years ago | 0

| accepted

Answered

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

3 years ago | 3

Answered

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

4 years ago | 0

Solved

How to find the position of an element in a vector without using the find function

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

4 years ago

Solved

Reverse the vector

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

4 years ago

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

4 years ago

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

4 years ago

Answered

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

4 years ago | 0

| accepted

Answered

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

4 years ago | 0

Answered

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;

4 years ago | 1

| accepted

Answered

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

4 years ago | 0

| accepted

Solved

Weighted average

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

4 years ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

4 years ago