mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-24 10:46:50 -06:00
Builds on the Solver of #327. data.solver takes reports: [answer, limits] and writes them on new sheets before the model's sheet once a solution is found. The Answer report lists the objective and variable cells with their original and final values and each constraint's value, formula, status (Binding or Not Binding) and slack; cells are named by the nearest labels to their left and above. The Limits report minimises and maximises each variable with the others held at the solution, under the model's constraints, and gives the objective at both ends (Simplex LP and GRG Nonlinear, without integer constraints). data.solverReport writes the reports for a given solution and model, so data.solver's result (which now carries the original values and the model) can be passed to it as is. The Solver Results dialog offers the two reports; they are written after Keep Solver Solution or Restore Original Values.