<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ujimushisradjp</author_name>
  <author_url>https://blog.hatena.ne.jp/ujimushisradjp/</author_url>
  <blog_title>ujimushi(@旧sradjp(15364))の日記</blog_title>
  <blog_url>https://ujimushisradjp.hatenablog.jp/</blog_url>
  <categories>
    <anon>勝手に回答</anon>
    <anon>Julia言語</anon>
  </categories>
  <description>久しぶりの「勝手に回答」シリーズ。今回はTeratailの 複数の制約があるなかでの価値最大化。(ナップサック問題応用) です。 質問では「Pythonで」ということでしたがPythonはよく分からないので， 自分のためのJuliaのJuMPの勉強としてJulia言語で実装してみます。 幸いにしてJuMPのサイトにはナップサック問題の例があるので， これに対してうんうん悩みながら条件を追加していきます。 実装例は次のような感じです。 もうちょっと簡単にできるのかもしれないですけど， あまりコーディング能力がない自分が初めて書いたにしては上出来かなと思います。 using JuMP, HiGHS…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fujimushisradjp.hatenablog.jp%2Fentry%2F2024%2F03%2F27%2F215047&quot; title=&quot;複数の制約があるなかでの価値最大化。(ナップサック問題応用) ～勝手に回答 - ujimushi(@旧sradjp(15364))の日記&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>2024-03-27 21:50:47</published>
  <title>複数の制約があるなかでの価値最大化。(ナップサック問題応用) ～勝手に回答</title>
  <type>rich</type>
  <url>https://ujimushisradjp.hatenablog.jp/entry/2024/03/27/215047</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
