<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inarizuuuushi</author_name>
  <author_url>https://blog.hatena.ne.jp/inarizuuuushi/</author_url>
  <blog_title>Sabrou-mal サブロウ丸</blog_title>
  <blog_url>https://inarizuuuushi.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>本稿では、floptモデリングツールで定義した線形計画問題に対し単体法を実行して解の取得を行います。Wikipediaにある問題を例に実装してみましょう。 主問題の定義 単体法(Simplex) 等式制約に変換 線形計画の形式に変換 基底変数と非基底変数の設定 Step1: 被約費用の計算 Step2: 基底変数と非基底変数の入れ替え 補助問題 不等式制約に変換 補助変数の追加 解の保存 実行可能解を元に単体法を実行 単体法コードのまとめ 2段階最適化のコード まとめ 主問題の定義 まず、Variable3つを用いて目的関数と、制約を作成します。 import flopt x = flopt.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finarizuuuushi.hatenablog.com%2Fentry%2F2023%2F08%2F14%2F090000&quot; title=&quot;floptで単体法(Simplex)実装 - Sabrou-mal サブロウ丸&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-08-14 09:00:00</published>
  <title>floptで単体法(Simplex)実装</title>
  <type>rich</type>
  <url>https://inarizuuuushi.hatenablog.com/entry/2023/08/14/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
