fatal_limits_exceeded(self, nb_vars, nb_constraints) | DOcplexException
回答済みHello,
I'm a master student and have the WLS Academic licence. I'm using google colab.
I try to write following objective function:

obj2_kosten_pro_einheit= sum(schichtbausteine_laka[s]['Durchschnittliche Herstellkosten pro Einheit [€/Eh]'][d]* m.get_var_by_name("x_laka_"+str(s)+"_"+str(d))+schichtbausteine_tmo[s]['Durchschnittliche Herstellkosten pro Einheit [€/Eh]'][d]* m.get_var_by_name("x_tmo_"+str(s)+"_"+str(d)) for d in days for s in schichten)/sum(schichtbausteine_laka[s]['Schichtbausteinausbringung [Eh]'][d]* m.get_var_by_name("x_laka_"+str(s)+"_"+str(d))+schichtbausteine_tmo[s]['Schichtbausteinausbringung [Eh]'][d]* m.get_var_by_name("x_tmo_"+str(s)+"_"+str(d))for d in days for s in schichten)
Alls vars are binary
Unfortunately I get following error message:
/usr/local/lib/python3.8/dist-packages/docplex/mp/error_handler.py in fatal(self, msg, args) 208 resolved_message = resolve_pattern(msg, args) 209 docplex_error_stop_here() --> 210 raise DOcplexException(resolved_message) 211 212 def fatal_limits_exceeded(self, nb_vars, nb_constraints):
DOcplexException:
even my model has only 198 variables.
Model: Werk1 - number of variables: 198 - binary=192, integer=6, continuous=0 -
number of constraints: 357 - linear=103, indicator=218, equiv=36 -
parameters: defaults - objective: none - problem type is: MIL
Please, can you help me?
-
Hi Tino,
The exception you got comes from CPLEX, not Gurobi.
So, if you moved from CPLEX to Gurobi there might be still some CPLEX parts left?Best regards,
Mario0 -
Hi Mario,
I'm sorry you're totaly right.
Best regards
Tino
0
サインインしてコメントを残してください。
コメント
2件のコメント