User Tools

Site Tools


optimization

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
optimization [2018/09/18 10:35]
mark.naves
optimization [2018/09/19 09:46]
mark.naves
Line 6: Line 6:
  
 <code matlab run_sim.m> <code matlab run_sim.m>
-function cost = run_sim(P, Silent)% EXAMPLE SCRIPT FOR RUNNING SPACAR LIGHT+function [cost, out] = run_sim(P, Silent)% EXAMPLE SCRIPT FOR RUNNING SPACAR LIGHT
 if nargin == 1 if nargin == 1
     Silent = true; %run in silent mode when called by optimizer     Silent = true; %run in silent mode when called by optimizer
Line 99: Line 99:
 </code> </code>
  
-An example to conduct the optimization is provided below, taking into account additional boundary conditions on the design parameters of the cross-hinge. See matlab's documentation on''fmincon'' for more information.+An example to conduct the optimization is provided below, taking into account additional boundary conditions on the design parameters of the cross-hinge. See matlab's documentation on ''fmincon'' for more information.
  
 <code matlab optimization.m> <code matlab optimization.m>
Line 116: Line 116:
  
 %show results %show results
-run_sim(x_opt,false)+[cost, out] = run_sim(x_opt,false);
 </code> </code>
 //Note: prescribing input rotation is only supported for SPACAR light version 1.27 or higher.// //Note: prescribing input rotation is only supported for SPACAR light version 1.27 or higher.//
optimization.txt · Last modified: 2022/01/12 13:41 by jan.dejong