Many thanks for your answer. It can solve my issue.
However, I have a follow-up question. Would you please, say how I can set a specific solver to run on the Neos? What I tried is something like this
[NEOS - INFO] Job Number: 0, Job Password: Error: mip:cplex:GAMS is not a valid option on the NEOS Server
INFO:NEOS:Job Number: 0, Job Password: Error: mip:cplex:GAMS is not a valid option on the NEOS Server
---------------------------------------------------------------------------
NeosClientException Traceback (most recent call last)
<ipython-input-10-55750541f138> in <cell line: 33>()
31 import os
32 client= NeosClient(email="abb.omidi@gmail.com")
---> 33 transport.solve(solver= "cplex", output = sys.stdout, backend="neos", client=client)
3 frames
/usr/local/lib/python3.10/dist-packages/gamspy/_backend/neos.py in submit_job(self, output, xml_path, is_blocking, working_directory)
387
388 if job_number == 0:
--> 389 raise NeosClientException(f"NEOS Server error! {job_password}")
390
391 if is_blocking:
NeosClientException: NEOS Server error! Error: mip:cplex:GAMS is not a valid option on the NEOS Server
Thank you so much.
I am unsure to fully understand what you mean by to add Options to the initial import statement. as the model seems to run without any error. Could you write what you proposed as the initial import?
The problem is caused by the name mismatch between GAMSPy and NEOS Server. In GAMSPy, mixed integer problems are abbreviated as MIP but on NEOS Server it is abbreviated as MILP. This will be fixed soon.
I wasn’t aware of the name mismatch MIP vs MILP, so the statement looked fine for me but it uses solve options. Solve options can be specified using the gamspy.Options() class. Hence you need to make sure to add
No. You should be able to use all problem type - solver pairs from this list: NEOS Solvers
This validation check needs to be done only for the local backend. We will fix it in the next release. As a workaround, you can just run gamspy install solver xpress and send your job to NEOS.