Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 487

For questions related to the process of converting a real-world problem into a mathematical model. Can include questions related to linearization, logical constraints, tightness of formulations, and so on.

8 votes

What does nonconvex multilinear mean?

Non-convex means not convex, which could mean concave but also neither convex nor concave, such as a bilinear term $xy$.
Johan Löfberg's user avatar
8 votes

How to deal with a decision variable in the objective function that depends on if-else condi...

Introduce four binary variables indicating which region you are in and the function value. $$\begin{align} \delta_1 &\rightarrow x_2\geq c, ~x_3\geq d, ~x_1 = a\\ \delta_2 &\rightarrow x_2\geq c, ~0\ …
Johan Löfberg's user avatar
11 votes

How can I model regression with an asymmetric loss function?

I suspect you want to minimize $\sum\limits_i \left[k_1\max(e_i,0)^2 + k_2\max(-e_i,0)^2\right]$. For instance, $a=0.5$ would correspond to $k_1 = 0.25$ and $k_2 = 2.25$). This can be formulated as a …
TheSimpliFire's user avatar
  • 5,462
7 votes

Modeling floor function exactly

As all have mentioned, the problem is intrinsically hard, as it effectively involves a strict inequality. One way to represent it, using no strict inequalities or magic constants, is to use the simpl …
Johan Löfberg's user avatar