11.14. da.p7core.status

Status constants.

New in version 3.0 Beta 2.


Classes

da.p7core.status.Status(id, value) Status definition.

Statuses

da.p7core.status.IMPROVED Status definition.
da.p7core.status.IN_PROGRESS Status definition.
da.p7core.status.INFEASIBLE_PROBLEM Status definition.
da.p7core.status.INTERNAL_ERROR Status definition.
da.p7core.status.INVALID_OPTION Status definition.
da.p7core.status.INVALID_PROBLEM Status definition.
da.p7core.status.LICENSING_PROBLEM Status definition.
da.p7core.status.NANINF_PROBLEM Status definition.
da.p7core.status.SUCCESS Status definition.
da.p7core.status.UNSUPPORTED_PROBLEM Status definition.
da.p7core.status.USER_TERMINATED Status definition.
da.p7core.status.WRONG_USAGE Status definition.

11.14.1. Status — status implementation

da.p7core.status.Status(id, value) Status definition.
da.p7core.status.Status.id Status ID.
class da.p7core.status.Status(id, value)

Status definition.

Provides integer and string representations of a status, and equality/inequality comparisons. This class should never be instantiated by user.

id

Status ID.

Type:int

This numeric ID is the same as the status integer representation.

11.14.2. Statuses

da.p7core.status.IMPROVED
Type:Status
  • ID: 1
  • String representation: "Improved"

Indicates a “partial success” in optimization, when GTOpt was able to find a better solution than the initial one, but some requirements are probably not satisfied.

da.p7core.status.IN_PROGRESS
Type:Status
  • ID: 9
  • String representation: "In progress"

Indicates that a tool’s process is working. Currently for internal use only.

da.p7core.status.INFEASIBLE_PROBLEM
Type:Status
  • ID: 2
  • String representation: "Infeasible problem"

In optimization, indicates that GTOpt was not able to find any feasible points (could not satisfy problem constraints).

da.p7core.status.INTERNAL_ERROR
Type:Status
  • ID: 5
  • String representation: "Internal error"

General internal error.

da.p7core.status.INVALID_OPTION
Type:Status
  • ID: 6
  • String representation: "Invalid option"

Incorrect option value specified.

Can occur if you use Options.set() because this method does not validate option values (see its description for details).

da.p7core.status.INVALID_PROBLEM
Type:Status
  • ID: 3
  • String representation: "Invalid problem"

Informs of an incorrect optimization problem definition — for example, a problem declares no variables.

da.p7core.status.LICENSING_PROBLEM
Type:Status
  • ID: 8
  • String representation: "Licensing problem"

Indicates a problem with your pSeven Core license, such as license file not found or could not connect to a license server.

See section License Setup.

da.p7core.status.NANINF_PROBLEM
Type:Status
  • ID: 4
  • String representation: "Nan/Inf problem"

In optimization, indicates that GTOpt has encountered more NaN or Inf values of objectives and/or constraints than it can handle.

By convention, such values tell GTOpt that function behavior is undefined at some point. GTOpt can handle regions with undefined function behavior, but only to a certain extent.

da.p7core.status.SUCCESS
Type:Status
  • ID: 0
  • String representation: "Success"

Informs that the tool has finished successfully.

da.p7core.status.UNSUPPORTED_PROBLEM
Type:Status
  • ID: 11
  • String representation: "Unsupported problem"

In optimization, informs that while a problem is defined correctly, it can not be solved with current GTOpt version.

da.p7core.status.USER_TERMINATED
Type:Status
  • ID: 7
  • String representation: "User terminated"

Informs that the process was terminated by user. For example, GTOpt Result has this status if solving was interrupted using a watcher (see Watchers and set_watcher()).

da.p7core.status.WRONG_USAGE
Type:Status
  • ID: 10
  • String representation: "Wrong usage"

General incorrect tool usage error.