ga_function_in_MATLAB

# ga_function_in_MATLAB - Optimization Problem Minimize f =...

This preview shows pages 1–2. Sign up to view the full content.

Optimization Problem: Minimize f = x 1 +10x 2 Such that, x 1 +2x 2 7 2x 1 +x 2 5 x 1 ,x 2 0 x 1 ,x 2 are integers The ‘ ga ’ function in MATLAB is used to solve this optimization problem by creating an objective function as shown in the above optimization problem after using the floor function to make x i ’s integers. For the constraints the non-linear constraint option in ga is used as we have to use only integer values. The floor function is again used and the inequality constraints are formed so that they are less than or equal to zero form. Results after optimization Best Result x 1 = 7, x 2 = 0 with the minimum value of the objective function equal to 7 . But the ‘ga’ function in MATLAB is very fickle and needs to be run multiple times to get the best result. The results for 5 runs are shown in the table below. S.No. Optimum point Objective function value Exitflag No. of generations 1. x 1 = 7, x 2 = 0 7 1 5 2. x 1 = 5, x 2 = 1 15 1 5 3. x 1 = 7, x 2 = 0 7 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 03/27/2012 for the course EAS 4240c taught by Professor Staff during the Spring '11 term at University of Florida.

### Page1 / 4

ga_function_in_MATLAB - Optimization Problem Minimize f =...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online