Recently, I have been learning optimization, and my optimization problem, (minimization), is encoded in a MILP solver which tells me it's infeasible for my model. Hence, I introduced a few positive/negative slack variables. Now, I get a feasible solution, but the positive slack variables are way bigger than what I can accept. So, I gave penalties/weights to those variables (multiplied by large numbers), hoping that the MILP solver would reduce the variables, but that didn't work (I got the same solution) Is there any approach to follow, in general, when the slack is too large? Is there a better way to pick the slack variables, in general?
Is there a simple way to reduce the value of positive slack variables in MILP?
302 Views Asked by GermanShepherd At
2
There are 2 best solutions below
Related Questions in LINEAR-PROGRAMMING
- Error in running a multi-level mixed effects model on microbiome data
- Distribute a list of positive numbers into a desired number of sets, aiming to have sums as close as possible between them
- Linearlization of quadratic constraint
- Linear program solver CBC seems to give 'optimal' solutions with different objective for the exact same problem (and code)
- PYOMO: LP Heat storage optimalization problem, I want to define the domain of a variable with discrete floats
- How to interpret shadow price array shape in Gekko
- Simultaneous Spacing and Duration Constraints with time gaps in Gekko
- Time-based spacing constraints in Gekko
- Dealing with Non-Optimal Solutions from Gekko
- How to use layered conditional constraints in Gekko
- How to enforce specific elements in a vector to be in an optimization solution in Gekko
- How to write solution file for an LP problem with Coin-or Cbc Solver?
- Randomized Relaxation of Complex Linear Assignment Problem
- ortools solvers GLOP, PDLP instantly writes that the model is infeasible
- Binary and Integer Program in Python
Related Questions in SOLVER
- Get the only solution based on given constraints using z3 theorem
- What is the role of Pyomo/JuMP/Yalmip in solving optimization model using Python/Julia/Matlab and Gurobi Solver?
- How do I make a collatz conjecture solver to find the number with the longest trajectory and output it in a list?
- Match-3 gravity games solver?
- Is there a constraint to pieces of the stateFunction only go in ascending or descending order?
- Change variable cells in OpenSolver model
- Maple polynomial equation solver not identifying solutions
- Is it possible for "alwaysIn" (state functions) select from set of values?
- Python solver returns no values upon running the code
- Optimisation problem with constraint in R: how to solve problem with "complex" logarithmic benefit functions?
- Excel Solver - Useful methods to "kick" Nonlinear solutions out of a stuck point
- LP problem status is not correct when time limit is used in PuLP solver
- Looping though Rows and Columns while running Goalseek
- Adding constraints to PULP. Transportation problem
- sympy solve one equation in 2 unknowns and symbols
Related Questions in MIXED-INTEGER-PROGRAMMING
- gurobi constraint to prevent repeated solution
- How to interpret shadow price array shape in Gekko
- Simultaneous Spacing and Duration Constraints with time gaps in Gekko
- About MATLAB intlinprog
- Time-based spacing constraints in Gekko
- Dealing with Non-Optimal Solutions from Gekko
- How to use layered conditional constraints in Gekko
- If else then constraint to linearization
- How to enforce specific elements in a vector to be in an optimization solution in Gekko
- How to handle optimizing across vectors in Gekko
- Solving Bilevel Optimization with Nonlinear Subproblem
- How does Gurobi handle the Piecewise Linear constraints inside its core program?
- Use min/max operator inside integer linear programming constraint
- Python Gekko Max Equation Length Error for Integer Programming
- MOSEK Fusion API for Python: get number of feasible solutions found during optimization
Related Questions in OPERATIONS-RESEARCH
- GAMS: How to write x(i,j) is not equal to x(i,j) as a constraint to a integer linear programming model?
- Confusion about Google OR-Tools' CVRP solver
- Is this possible within optimization framework?
- Idiomatic way to simulate a multi-node servicing queue without a loop with Polars?
- subtour elimination constraints in VRP exact mathematical formulation
- About NSGA-II and NSGA-III output variables
- Dynamically increasing lower bound in CP-SAT from Google's OR tools
- Keeping count of variable occurence in google OR Tools
- Determining if a linear program is self-dual?
- Creating custom constraints in google's OR-Tools CP-SAT in python
- Hungarian Algorithm step
- Constraint formulation for variable cleaning times - MILP optimization
- For open source optimization solvers, the cutting plane algorithm is not effective in solving the scheduling problem of single machine
- How is AMRI calculated and what does it mean in terms of link prediction in knowledge graph?
- Solving linear programs using Pulp but with nonlinear constraint
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
A common pitfall for people new to mathematical programming/optimization is that variables are non-negative by default, that is, they always have an implied lower bound of 0. Your mathematical model may not specify this explicitly, so those variables might need to be declared as free (with a lower bound of -infinity).
In general, you should double-check your model (as LP file) and compare it to the mathematical formulation.