Syed Saad Ali
- Total activity 21
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 1
- Subscriptions 4
Posts
Recent activity by Syed Saad Ali-
Piecewise Objective function and Piecewise constraints
AnsweredMy objective function is: \[\begin{equation}\min \sum_{t=1}^T p_{t} \cdot (1+r) \cdot y_{t} \end{equation}\] where \(p\) is the price, \(y\) is the quantity (decision variable) and \(r\) is the pri...
-
Using the values of variable in the objective function before optimizing
AnsweredHi! I am facing a problem to multiply a term in objective function. My objective function is : \[\begin{equation}\min \sum_{t=1}^T p_{t} * (1+r) * y_{t} \end{equation}\] where \(p\) is the price, ...
-
Condition within a condition in constraint
Awaiting user inputHow could I model my constraints in general and implement in Python Gurobi with the following conditions: when \(q=0 \rightarrow y=0\) and when \(q=1\), \[\begin{equation}y = \begin{cases}d & \math...
-
Error in Reading Model: Python Jupyter
AnsweredHi, I am unable to read a model file with "afiro.mps" following example 1 of the Python I Webinar even though this .mps file is already in the data folder. Below is the complete error message. coul...