Java code
package optimization;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
dos.writeBytes(Double.toString(ed));
dos.writeBytes(";\n");
System.out.println(vecToString());
iterationNumber++;
}
System.out.println(iterationNumber);
}
vOld.add(100.0);
vOld.add(100.0);
vNew.add(10.0);
vNew.add(10.0);
double lambda =0.09641873;
Unconstrained calc = new Unconstrained(vOld, vNew, lambda);
calc.calculateConvergence();
System.out.println("That's it ");
}
Analysis of impact of lambda
Initially lambda was 0.09641873 then we change the value of lambda. With the change of lambda the
no. of iteration change as you can see in graph below.
No. of Iteration
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 1000 2000 3000 4000 5000 6000
Conclusion
The unconstrained optimization problem of finding the relative minima x , of f(x) was studied in this
report. The subject of this technical report is the evaluation of different unconstrained optimization
methods; that determine the extremum points of the given objective function(s). By this homework of
unconstraint optimization we learned how easily we can find the solution of complex problems .This
study intended to apply optimization method to vehicle dynamics specifically to generate two optimal
paths; one that would minimize travel time, and another that would maximize tire forces. The
parametric study, demonstrates the effectiveness of the optimization algorithm. Therefore, it can be
concluded that optimal paths can be generated using optimization routine, such as the unconstrained
optimization algorithm of MATLAB. With further development, to improve computation time and
accuracy, this idea can be effectively applied to practical cases such as an automated track testing
procedure.