Skip to content

Commit

Permalink
Python SDK 1.6.0, 1.5.0 の日本語リリースノート
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Feb 4, 2025
1 parent e1dda03 commit 5d2f931
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 38 deletions.
65 changes: 27 additions & 38 deletions docs/ja/release_note/ommx-1.5.0.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"\n",
"[![Static Badge](https://img.shields.io/badge/GitHub_Release-Python_SDK_1.5.0-blue?logo=github)](https://github.com/Jij-Inc/ommx/releases/tag/python-1.5.0)\n",
"\n",
"This notebook describes the new features. Please refer the GitHub release note for the detailed information."
"このノートブックでは新機能について説明します。詳細についてはGitHubのリリースノートを参照してください。"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Evaluation and Partial Evaluation\n",
"## 評価と部分評価\n",
"\n",
"From the first release of OMMX, `ommx.v1.Instance` supports `evaluate` method to produce `Solution` message"
"OMMXの最初のリリースから、`ommx.v1.Instance``evaluate`メソッドをサポートしており、`Solution`メッセージを生成します。"
]
},
{
Expand All @@ -28,7 +28,7 @@
"source": [
"from ommx.v1 import Instance, DecisionVariable\n",
"\n",
"# Create an instance of the OMMX API\n",
"# OMMX APIのインスタンスを作成\n",
"x = DecisionVariable.binary(1)\n",
"y = DecisionVariable.binary(2)\n",
"\n",
Expand Down Expand Up @@ -59,35 +59,22 @@
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead tr th {\n",
" text-align: left;\n",
" }\n",
"\n",
" .dataframe thead tr:last-of-type th {\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>kind</th>\n",
" <th>value</th>\n",
" <th>lower</th>\n",
" <th>upper</th>\n",
" <th>name</th>\n",
" <th>subscripts</th>\n",
" <th>description</th>\n",
" </tr>\n",
" <tr>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th>substituted_value</th>\n",
" <th>value</th>\n",
" </tr>\n",
" <tr>\n",
" <th>id</th>\n",
Expand All @@ -98,39 +85,41 @@
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>binary</td>\n",
" <td>1.0</td>\n",
" <td>0.0</td>\n",
" <td>1.0</td>\n",
" <td></td>\n",
" <td>&lt;NA&gt;</td>\n",
" <td>[]</td>\n",
" <td></td>\n",
" <td>&lt;NA&gt;</td>\n",
" <td>&lt;NA&gt;</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>binary</td>\n",
" <td>0.0</td>\n",
" <td>0.0</td>\n",
" <td>1.0</td>\n",
" <td></td>\n",
" <td>&lt;NA&gt;</td>\n",
" <td>[]</td>\n",
" <td></td>\n",
" <td>&lt;NA&gt;</td>\n",
" <td>&lt;NA&gt;</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" kind value lower upper name subscripts description\n",
" \n",
"id \n",
"1 binary 1.0 0.0 1.0 [] \n",
"2 binary 0.0 0.0 1.0 [] "
" kind lower upper name subscripts description substituted_value value\n",
"id \n",
"1 binary 0.0 1.0 <NA> [] <NA> <NA> 1.0\n",
"2 binary 0.0 1.0 <NA> [] <NA> <NA> 0.0"
]
},
"execution_count": 2,
Expand All @@ -146,7 +135,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"From Python SDK 1.5.0, `Function` and its base classes, `Linear`, `Quadratic`, and `Polynomial` also support `evaluate` method:"
"Python SDK 1.5.0から、`Function`とその基本クラスである`Linear``Quadratic``Polynomial``evaluate`メソッドをサポートします。"
]
},
{
Expand All @@ -172,7 +161,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This returns evaluated value of the function and used decision variable IDs. If some decision variables are lacking, the `evaluate` method raises an exception:"
"これにより、関数の評価値と使用された意思決定変数のIDが返されます。いくつかの意思決定変数が不足している場合、`evaluate`メソッドは例外を発生させます。"
]
},
{
Expand All @@ -199,7 +188,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"In addition, there is `partial_evaluate` method"
"さらに、`partial_evaluate`メソッドもあります。"
]
},
{
Expand All @@ -224,7 +213,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This creates a new function by substituting `x = 1`. `partial_evaluate` is also added to `ommx.v1.Instance` class:"
"これにより、`x = 1`を代入することで新しい関数が作成されます。`partial_evaluate``ommx.v1.Instance`クラスにも追加されています。"
]
},
{
Expand Down Expand Up @@ -252,7 +241,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This method will be useful for creating a problem with fixing specific decision variables."
"このメソッドは、特定の決定変数を固定して `ommx.v1.Instance` を作成するのに役立ちます。"
]
}
],
Expand All @@ -272,7 +261,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.12.8"
}
},
"nbformat": 4,
Expand Down
43 changes: 43 additions & 0 deletions docs/ja/release_note/ommx-1.6.0.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# OMMX Python SDK 1.6.0\n",
"\n",
"[![Static Badge](https://img.shields.io/badge/GitHub_Release-Python_SDK_1.6.0-blue?logo=github)](https://github.com/Jij-Inc/ommx/releases/tag/python-1.6.0)\n",
"\n",
"概要\n",
"--------\n",
"\n",
"- OMMXはQUBOをサポートし始めました。\n",
" - 新しいアダプターパッケージ [ommx-openjij-adapter](https://pypi.org/project/ommx-openjij-adapter/) が追加されました。\n",
" - 新しい [チュートリアルページ](https://jij-inc.github.io/ommx/en/tutorial/tsp_sampling_with_openjij_adapter.html) をご覧ください。\n",
" - `ommx.v1.Instance` をQUBO形式に変換するためのいくつかのAPIが追加されました。上記のチュートリアルをご覧ください。\n",
"- Python 3.8のサポートはEOLのため終了しました。"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.8"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 5d2f931

Please sign in to comment.