-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] add tutorial on piecewise linear #3563
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3563 +/- ##
==========================================
+ Coverage 98.20% 98.38% +0.17%
==========================================
Files 37 37
Lines 5622 5624 +2
==========================================
+ Hits 5521 5533 +12
+ Misses 101 91 -10 ☔ View full report in Codecov by Sentry. |
I think this is a good addition. I can imagine linking quite a few discourse posts to it. |
This is nice; I've wanted to write something like this for a while but hadn't got around to it. |
BTW: typo here for Line 218 in 913744a
|
See #3565 for docstrings |
Should we just call it |
I don't understand. How does one represent |
I wasn't quite sure of a good way to do this. Ideally, you'd have some sort of interactive slider, where you could move |
No idea why I wrote that: I meant the epi-graph |
I still don't really follow what you're suggesting? |
Broadly speaking, I was thinking that you can combine both sections of the tutorial: a non-convex inner approximation boundary with a convex function (or concave, depending on the direction of the inequality) constraint to get a tight envelope to a function.
But I'll just wait to read the whole thing again once it settles, or just PR later. Edit: I guess this becomes nonlinear, so might not be useful within the LP tutorials or HiGHS anyway. |
@jd-foster I merged because this is an improvement. But feel free to make other edits in a separate PR. |
preview: https://jump.dev/JuMP.jl/previews/PR3563/tutorials/linear/piecewise_linear/