The cover illustrations show wheel loaders at work. The transmissions of present heavy wheel loaders are in general based on torque converters. The characteristics of this component suits these machines, especially in that it enables thrust from zero vehicle speed without risk of stalling the engine, without active control. Unfortunately, the component also causes losses which might become large compared to the transmitted power. One approach for mitigating these losses is to switch to a continuously variable transmission.Changing to such a system greatly increases the possibility, and the need, for actively selecting the engine speed, and here a conict emerges. A low engine speed is desired for high eciency but a high speed is required for high power.Heavy wheel loaders often operate according to a common repeating pattern known as the short loading cycle.This cycle is extremely transient, which makes the choice of engine operating point both important and dicult. At the same time, the repeating pattern in the operation enables a rough prediction of the future operation. One way to use the uncertain prediction is to use optimization techniques for selecting the best control actions. This requires a method for detecting the operational pattern and producing a prediction from this, to formulate a manageable optimization problem, and for solving this, and nally to actually control the machine according to the optimization results.This problem is treated in the four papers that are included in this dissertation.The rst paper describes a method for automatically detecting when the machine is operating according to any of several predened patterns. The detector uses events and automata descriptions of the cycles, which makes the method simple yet powerful. In the evaluations over 90% of the actual cycles are detected and correctly identied. The detector also enables a quick analysis of large datasets. In several of the following papers this is used to condense measured data sequences into statistical cycles for the control optimization.In the second paper dynamic programming and Pontryagin's maximum principle is applied to a simplied system consisting of a diesel engine and a generator. Methods are developed based on the maximum principle analysis, for nding the fuel optimal trajectories at output power steps, and the simplicity of the system enables a deeper analysis of these solutions. The methods are used to examine and visualize the mechanisms behind the solutions at power transients, and the models form the basis for the models in the following papers.The third paper describes two dierent concepts for implementing dynamic programming based optimal control of a hydrostatic transmission. In this system one load component forms a stochastic state constraint, and the concepts present two dierent strategies for handling this constraint. The controller concepts are evaluated through simulations, in terms of implementability, robustness against uncertainties in the prediction and fuel savings. generell kunskap om hur m...