All Products
Search
Document Center

Optimization Solver:Common error codes

Last Updated:Apr 18, 2024

This topic describes the error codes that may be returned by Optimization Solver.

Error codes relevant to Optimization Solver

HTTP status code

Error message

Solution

-1

Unspecified internal error.

Contact us.

-2

Insufficient memory.

Expand your memory or reduce the number of problems to be solved.

-3

Wrong parameters.

Please check whether the parameters are right.

-10

License is not valid.

  • Check whether the license is correctly set. The following section describes the secondary error codes of this error code. For information about how to configure the license, see Step 4: Configure license files.

  • If your Solver version is V0.20.0 and you want to solve mixed integer linear programming (MILP) problems, you need to apply for relevant permission by email. For information about how to apply for permission by email, see Download Optimization Solver SDK V0.20.0.

-11

MINDOPT_HOME not exists.

Set the environment variable correctly. For information about how to set the environment variable, see Step 3: Check environment variables and test the running of Optimization Solver.

-12

Failed to load a dynamic library.

Check the dynamic library and reinstall the software package if necessary.

-1000

(I/O) General IO error.

Check file inputs and outputs.

-1001

(I/O) Failed to read data from file.

Check whether the file to be read is correct.

-1002

(I/O) Failed to write data to file.

Check whether the data to be written is correct and whether the Solver has the data write permission.

-1003

(I/O) Invalid directory.

Check whether the path exists and whether the Solver has the data write permission.

-1100

(I/O) Failed to parse the file.

Check whether the file to be parsed is correct.

-1200

(I/O) The input token ID for the remote computing is not valid.

Enter a valid token ID.

-1201

(I/O) Failed to connect to the remote computing server.

Check whether the address of the remote computing server is correct and whether its network connection is working properly.

-2000

Failed to input/load a model.

Check whether the optimization model is correct.

-2001

Model is empty.

Check whether the optimization model is correct.

-2002

Row index is not valid.

Check whether the row index of the optimization model is within the valid range.

-2003

Column index is not valid.

Check whether the column index of the optimization model is within the valid range.

-2004

Row name is not valid.

Check whether the row name of the optimization model is correct.

-2005

Column name is not valid.

Check whether the column name of the optimization model is correct.

-2006

Index of the symmetric matrix is not valid.

Check whether the input symmetric matrix data is correct.

-2007

Row index of a symmetric matrix is not valid.

Check whether the input symmetric matrix data is correct.

-2008

Column index of a symmetric matrix is not valid.

Check whether the input symmetric matrix data is correct.

-2010

A string attribute was not recognized.

Check whether the API for string attributes is correctly used.

-2011

An integer attribute was not recognized.

Check whether the API for integer attributes is correctly used.

-2012

A real attribute was not recognized.

Check whether the API for real attributes is correctly used.

-2013

A real attribute for symmetric matrix was not recognized.

Check whether the input symmetric matrix data is correct.

-3000

Solution is not available.

Check whether the solution to the problem is correctly generated.

-3001

Unbounded ray is not available.

Check whether the unbounded primal ray is correctly generated.

-3002

Solver statistics is not available.

Contact us.

-3003

Unrecognized basis status.

Check whether the basis status value is correctly set.

-3004

No IIS available for the current model.

It shows no IIS. Check the model.

-3005

IIS is not available on a feasible model.

It shows no IIS. The problem model is feasible.

-4000

Failed to change a parameter value.

Check whether the parameter setting API is correctly used.

-4001

Failed to retrieve a parameter value.

Check whether the parameter retrieving API is correctly used.

-9000

Iteration limit was reached in optimization.

Check whether the maximum number of solving iterations is properly set.

-9001

Time limit was reached in optimization.

Check whether the maximum solving time is properly set.

-9002

Control-C command was captured in optimization.

Check whether a Ctrl+C command is executed during the solving process.

-9003

Node limit was reached in optimization.

Check whether the maximum number of solving nodes is properly set.

-9004

Stalling node limit was reached in optimization.

Check the problem model or contact us.

-9011

Selected optimization method is not supported.

Check the solving method settings, authorization scope of the license, and Solver version, or contact us.

-9012

Optimization solver is not available for the input model.

Check the relevant file and the Solver version, or contact us.

-10000 to -19999

Numerical difficulties in Simplex algorithm.

Contact us.

-20000 ~ -29999

Numerical difficulties in Interior-point algorithm.

Contact us.

-30000

Numerical difficulties occurred while computing IIS.

Contact us.

Error codes relevant to the license (secondary error codes of the error code -10)

This section describes the error codes relevant to the content configuration of the license file fl_client.ini and network connection. For information about how to configure the fl_client.ini file, see 3. Use the license key of Alibaba Cloud for authentication.

HTTP status code

Error message

Solution

-1

The request timed out.

Check whether the network connection is stable and working properly. Alternatively, increase the timeout period (2 seconds by default) in the configuration file. For information about how to set the timeout period, see 3. Use the license key of Alibaba Cloud for authentication.

-2

The socket failed to be created.

Check the network connection.

-3

The non-blocking mode failed to be set for the socket.

Check the network connection.

-4

The host failed to be parsed.

Check the network connection. Then, check whether server.name is correctly configured in the configuration file. For information about how to configure server.name, see 3. Use the license key of Alibaba Cloud for authentication.

-5

The network connection failed.

Check the network connection.

-6

Write requests of the Solver failed.

Check the network connection.

-7

Read requests of the Solver failed.

Check the network connection.

-200

The configuration file is incorrect.

Check the configuration file. For information about how to configure the configuration file, see 3. Use the license key of Alibaba Cloud for authentication.

-201

The URL is invalid.

Check whether server.name is correctly configured in the configuration file. For more information about how to configure server.name, see 3. Use the license key of Alibaba Cloud for authentication.

500

An exception occurred on the server.

  • If your Solver version is V0.20.0 and you want to solve MILP problems, you need to apply for relevant permission by email. For more information about how to apply for permission by email, see Download Optimization Solver SDK V0.20.0.

If the error persists, contact us.

400

The request is in an invalid format.

  • Check whether the content of the license file fl_client.ini is complete, whether the ak_id and ak_secret are right, and whether the parameter values in the license file have been modified based on your business requirements. For information about how to configure the fl_client.ini file, see 3. Use the license key of Alibaba Cloud for authentication.

  • Check the integrity of the software package. If the software package is incomplete, we recommend that you download the software package again.

If the error persists, contact us.

401

The license key failed to pass verification.

Check whether the license key belongs to the Alibaba Cloud account that corresponds to the AccessKey pair. You can view the license key under Optimization Solver console>Available Service List.

410

The license key expired.

Renew the LicenseKey under Optimization Solver console>Overview.

409

The number of concurrent tasks has reached the upper limit supported by the license.

The number of concurrent tasks has reached the upper limit supported by the license key. You can go to Optimization Solver console>Overview to change the maximum number of concurrent tasks.

Take note that the solving tasks must be released immediately once they are complete. For a solving task that takes a long period of time, you can set the MaxTime parameter to limit the total time consumed by the task so that the task can be released immediately once it is complete.

403

No permission.

Please check if the main account has granted authorization to the sub-account. In the main account authorization, search for "opt" to query the relevant permissions.

Error codes relevant to console SDKs

For a list of error codes, see Service error codes.

In addition to the above link, there is also the following:

  • "404": Please check if the AK and SK are correct, and use a paired AK/SK.