Hi,
both, OPTANO Modeling and GLPK use a sparse matrix internally. OPTANO Modeling will create variables only if needed and only transfer those to glpk. GLPK will additionally run a matrix compression when starting to remove redundant constraints. You should see a console output of glpk about the size of the remaining problem.
In only very rare cases redundancy of constraints or unneeded variables have impact on the solution time. Usually, the solution times result from the hardness of the problem. And that is usually from the integer and binary variables. (There are other reasons as well, but let’s focus on the likely ones for now)
To speed up the model you might:
· Check, if only required variables are of type binary or integer. Make all other continuous variables
· Some decisions might be made before creating the model, in the preprocessing phase. This is usually for if-then relations the case. You could pre-calculate those decisions and not leave them to the solver.
· Reformulations might help to find a tighter convex hull around the remaining integers / binaries. You might play around with different formulations as the solvers benefit individually from reformulations
· As solvers run at different speeds on the models, you could test-drive other solvers such as Gurobi, Cplex or HiGHS. Changing the solver in OPTANO Modeling is as easy as changing one line of code.
Does this help?
Best
jp