solving_the_market_model
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Last revision | |||
— | solving_the_market_model [2020/03/25 09:02] – created matsz | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | =====Solving the market model===== | ||
+ | |||
+ | The solution of the market model with its close to 750.000 equations of which some are highly non-linear poses a serious challenge for any non-linear solver. CAPRI applies CONOPT which has proven quite stable and fast to solve both constrained system and optimization problems. However, even CONOPT would spend quite some time when trying to solve the full market model in one block after a larger shock is introduced. | ||
+ | |||
+ | Therefore, a sequence of pre-solves is introduced (see // | ||
+ | |||
+ | As a next step, the single products are clustered to groups where larger cross price effects can be expected, such as all cereals or all oilseeds. Again, these groups are solved repeatedly, in each round with updated cross-prices, | ||
+ | |||
+ | Heuristics track the time needed for these solves and determine if it looks promising to skip solving single commodity and start with solving the groups or even the full model directly. The solution time of the model clearly depends on the hardware platform the models runs, but the heuristics do not take that into account. Accordingly, | ||
+ | |||
+ | Another problem possible problem beside long solution times is the occurrence of infeasibilities. Bounds are generally introduced for all endogenous variables to avoid numerical errors such as a division by zero. Bounds also help the solver in the solution process. However, they might also restrict the solution space so that no feasible solution exists. The CES functions for the Armington might as a response to a larger price shocks – e.g. provoked by removal of very large tariffs – drive trade flows almost to zero towards their lower bounds. Once that bounds are hit, the equation system is not longer symmetric as a new constraint becomes binding, and typically, the system will become infeasibility. If one would have the time to inspect the solution, one might perhaps accept that if the infeasibility is small and found only for that CES share equation. It is however generally impossible to leave it up to the model user to decide if she accepts infeasibility solutions or not, simply as there is simply not enough time to check these infeasibilities. | ||
+ | |||
+ | Fortunately, | ||
+ | |||
+ | |||
+ | |||
+ | |||
solving_the_market_model.txt · Last modified: 2022/11/07 10:23 by 127.0.0.1