About the objective function!

I have a question to ask for help.I establish a model,when I add objective function,it can not be solved and appear ’ Failed’,but I delete objective function,it can be solved.So I want to know the reason.Thank you!

Please show log outputs from the solver(s).

It can indicate numerical problems with the model.


Excuse me! Could you help me?I really do not know the problem.

The only thing we can say from this is that the solver runs into numerical difficulties. That sometimes happens. You could try another solver.

When you add the objective you get new data, the execution of the algorithm changes, and if your problem was hard to start with it can tip the balance and make it fail to solve. That happens.

I will try.Thank you!