The GreenLab model was used to study the interaction between source-sink dynamics at the whole tree level, wood production and distribution within the stem, and tree mechanical stability through simulation and optimization. In this first promising numerical attempt, two GreenLab parameters were considered in order to maximize wood production: the sink strength for cambial growth and a coefficient that determines the way the biomass assigned to cambial growth is allocated to each metamer, through optimization and simulation respectively. The optimization procedure that has been used is based on a heuristic optimization algorithm called Particle Swarm Optimization (PSO). In the first part of the paper, wood production was maximized without considering the effect of wood distribution on tree mechanical stability. Contrary to common idea that increasing sink strength for cambial growth leads to increasing wood production, an optimal value can be found. The optimization results implied that an optimal source and sink balance should be considered to optimize wood production. In a further step, the mechanical stability of trees submitted to their self weight was taken into account based on simplified mechanical assumptions. Simulation results revealed that the allocation of wood at the stem base strongly influenced its global deformation. Such basic mechanical criterion can be an indicator of wood quality if we consider further the active biomechanical processes involved in tree gravitropic responses, e.g. formation of reaction wood.