Changeset 2041381 in OpenModelica


Ignore:
Timestamp:
2020-10-22T00:05:13+02:00 (4 years ago)
Author:
Bernhard Thiele <bernhard.thiele@…>
Parents:
c35b1eb6
git-author:
Bernhard Thiele <bernhard.thiele@…> (10/18/20 00:14:24)
git-committer:
Bernhard Thiele <bernhard.thiele@…> (10/22/20 00:05:13)
Message:

Add OMSysIdent static utility methods to User's Guide

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/UsersGuide/source/systemidentification.rst

    rc35b1eb6 r2041381  
    372372
    373373
     374oms_status_str
     375--------------
     376
     377Mapping of enum C-API status code (oms_status_enu_t) to string.
     378
     379The C enum is reproduced below for convenience.
     380
     381.. code-block:: c
     382
     383  typedef enum {
     384    oms_status_ok,
     385    oms_status_warning,
     386    oms_status_discard,
     387    oms_status_error,
     388    oms_status_fatal,
     389    oms_status_pending
     390  } oms_status_enu_t;
     391
     392PYTHON
     393^^^^^^
     394
     395Args:
     396  :status: (int) The C-API status code.
     397
     398Returns:
     399  :status_str: (str) String representation of status code.
     400
     401The range of values of :code:`status` corresponds to the C enum (by implicit conversion).
     402This is a static Python method (:code:`@staticmethod`).
     403
     404.. code-block:: python
     405
     406  status_str = oms_status_str(status)
     407
     408C
     409^
     410
     411Not available.
     412
     413
     414omsi_simodelstate_str
     415---------------------
     416
     417Mapping of enum C-API state code (omsi_simodelstate_t) to string.
     418
     419The C enum is reproduced below for convenience.
     420
     421.. code-block:: c
     422
     423  typedef enum {
     424    omsi_simodelstate_constructed,    //!< After omsi_newSysIdentModel
     425    omsi_simodelstate_initialized,    //!< After omsi_initialize
     426    omsi_simodelstate_convergence,    //!< After omsi_solve if Ceres minimizer returned with ceres::TerminationType::CONVERGENCE
     427    omsi_simodelstate_no_convergence, //!< After omsi_solve if Ceres minimizer returned with ceres::TerminationType::NO_CONVERGENCE
     428    omsi_simodelstate_failure         //!< After omsi_solve if Ceres minimizer returned with ceres::TerminationType::FAILURE
     429  } omsi_simodelstate_t;
     430
     431PYTHON
     432^^^^^^
     433
     434Args:
     435    :state: (int) State of SysIdent model.
     436
     437Returns:
     438    :simodelstate_str: (str) String representation of state code.
     439
     440The range of values of :code:`state` corresponds to the C enum (by implicit conversion).
     441This is a static Python method (:code:`@staticmethod`).
     442
     443.. code-block:: python
     444
     445  simodelstate_str = omsi_simodelstate_str(state)
     446
     447C
     448^
     449
     450Not available.
     451
     452
    374453setOptions_max_num_iterations
    375454-----------------------------
Note: See TracChangeset for help on using the changeset viewer.