推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
hxyCoding
V2EX  ›  Python

scipy 非线性优化中 bounds 参数定义问题

  •  
  •   hxyCoding · Jul 1, 2022 · 2270 views
    This topic created in 1421 days ago, the information mentioned may be changed or developed.

    scipy 非线性优化中 bounds 参数定义问题

    例:optimize.linprog(c, A_ub=Aub, b_ub=bup, bounds=bounds)

    bounds 参数 只能设置( min,max )吗?能否给定有限集合[0,10,20,30 ...]?

    1 replies    2022-07-04 00:34:08 +08:00
    necomancer
        1
    necomancer  
       Jul 4, 2022
    这个……我觉得你可能需要考虑一下这个
    scipy.optimize.brute

    或者考虑重新规划你的问题,如果你只有某些变量是离散的,那就把离散的变量当作参数然后对所有可能进行遍历,也就是给定每一个可能的值,然后对其他变量进行优化,最后对比哪个参数下函数值最小。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1038 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:54 · PVG 02:54 · LAX 11:54 · JFK 14:54
    ♥ Do have faith in what you're doing.