From 8192e6ec63e83533b102a152badff4705677126e Mon Sep 17 00:00:00 2001 From: Zengor Date: Thu, 12 Mar 2026 19:05:24 +0900 Subject: [PATCH 1/9] Add serialize docs --- docs/en/advanced/serialize.ipynb | 79 ++++++++++++++++++++++++++++++ docs/ja/advanced/serialize.ipynb | 71 +++++++++++++++++++++++++++ markdowns/en/advanced/serialize.md | 31 ++++++++++++ markdowns/ja/advanced/serialize.md | 31 ++++++++++++ 4 files changed, 212 insertions(+) create mode 100644 docs/en/advanced/serialize.ipynb create mode 100644 docs/ja/advanced/serialize.ipynb create mode 100644 markdowns/en/advanced/serialize.md create mode 100644 markdowns/ja/advanced/serialize.md diff --git a/docs/en/advanced/serialize.ipynb b/docs/en/advanced/serialize.ipynb new file mode 100644 index 0000000..f7b96b7 --- /dev/null +++ b/docs/en/advanced/serialize.ipynb @@ -0,0 +1,79 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "4c9e7601-a3f2-496b-88a0-88e76bd18e7c", + "metadata": {}, + "source": [ + "JijModeling models can be easily serialized to [Protobuf](https://protobuf.dev) using the {py:func}`jijmodeling.to_protobuf` function or the {py:meth}`Problem.to_protobuf ` method." + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "545186b3-caf3-4c92-a0a9-c7515923bffd", + "metadata": {}, + "outputs": [], + "source": [ + "import jijmodeling as jm\n", + "\n", + "problem = jm.Problem(\"my problem\")\n", + "N = problem.Placeholder(\"N\", dtype=jm.DataType.NATURAL)\n", + "x = problem.BinaryVar(\"x\", shape=(N,))\n", + "problem += x.sum()\n", + "\n", + "serialized = problem.to_protobuf()" + ] + }, + { + "cell_type": "markdown", + "id": "033466c5-157a-4b25-90b7-f9d38f81067d", + "metadata": {}, + "source": [ + "To deserialize, use {py:func}`jijmodeling.from_protobuf` or {py:meth}`Problem.from_protobuf `." + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "271e3da1-63a5-448e-ab1a-ccff3476b945", + "metadata": {}, + "outputs": [], + "source": [ + "deserialized = jm.from_protobuf(serialized)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "592081b7-d87a-4fe6-839f-e15ab1d10e5e", + "metadata": {}, + "outputs": [], + "source": [] + } + ], +"metadata": { + "jupytext": { + "default_lexer": "ipython3" + }, + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "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.2" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/docs/ja/advanced/serialize.ipynb b/docs/ja/advanced/serialize.ipynb new file mode 100644 index 0000000..dcd77af --- /dev/null +++ b/docs/ja/advanced/serialize.ipynb @@ -0,0 +1,71 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "4c9e7601-a3f2-496b-88a0-88e76bd18e7c", + "metadata": {}, + "source": [ + "JijModelingで作られた数理モデルは、簡単に[Protobuf](https://protobuf.dev) でシリアライズすることができます。そうするには{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "b5807c3d-8bd3-4d3e-92bd-6cfa802cd625", + "metadata": {}, + "outputs": [], + "source": [ + "import jijmodeling as jm\n", + "\n", + "problem = jm.Problem(\"my problem\")\n", + "N = problem.Placeholder(\"N\", dtype=jm.DataType.NATURAL)\n", + "x = problem.BinaryVar(\"x\", shape=(N,))\n", + "problem += x.sum()\n", + "\n", + "serialized = problem.to_protobuf()" + ] + }, + { + "cell_type": "markdown", + "id": "cd5e556f-94d3-4d72-a088-eb86bc0d01f2", + "metadata": {}, + "source": [ + "デシリアライズは、{py:func}`jijmodeling.from_protobuf` か{py:meth}`Problem.from_protobuf `で行えます。" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "fb7345c2-2252-4c3a-ae46-9e6318a4fa9a", + "metadata": {}, + "outputs": [], + "source": [ + "deserialized = jm.from_protobuf(serialized)" + ] + } + ], + "metadata": { + "jupytext": { + "default_lexer": "ipython3" + }, + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "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.2" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/markdowns/en/advanced/serialize.md b/markdowns/en/advanced/serialize.md new file mode 100644 index 0000000..f45268f --- /dev/null +++ b/markdowns/en/advanced/serialize.md @@ -0,0 +1,31 @@ +--- +jupytext: + text_representation: + extension: .md + format_name: myst + format_version: 0.13 + jupytext_version: 1.19.1 +kernelspec: + display_name: Python 3 (ipykernel) + language: python + name: python3 +--- + +JijModeling models can be easily serialized to [Protobuf](https://protobuf.dev) using the {py:func}`jijmodeling.to_protobuf` function or the {py:meth}`Problem.to_protobuf ` method. + +```{code-cell} ipython3 +import jijmodeling as jm + +problem = jm.Problem("my problem") +N = problem.Placeholder("N", dtype=jm.DataType.NATURAL) +x = problem.BinaryVar("x", shape=(N,)) +problem += x.sum() + +serialized = problem.to_protobuf() +``` + +To deserialize, use {py:func}`jijmodeling.from_protobuf` or {py:meth}`Problem.from_protobuf `. + +```{code-cell} ipython3 +deserialized = jm.from_protobuf(serialized) +``` diff --git a/markdowns/ja/advanced/serialize.md b/markdowns/ja/advanced/serialize.md new file mode 100644 index 0000000..cb99ff9 --- /dev/null +++ b/markdowns/ja/advanced/serialize.md @@ -0,0 +1,31 @@ +--- +jupytext: + text_representation: + extension: .md + format_name: myst + format_version: 0.13 + jupytext_version: 1.19.1 +kernelspec: + display_name: Python 3 (ipykernel) + language: python + name: python3 +--- + +JijModelingで作られた数理モデルは、簡単に[Protobuf](https://protobuf.dev) でシリアライズすることができます。そうするには{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。 + +```{code-cell} ipython3 +import jijmodeling as jm + +problem = jm.Problem("my problem") +N = problem.Placeholder("N", dtype=jm.DataType.NATURAL) +x = problem.BinaryVar("x", shape=(N,)) +problem += x.sum() + +serialized = problem.to_protobuf() +``` + +デシリアライズは、{py:func}`jijmodeling.from_protobuf` か{py:meth}`Problem.from_protobuf `で行えます。 + +```{code-cell} ipython3 +deserialized = jm.from_protobuf(serialized) +``` From e3188672947b54c1e612da2519132c87a2d693a3 Mon Sep 17 00:00:00 2001 From: Zengor Date: Thu, 12 Mar 2026 19:12:10 +0900 Subject: [PATCH 2/9] Sync --- docs/en/advanced/serialize.ipynb | 34 ++++++++++++++++++------------ docs/ja/advanced/serialize.ipynb | 20 +++++++++++++++--- markdowns/ja/advanced/serialize.md | 2 +- 3 files changed, 38 insertions(+), 18 deletions(-) diff --git a/docs/en/advanced/serialize.ipynb b/docs/en/advanced/serialize.ipynb index f7b96b7..bf82714 100644 --- a/docs/en/advanced/serialize.ipynb +++ b/docs/en/advanced/serialize.ipynb @@ -10,9 +10,16 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 1, "id": "545186b3-caf3-4c92-a0a9-c7515923bffd", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-03-12T10:08:19.821920Z", + "iopub.status.busy": "2026-03-12T10:08:19.821820Z", + "iopub.status.idle": "2026-03-12T10:08:19.878482Z", + "shell.execute_reply": "2026-03-12T10:08:19.878025Z" + } + }, "outputs": [], "source": [ "import jijmodeling as jm\n", @@ -35,26 +42,25 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 2, "id": "271e3da1-63a5-448e-ab1a-ccff3476b945", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-03-12T10:08:19.880300Z", + "iopub.status.busy": "2026-03-12T10:08:19.880176Z", + "iopub.status.idle": "2026-03-12T10:08:19.882423Z", + "shell.execute_reply": "2026-03-12T10:08:19.882018Z" + } + }, "outputs": [], "source": [ "deserialized = jm.from_protobuf(serialized)" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "592081b7-d87a-4fe6-839f-e15ab1d10e5e", - "metadata": {}, - "outputs": [], - "source": [] } ], -"metadata": { + "metadata": { "jupytext": { - "default_lexer": "ipython3" + "default_lexer": "ipython3" }, "kernelspec": { "display_name": "Python 3 (ipykernel)", diff --git a/docs/ja/advanced/serialize.ipynb b/docs/ja/advanced/serialize.ipynb index dcd77af..dca7b3a 100644 --- a/docs/ja/advanced/serialize.ipynb +++ b/docs/ja/advanced/serialize.ipynb @@ -5,14 +5,21 @@ "id": "4c9e7601-a3f2-496b-88a0-88e76bd18e7c", "metadata": {}, "source": [ - "JijModelingで作られた数理モデルは、簡単に[Protobuf](https://protobuf.dev) でシリアライズすることができます。そうするには{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。" + "JijModeling で作られた数理モデルは、簡単に[Protobuf](https://protobuf.dev) でシリアライズすることができます。そうするには{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。" ] }, { "cell_type": "code", "execution_count": 1, "id": "b5807c3d-8bd3-4d3e-92bd-6cfa802cd625", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-03-12T10:11:46.245376Z", + "iopub.status.busy": "2026-03-12T10:11:46.245279Z", + "iopub.status.idle": "2026-03-12T10:11:46.303204Z", + "shell.execute_reply": "2026-03-12T10:11:46.302754Z" + } + }, "outputs": [], "source": [ "import jijmodeling as jm\n", @@ -37,7 +44,14 @@ "cell_type": "code", "execution_count": 2, "id": "fb7345c2-2252-4c3a-ae46-9e6318a4fa9a", - "metadata": {}, + "metadata": { + "execution": { + "iopub.execute_input": "2026-03-12T10:11:46.304697Z", + "iopub.status.busy": "2026-03-12T10:11:46.304596Z", + "iopub.status.idle": "2026-03-12T10:11:46.306739Z", + "shell.execute_reply": "2026-03-12T10:11:46.306331Z" + } + }, "outputs": [], "source": [ "deserialized = jm.from_protobuf(serialized)" diff --git a/markdowns/ja/advanced/serialize.md b/markdowns/ja/advanced/serialize.md index cb99ff9..19fef15 100644 --- a/markdowns/ja/advanced/serialize.md +++ b/markdowns/ja/advanced/serialize.md @@ -11,7 +11,7 @@ kernelspec: name: python3 --- -JijModelingで作られた数理モデルは、簡単に[Protobuf](https://protobuf.dev) でシリアライズすることができます。そうするには{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。 +JijModeling で作られた数理モデルは、簡単に[Protobuf](https://protobuf.dev) でシリアライズすることができます。そうするには{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。 ```{code-cell} ipython3 import jijmodeling as jm From dd0a4ac9b88a0854d19ad467372dc4c2784a997d Mon Sep 17 00:00:00 2001 From: Zengor Date: Thu, 12 Mar 2026 19:16:18 +0900 Subject: [PATCH 3/9] Exclude unreleased --- docs/en/_config.yml | 1 + docs/ja/_config.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/en/_config.yml b/docs/en/_config.yml index 0bd35a4..4ba89ec 100644 --- a/docs/en/_config.yml +++ b/docs/en/_config.yml @@ -12,6 +12,7 @@ execute: timeout: 60 exclude_patterns: - "releases/jijmodeling-*" + - "releases/unreleased-*" # Define the name of the latex output file for PDF builds latex: diff --git a/docs/ja/_config.yml b/docs/ja/_config.yml index 2ca4952..1e6bbd9 100644 --- a/docs/ja/_config.yml +++ b/docs/ja/_config.yml @@ -12,6 +12,7 @@ execute: timeout: 60 exclude_patterns: - "releases/jijmodeling-*" + - "releases/unreleased*" # Define the name of the latex output file for PDF builds latex: From 16d9bb15cfc9226da58efd6f7becea2668dd4d26 Mon Sep 17 00:00:00 2001 From: Zengor Date: Thu, 12 Mar 2026 19:19:51 +0900 Subject: [PATCH 4/9] Add to TOC --- docs/en/_toc.yml | 3 +++ docs/ja/_toc.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/en/_toc.yml b/docs/en/_toc.yml index 0514d8f..a9b0f44 100644 --- a/docs/en/_toc.yml +++ b/docs/en/_toc.yml @@ -20,6 +20,9 @@ parts: - file: basics/expressions - file: basics/modeling - file: basics/instance_generation + - caption: Advanced + chapters: + - file: advanced/serialize - caption: Reference chapters: - url: https://jij-inc-jijmodeling.readthedocs-hosted.com/en/ diff --git a/docs/ja/_toc.yml b/docs/ja/_toc.yml index 9a9ad50..1b0107f 100644 --- a/docs/ja/_toc.yml +++ b/docs/ja/_toc.yml @@ -21,6 +21,9 @@ parts: - file: basics/expressions - file: basics/modeling - file: basics/instance_generation + - caption: Advanced + chapters: + - file: advanced/serialize - caption: リファレンス chapters: - url: https://jij-inc-jijmodeling.readthedocs-hosted.com/en/ From debd324d972292676db3660e0a5ddb8301a3185c Mon Sep 17 00:00:00 2001 From: Zengor Date: Thu, 12 Mar 2026 19:23:25 +0900 Subject: [PATCH 5/9] Add title --- docs/en/advanced/serialize.ipynb | 18 ++++++++++-------- docs/ja/advanced/serialize.ipynb | 18 ++++++++++-------- markdowns/en/advanced/serialize.md | 2 ++ markdowns/ja/advanced/serialize.md | 2 ++ 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/docs/en/advanced/serialize.ipynb b/docs/en/advanced/serialize.ipynb index bf82714..5c1d40b 100644 --- a/docs/en/advanced/serialize.ipynb +++ b/docs/en/advanced/serialize.ipynb @@ -5,6 +5,8 @@ "id": "4c9e7601-a3f2-496b-88a0-88e76bd18e7c", "metadata": {}, "source": [ + "# Serialization\n", + "\n", "JijModeling models can be easily serialized to [Protobuf](https://protobuf.dev) using the {py:func}`jijmodeling.to_protobuf` function or the {py:meth}`Problem.to_protobuf ` method." ] }, @@ -14,10 +16,10 @@ "id": "545186b3-caf3-4c92-a0a9-c7515923bffd", "metadata": { "execution": { - "iopub.execute_input": "2026-03-12T10:08:19.821920Z", - "iopub.status.busy": "2026-03-12T10:08:19.821820Z", - "iopub.status.idle": "2026-03-12T10:08:19.878482Z", - "shell.execute_reply": "2026-03-12T10:08:19.878025Z" + "iopub.execute_input": "2026-03-12T10:23:10.321467Z", + "iopub.status.busy": "2026-03-12T10:23:10.321374Z", + "iopub.status.idle": "2026-03-12T10:23:10.376977Z", + "shell.execute_reply": "2026-03-12T10:23:10.376503Z" } }, "outputs": [], @@ -46,10 +48,10 @@ "id": "271e3da1-63a5-448e-ab1a-ccff3476b945", "metadata": { "execution": { - "iopub.execute_input": "2026-03-12T10:08:19.880300Z", - "iopub.status.busy": "2026-03-12T10:08:19.880176Z", - "iopub.status.idle": "2026-03-12T10:08:19.882423Z", - "shell.execute_reply": "2026-03-12T10:08:19.882018Z" + "iopub.execute_input": "2026-03-12T10:23:10.378484Z", + "iopub.status.busy": "2026-03-12T10:23:10.378387Z", + "iopub.status.idle": "2026-03-12T10:23:10.380514Z", + "shell.execute_reply": "2026-03-12T10:23:10.380057Z" } }, "outputs": [], diff --git a/docs/ja/advanced/serialize.ipynb b/docs/ja/advanced/serialize.ipynb index dca7b3a..40f0a92 100644 --- a/docs/ja/advanced/serialize.ipynb +++ b/docs/ja/advanced/serialize.ipynb @@ -5,6 +5,8 @@ "id": "4c9e7601-a3f2-496b-88a0-88e76bd18e7c", "metadata": {}, "source": [ + "# シリアライズ\n", + "\n", "JijModeling で作られた数理モデルは、簡単に[Protobuf](https://protobuf.dev) でシリアライズすることができます。そうするには{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。" ] }, @@ -14,10 +16,10 @@ "id": "b5807c3d-8bd3-4d3e-92bd-6cfa802cd625", "metadata": { "execution": { - "iopub.execute_input": "2026-03-12T10:11:46.245376Z", - "iopub.status.busy": "2026-03-12T10:11:46.245279Z", - "iopub.status.idle": "2026-03-12T10:11:46.303204Z", - "shell.execute_reply": "2026-03-12T10:11:46.302754Z" + "iopub.execute_input": "2026-03-12T10:23:12.203532Z", + "iopub.status.busy": "2026-03-12T10:23:12.203405Z", + "iopub.status.idle": "2026-03-12T10:23:12.257150Z", + "shell.execute_reply": "2026-03-12T10:23:12.256686Z" } }, "outputs": [], @@ -46,10 +48,10 @@ "id": "fb7345c2-2252-4c3a-ae46-9e6318a4fa9a", "metadata": { "execution": { - "iopub.execute_input": "2026-03-12T10:11:46.304697Z", - "iopub.status.busy": "2026-03-12T10:11:46.304596Z", - "iopub.status.idle": "2026-03-12T10:11:46.306739Z", - "shell.execute_reply": "2026-03-12T10:11:46.306331Z" + "iopub.execute_input": "2026-03-12T10:23:12.258501Z", + "iopub.status.busy": "2026-03-12T10:23:12.258399Z", + "iopub.status.idle": "2026-03-12T10:23:12.260894Z", + "shell.execute_reply": "2026-03-12T10:23:12.260382Z" } }, "outputs": [], diff --git a/markdowns/en/advanced/serialize.md b/markdowns/en/advanced/serialize.md index f45268f..01ac8e9 100644 --- a/markdowns/en/advanced/serialize.md +++ b/markdowns/en/advanced/serialize.md @@ -11,6 +11,8 @@ kernelspec: name: python3 --- +# Serialization + JijModeling models can be easily serialized to [Protobuf](https://protobuf.dev) using the {py:func}`jijmodeling.to_protobuf` function or the {py:meth}`Problem.to_protobuf ` method. ```{code-cell} ipython3 diff --git a/markdowns/ja/advanced/serialize.md b/markdowns/ja/advanced/serialize.md index 19fef15..009f80d 100644 --- a/markdowns/ja/advanced/serialize.md +++ b/markdowns/ja/advanced/serialize.md @@ -11,6 +11,8 @@ kernelspec: name: python3 --- +# シリアライズ + JijModeling で作られた数理モデルは、簡単に[Protobuf](https://protobuf.dev) でシリアライズすることができます。そうするには{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。 ```{code-cell} ipython3 From bc5cb1b6359ffb944fd3701de6bd8f71df676f8f Mon Sep 17 00:00:00 2001 From: Zengor Date: Thu, 12 Mar 2026 19:25:36 +0900 Subject: [PATCH 6/9] Fix unreleased exclusion --- docs/en/_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/_config.yml b/docs/en/_config.yml index 4ba89ec..86afd09 100644 --- a/docs/en/_config.yml +++ b/docs/en/_config.yml @@ -12,7 +12,7 @@ execute: timeout: 60 exclude_patterns: - "releases/jijmodeling-*" - - "releases/unreleased-*" + - "releases/unreleased*" # Define the name of the latex output file for PDF builds latex: From 472a22813517f7609d22f94c9bb23aad822183e0 Mon Sep 17 00:00:00 2001 From: Zengor Date: Fri, 13 Mar 2026 15:54:59 +0900 Subject: [PATCH 7/9] Adjust japanese text --- markdowns/ja/advanced/serialize.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdowns/ja/advanced/serialize.md b/markdowns/ja/advanced/serialize.md index 009f80d..32e7555 100644 --- a/markdowns/ja/advanced/serialize.md +++ b/markdowns/ja/advanced/serialize.md @@ -13,7 +13,7 @@ kernelspec: # シリアライズ -JijModeling で作られた数理モデルは、簡単に[Protobuf](https://protobuf.dev) でシリアライズすることができます。そうするには{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。 +JijModeling で作られた数理モデルは、[Protobuf](https://protobuf.dev) で簡単にシリアライズできます{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。 ```{code-cell} ipython3 import jijmodeling as jm From c0fc3bec689d9a02ab316038dfdeb3cb36407c87 Mon Sep 17 00:00:00 2001 From: Zengor Date: Fri, 13 Mar 2026 15:56:54 +0900 Subject: [PATCH 8/9] Run sync --- docs/ja/advanced/serialize.ipynb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/ja/advanced/serialize.ipynb b/docs/ja/advanced/serialize.ipynb index 40f0a92..a1b4502 100644 --- a/docs/ja/advanced/serialize.ipynb +++ b/docs/ja/advanced/serialize.ipynb @@ -7,7 +7,7 @@ "source": [ "# シリアライズ\n", "\n", - "JijModeling で作られた数理モデルは、簡単に[Protobuf](https://protobuf.dev) でシリアライズすることができます。そうするには{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。" + "JijModeling で作られた数理モデルは、[Protobuf](https://protobuf.dev) で簡単にシリアライズできます{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。" ] }, { @@ -16,10 +16,10 @@ "id": "b5807c3d-8bd3-4d3e-92bd-6cfa802cd625", "metadata": { "execution": { - "iopub.execute_input": "2026-03-12T10:23:12.203532Z", - "iopub.status.busy": "2026-03-12T10:23:12.203405Z", - "iopub.status.idle": "2026-03-12T10:23:12.257150Z", - "shell.execute_reply": "2026-03-12T10:23:12.256686Z" + "iopub.execute_input": "2026-03-13T06:56:04.044559Z", + "iopub.status.busy": "2026-03-13T06:56:04.044470Z", + "iopub.status.idle": "2026-03-13T06:56:04.099024Z", + "shell.execute_reply": "2026-03-13T06:56:04.098638Z" } }, "outputs": [], @@ -48,10 +48,10 @@ "id": "fb7345c2-2252-4c3a-ae46-9e6318a4fa9a", "metadata": { "execution": { - "iopub.execute_input": "2026-03-12T10:23:12.258501Z", - "iopub.status.busy": "2026-03-12T10:23:12.258399Z", - "iopub.status.idle": "2026-03-12T10:23:12.260894Z", - "shell.execute_reply": "2026-03-12T10:23:12.260382Z" + "iopub.execute_input": "2026-03-13T06:56:04.100486Z", + "iopub.status.busy": "2026-03-13T06:56:04.100391Z", + "iopub.status.idle": "2026-03-13T06:56:04.102379Z", + "shell.execute_reply": "2026-03-13T06:56:04.102036Z" } }, "outputs": [], From 81484daddc11014a52a3a213282048b3368d5eed Mon Sep 17 00:00:00 2001 From: Zengor Date: Fri, 13 Mar 2026 17:02:01 +0900 Subject: [PATCH 9/9] Apply review changes --- docs/ja/advanced/serialize.ipynb | 20 ++++++++++---------- markdowns/ja/advanced/serialize.md | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/ja/advanced/serialize.ipynb b/docs/ja/advanced/serialize.ipynb index a1b4502..fc9cfc8 100644 --- a/docs/ja/advanced/serialize.ipynb +++ b/docs/ja/advanced/serialize.ipynb @@ -5,9 +5,9 @@ "id": "4c9e7601-a3f2-496b-88a0-88e76bd18e7c", "metadata": {}, "source": [ - "# シリアライズ\n", + "# 数理モデルのシリアライズ\n", "\n", - "JijModeling で作られた数理モデルは、[Protobuf](https://protobuf.dev) で簡単にシリアライズできます{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。" + "JijModeling で作られた数理モデルは、[Protobuf](https://protobuf.dev) で簡単にシリアライズできます。具体的には、{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使えばシリアライズできます。" ] }, { @@ -16,10 +16,10 @@ "id": "b5807c3d-8bd3-4d3e-92bd-6cfa802cd625", "metadata": { "execution": { - "iopub.execute_input": "2026-03-13T06:56:04.044559Z", - "iopub.status.busy": "2026-03-13T06:56:04.044470Z", - "iopub.status.idle": "2026-03-13T06:56:04.099024Z", - "shell.execute_reply": "2026-03-13T06:56:04.098638Z" + "iopub.execute_input": "2026-03-13T08:01:47.482919Z", + "iopub.status.busy": "2026-03-13T08:01:47.482825Z", + "iopub.status.idle": "2026-03-13T08:01:47.536758Z", + "shell.execute_reply": "2026-03-13T08:01:47.536332Z" } }, "outputs": [], @@ -48,10 +48,10 @@ "id": "fb7345c2-2252-4c3a-ae46-9e6318a4fa9a", "metadata": { "execution": { - "iopub.execute_input": "2026-03-13T06:56:04.100486Z", - "iopub.status.busy": "2026-03-13T06:56:04.100391Z", - "iopub.status.idle": "2026-03-13T06:56:04.102379Z", - "shell.execute_reply": "2026-03-13T06:56:04.102036Z" + "iopub.execute_input": "2026-03-13T08:01:47.538446Z", + "iopub.status.busy": "2026-03-13T08:01:47.538315Z", + "iopub.status.idle": "2026-03-13T08:01:47.540574Z", + "shell.execute_reply": "2026-03-13T08:01:47.540170Z" } }, "outputs": [], diff --git a/markdowns/ja/advanced/serialize.md b/markdowns/ja/advanced/serialize.md index 32e7555..68fa0e7 100644 --- a/markdowns/ja/advanced/serialize.md +++ b/markdowns/ja/advanced/serialize.md @@ -11,9 +11,9 @@ kernelspec: name: python3 --- -# シリアライズ +# 数理モデルのシリアライズ -JijModeling で作られた数理モデルは、[Protobuf](https://protobuf.dev) で簡単にシリアライズできます{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使います。 +JijModeling で作られた数理モデルは、[Protobuf](https://protobuf.dev) で簡単にシリアライズできます。具体的には、{py:func}`jijmodeling.to_protobuf`関数か`Problem.to_protobuf `メソッドを使えばシリアライズできます。 ```{code-cell} ipython3 import jijmodeling as jm