Dear Robert :
Thank you for the information.
I have the experimental "x-gurobi" solver in my AMPL folder, however,
When I use this solver to solve the model,
the error prompts :
x-Gurobi 9.5.1: Error: MIPFlatConverter: MP2MIP: IfThen with variable then/else arguments not implemented
Error at _cmdno 4 executing "solve" command
(file C:\Users\Administrator\Desktop\new_paper\min_overly_route.run, line 35, offset 1423):
can't open C:\Users\Administrator\AppData\Local\Temp\at10304.sol
I may not be clear about my problem, I want to find variables greater than or equal to 2 and sum them up. Therefore if "A" and "B" and "C" are in set square, and over_route["A"] equals 2 and over_route["B"] equals 3 and over_route["C"] equals 1, then the result I want is 2 + 3 = 5. Excluding variables less than 2 in summation.
I want to use a MIP solver like the regular Gurobi or CPLEX or Xpress, I can also use NLP solver such as BONMIN or minos etc.
Look forward to your reply.
Best wishes.