Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to make fmincon search through the all domain of definition?

How to make fmincon search through the all domain of definition?

How to make fmincon search through the all domain of definition?

Hello to everyone,
i am implementing a driver model with look-ahead function. Herefore, i have to use an optimization algorithm, which look in a finite future horizont, to define Np optimal control signals, so that a specific Cost function J(trade off between deviation to reference trajectory and Consumption), can be minimized. That means if for example i am only minimizing J over the acceleration pedal Ua, then i call fmincon from a level 2 s-function within the main Car-model like this for example:
Uopt = fmincon(@(u)fun(u),U0,[],[],[],[],-100,100,@nonlcon,options).
whereby U0 is a vector of size = [Npx1]. Within teh function fun a simplified vehicle model, is then called with u as input and the velocities over the Np time steps as output!
My questions are then:
1) since i set DiffMinChange=0.1 and DiffMaxChange = 100, why does fmincon only try pulses of u=0.1 at different time steps, and doesn't try bigger values within the range [0.1 ,100]??? Fmincon then stops since(i think) with a single input of 0.1 as pedal position the cost function doesn't vary very much. It would be something else if it would ahve tried u = [100 50 80 10 9] in case Np = 5 for example.

2) the all process of calling the simulink model is really, really slow. Is there a more convenient way to implement predictive control, when i don't have the predictive control toolbox???
I am new to the site and i hope we will have some great discussions.
Thanks for your time and help.

RE: How to make fmincon search through the all domain of definition?

well the prediction will actually also controls the shifting-strategy for the manual gearbox(that was just a small part of the problems) and since i'am simulating an hybid driveline, i tought it was the right forum.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


White Paper - Strategies to Secure Connected Cars with Firewalls
White-hat hackers have demonstrated gaining remote access to dashboard functions and transmissions of connected vehicles. That makes a firewall a vital component of a multilayered approach to vehicle security as well as overall vehicle safety and reliability. Learn strategies to secure with firewalls. Download Now
White Paper - Model Based Engineering for Wire Harness Manufacturing
As complexity rises, current harness manufacturing methods are struggling to keep pace due to manual data exchanges and the inability to capture tribal knowledge. A model-based wire harness manufacturing engineering flow automates data exchange and captures tribal knowledge through design rules to help harness manufacturers improve harness quality and boost efficiency. Download Now
White Paper - What is Generative Design and Why Do You Need It?
Engineers are being asked to produce more sophisticated designs under a perfect storm of complexity, cost, and change management pressures. Generative design empowers automotive design teams to navigate this storm by employing automation, data re-use and synchronization, and framing design in the context of a full vehicle platform. Download Now
eBook - Simulation-Driven Design with SOLIDWORKS
Simulation-driven design can reduce the time and cost of product development. In this engineering.com eBook, we’ll explore how SOLIDWORKS users can access simulation-driven design through the SOLIDWORKS Simulation suite of analysis tools. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close