Science topic

Linear Programming - Science topic

Explore the latest questions and answers in Linear Programming, and find Linear Programming experts.
Questions related to Linear Programming
  • asked a question related to Linear Programming
Question
3 answers
linear programming only
Relevant answer
Answer
good@
  • asked a question related to Linear Programming
Question
9 answers
Just the differences
Relevant answer
Answer
Operational Research uses "scientific" techniques (mainly mathematics, statistics and computing) to help people make decisions. Applications are in business, healthcare, defence and so on. Commonly used techniques include optimisation, simulation and stochastic modelling. Linear programming is just one specific optimisation technique.
  • asked a question related to Linear Programming
Question
2 answers
Dear Colleagues,
I hope this message finds you well. I am working on a research project involving the development of a Mixed-Integer Linear Programming (MILP) model for optimizing quality-based supply chain management, particularly focusing on managing the deterioration of perishable food items.
I have written the preliminary LINGO code for this model, but unfortunately, it is not functioning as expected. The variable values (solutions) are incorrect or not converging as anticipated, and despite my best efforts, I am unable to resolve the issue.
I am genuinely seeking help from someone with expertise in MILP modeling and supply chain optimization who can assist me in debugging and improving the code. Your contribution would be highly valuable, and in recognition of your efforts, I would be more than happy to offer co-authorship on the paper once the work is successfully completed.
If you are willing to help or guide me through the corrections, please do not hesitate to reach out. I would greatly appreciate any advice or support.
Looking forward to your response.
Best regards, Ashish Kumar
Relevant answer
Answer
hi professor, work done?
  • asked a question related to Linear Programming
Question
4 answers
I am interested on linear program model for marketing but I don't have data to work with. S
o I would like some marketing and business examples.
Relevant answer
Answer
Will be the result
  • asked a question related to Linear Programming
Question
2 answers
Seeking insights on optimal optimization algorithms for efficiently solving large-scale linear programming problems, balancing computational speed and solution accuracy.
Relevant answer
Answer
True, although the Simplex method is also very good
  • asked a question related to Linear Programming
Question
3 answers
"For a mixed-integer linear programming model M with feasible solutions, by taking the non-zero valued variables from the linear relaxation solution of model M to construct the solution space of model M, is the integer programming model M guaranteed to have feasible solutions?"
Relevant answer
Answer
No, model M is not guaranteed to have feasible solutions when taking the non-zero valued variables from the linear relaxation solution of model M to construct the solution space. The linear relaxation solution provides a feasible solution to the relaxed version of the problem where the integer constraints are relaxed, allowing variables to take on fractional values.
When constructing the solution space of the integer programming model M using the non-zero valued variables from the linear relaxation solution, the resulting solution may violate the original problem's integer constraints. This means the constructed solution may have fractional values for the variables that should have been integers.
Hope it helps
  • asked a question related to Linear Programming
Question
5 answers
Please can anybody help me with my final year project?
I'm working on an assortment optimization problem in retail (Food industry), and i have a big transactional data . i have to chose only 4000 products from a set of 15000 product in a way to maximize the total revenue. I'm supposed to use an operational research approach , and the only thing that cross my mind is to use the MILP(mixed integer linear programming).
I dont have any constraint about the shelf space or the stock restriction, can i use a knapsack approach in this case ?
also i want to know if I can use multi label classification to determine the probability that a client might buy a product from a specified category?
thank you in advance for your answers.
Relevant answer
Answer
Some thoughts I have: Knowing the breadth of the products, time period of the data you have, do you have store locations (lat/log's), demographic data, as well the product categories. Do we know sub-categories, brands, if the items are substitutes or complements, as well as the what the consumer decision tree (CDT)? What is the consumer buyer behavior? Do we know product space, or fixture space? MILP is a common method. Are there reasonable constraints that should be applied to make the recommendation more actionable? Interesting topic, I'm interested in hearing your progress.
  • asked a question related to Linear Programming
Question
4 answers
How can I formulate, in mixed integer programming (a set of constraints), the following issue:
I have a maximization function on x, g(x).
I need to convert a continuous linear function on x, f(x) (with x real) such that when f(x)<0 it passes 0 to the objective function and when f(x)>=0 it passes f(x).
Thanks in advance,
Diogo
Relevant answer
Answer
Diogo
Your question is not very clear, but I believe that your problem can be easily solved by Linear Programming
If you want, send me the problem for me to study it in depth, I will be happy to help if I can
  • asked a question related to Linear Programming
Question
3 answers
Hi
I have a non-linear equation
I want to convert it into a linear equation using the predictive model method
Can anyone help?
and then optimize with linear programming method
please send an e-mail
Relevant answer
Answer
Roozbeh Mousavi: definitely, a great answer is provided by "Google Bard". To summarize, it is enough to take several courses in statistics, nonlinear programming, linear regression, probability theory, and the answer will appear/ reveal by itself. ...
  • asked a question related to Linear Programming
Question
2 answers
Can MATLAB solve large-scale linear programming problems? such as pathway toward carbon-neutral of power sector.
Relevant answer
Answer
Yes, the Inbuilt optimization toolboxes of MATLAB help to solve large-scale LP problems. The optimization toolbox in MATLAB provides functions and algorithms for solving a variety of optimization problems, including LP. For very large-scale LP problems with millions of variables or constraints, specialized solvers or parallel computing techniques may be necessary to achieve efficient solutions. In such cases, MATLAB provides options to interface with external solvers or parallel computing frameworks to handle the computational requirements.
  • asked a question related to Linear Programming
Question
5 answers
Optimization is a statistical technique and done by using linear programming. it is being used in farming systems.
Relevant answer
Answer
Dear Reza
In your point 1, not everything is profit or cost. You can minimize water consumption as well of fertilizers or maximize land use.
In your point 4 you should say 'mathematical inequations' not 'equations'.
This is where the strength of LP lies
  • asked a question related to Linear Programming
Question
3 answers
Where is the Jade due to the throwing out of a brick and a paving stone?
A brand new conception of preferable probability and its evaluation were created, the book was entitled "Probability - based multi - objective optimization for material selection", and published by Springer, which opens a new way for multi-objective orthogonal experimental design, uniform experimental design, respose surface design, and robust design, discretization treatment and sequential optimization, etc.
It aims to provide a rational approch without personal or other subjective coefficients, which is available at https://link.springer.com/book/9789811933509,
DOI: 10.1007/978-981-19-3351-6.
Best regards.
Yours
M. Zheng
  • asked a question related to Linear Programming
Question
1 answer
I have used intlinprog in my code for solving integer linear programming problems and mixed integer linear programming problems. What is the complexity of intlinprog in terms of the number of constraints and variables?
  • asked a question related to Linear Programming
Question
1 answer
Hi, I'm Anne Christina here 3rd year financial Mathematics student in UMT conducting my final year project entitle "Linear Programming in constructing feed formulation of Giant Gourami (Osphronemus Goramy) in Malaysia". For that I'm researching for the data on the feed ingredients needed for gourami and in detail on the nutrient content of amino acids. Hope my question will be answered by the person in this field. Thank you in advance.
Relevant answer
Answer
because "... The determination of amino acid content is a lengthy and complicated process requiring highly specialized, and expensive, equipment..." according to "2.1.4 Other tests" in https://www.fao.org/3/x5738e/x5738e0r.htm#2.1%20raw%20materials
after all "... Quantitative requirements of essential amino acids ... generally agree with values derived for other species ..." - from first link here.
Good luck
  • asked a question related to Linear Programming
Question
2 answers
In my data envelopment analysis (DEA) model, I have 3 outputs, namely (i) No. of Sponsored Projects, (ii) No. of Consultancies and (iii) Total Revenue generated from Sponsored Projects and Consultancies. My DMUs are different universities. It is clear that the third output is the overlapping factor as the revenue is generated due to the sponsored projects and consultancies. If I choose only the third output, the problem is that I cannot take into account the social benefits from a university because it is possible that a university undertakes many projects and consultancies (i.e. indicators of social benefits) while generating less revenue. Again, if I take the first two outputs, then I miss the part of revenue generation because all the projects and consultancies may not generate same revenue. Should I consider the first two outputs or the third output or all the three outputs in my model?
Relevant answer
Answer
It is generally recommended to include all three outputs in your DEA model, as each of them represents a distinct aspect of the performance of the DMUs (universities).
What I understand is that the first output, No. of Sponsored Projects, reflects the ability of the university to attract funding for research and development. The second output, No. of Consultancies, reflects the university's ability to provide services to external organizations. The third output, Total Revenue generated from Sponsored Projects and Consultancies, reflects the university's overall financial performance.
If you include all three outputs in your model, you can capture a university's social benefits and financial performance. However, you should be aware that the third output may be correlated with the first two outputs, as revenue is generated from sponsored projects and consultancies. This could potentially affect the results of your DEA model.
One way to account for this is to use a model that allows for overlapping outputs, such as the common weights model or the free disposal hull model. These models allow for the possibility that some inputs and outputs may be used in the production of multiple outputs, and can provide a more accurate assessment of the efficiency of the DMUs.
Ultimately, the decision of which outputs to include in your DEA model will depend on the specific research question you are trying to answer and the data that is available to you. It may be helpful to consider the strengths and limitations of each model and the implications of including or excluding certain outputs in your analysis.
Good luck.
  • asked a question related to Linear Programming
Question
6 answers
How many methods we have for multi-criteria Classification (sorting) problems? Could you please name them?
As I understood we have some methods in the below approaches:
1. Multi-Attribute decision making (ELECTRE-TRI, FlowSort, Promethee IV)
2. Multi-objective decision making
3. Goal programming
4. Linear programming (Integer programming)
5. Supervised methods (UTADIS/Decision tree)
6- Clustering (K-means/K-medoids/2steps/c-means)
Could you please name some more methods which can be applied for multi-criteria classification problems?
Thank you in advance.
Relevant answer
Answer
  • asked a question related to Linear Programming
Question
34 answers
Need to know about the softwares available for linear programming.
Relevant answer
Answer
GUROBI or CPLEX
  • asked a question related to Linear Programming
Question
5 answers
In the file that I attached below there is a line upon the theta(1) coefficient and another one exactly below C(9). In addition, what is this number below C(9)? There is no description
Relevant answer
Answer
I asked that question to the person who code that package, and he said C(9) coefficient does not have any meaning here, just ignore. It comes up because the package is written for the old version of Eviews and has not been updated that is why.
  • asked a question related to Linear Programming
Question
4 answers
How can I get a MATLAB code for solving multi objective transportation problem and traveling sales man problem?
Relevant answer
Answer
The link that Mohamed-Mourad Lafifi mentioned is useful. In addition, to finding code kindly check GitHub:
  • asked a question related to Linear Programming
Question
10 answers
Consider a linear program of the form
min <c,x>: Ax <= b.
Suppose that b depends on a parameter y, such that b(y) is concave. Then the value of the LP is convex in this parameter y. This is easy to prove via duality and should be widely known. However, I do not find an appropriate reference. The only case I have found is when b is linear, this is treated in a recent book of Dantzig and Thapa. Could anyone help with a reference for the general concave case?
Relevant answer
Answer
See the following comprehensive references:
1) Linear Programming and Network Flows
Book by Hanif D. Sherali, John J. Jarvis, and M. S. Bazaraa
2) Linear Programming, 1983
Book by Katta G. Murty
  • asked a question related to Linear Programming
Question
1 answer
I am working on a 33 bus distribution network and I am trying yo maximise the number of critical loads restored and am using Dist flow for my power flow studies which I incorporated as one of the constraints but i cant seem to get the constraints formulated correctly in MATLAB
Relevant answer
Answer
Hi Sibabalo,
Do you get an answer to your question? I have your problem now.
Thanks
  • asked a question related to Linear Programming
Question
4 answers
I want to learn MARKAL and TIMES energy modelling software. May I know if there are any videos/ tutorials/ study material available for the same?
Thank you
  • asked a question related to Linear Programming
Question
4 answers
Power Network Expansion Planning is the problem of deciding the new transmission lines that should be added to an existing transmission network in order to satisfy system objectives efficiently. It is one of the main strategic decisions in power systems and has a deep, long-lasting impact on the operation of the system. Several challenges such as deregulation, renewable penetration, large-scale generation projects, market integration, and regional planning are discussed in the literature to some extent.
In the context of the smart grid, what can be the potential future challenges in terms of different scenarios, applications, modeling, solution, and novel devices in the network?
Relevant answer
Answer
Two main problems in the perspective of SG:
*Integration of Microgrid, while considering uncertain factors and limitations of the present grid.
*Integration of charging stations for EVs taking into view users' profiles and traditional grid capacity.
  • asked a question related to Linear Programming
Question
3 answers
Transportation problem
Relevant answer
Answer
In general, it is not a better metaheuristic than the other ones. But there are general approaches for facing the practical problems: in your cases it is needed to make evolve one or more solutions populations. In the work attached you could find a useful approach for facing your problem. Neverless, would be useful using more than one metaheuristic and to compare them by different indicators
  • asked a question related to Linear Programming
Question
2 answers
For an Integer Linear Programming problem (ILP), an irreducible infeasible set (IIS) is an infeasible subset of constraints, variable bounds, and integer restrictions that becomes feasible if any single constraint, variable bound, or integer restriction is removed. It is possible to have more than one IIS in an infeasible ILP.
Is it possible to identify all possible Irreducible Infeasible Sets (IIS) for an infeasible Integer Linear Programming problem (ILP)?
Ideally, I aim to find the MIN IIS COVER, which is the smallest cardinality subset of constraints to remove such that at least one constraint is removed from every IIS.
Thanks for your time and consideration.
Regards
Ramy
  • asked a question related to Linear Programming
Question
10 answers
Dear Experts,
I am looking for a solution for a convex optimization problem (linear programming) and I am thinking about evolutionary algorithms. Do you think it would be helpful?
Relevant answer
Answer
Most LPs arising in practice can be solved quickly using simplex. For very large and/or degenerate instances, interior point methods (IPMs) may be faster. Many solvers (e.g., CPLEX, Gurobi, Xpress, MOSEK) allow the user to try several methods.
  • asked a question related to Linear Programming
Question
6 answers
When seeking a solution to a linear programming problem with fuzzy coefficients in the objective function, some technique must be applied to transform to crisp values, or to translate these fuzzy elements to real values. What techniques do you suggest?
Relevant answer
I am just exploring different methods for this phase, but as you said, once the defuzzification is done I will find the solution. I particularly want to explore alpha-cuts based methods.
  • asked a question related to Linear Programming
Question
8 answers
I want the following help in linear fashion:
  • I have a vector: P(n)=[1,2,3,4,5,...,n]
  • I have binary variables with length of P: y(1),y(2).....y(n). These variables, y(i) can only take 0 or 1.
A new vector Q(n) is needed, such that, if y(i) is 1, then the ith element in Q(n) should be 0. And in rest of the places, the P(n) should get repeated.
  • Example : if n=6, and y(1) and y(4) are 1 ,then Q(1) and Q(4), should be 0. The vector, Q will be as follows :
Q=[0 1 2 0 1 2].
  • Another example : if y(3) is 1, then Q should be as follows:
Q=[1 2 0 1 2 3].
Basically, beside the zeros on ith position, the vector P should repeat itself in non-zero positions of Q
Can you please help me formulating this problem?
Relevant answer
Answer
In case of MATLAB you can try this:
CLC; clear;
P=[1:10]; %can work for any size or elements of P
Y=[1 1 0 1 1 1 0 1 1 1];
Q=P;
for i=1:length(p)
If y(i) ==0
Q(i)=0;
Q(i+1:end)=P(1:end-i)
end
end
  • asked a question related to Linear Programming
Question
11 answers
Does someone have an excel file for formulating feeds using linear programming or a free online tool where this can be found?
Relevant answer
Answer
Do you mean something known as the optimal diet problem i.e. the problem in which the total cost of some food products is minimized subject to the constraints describing real consumption of nutrients included in the food products being at least/at most at some predefined levels?
  • asked a question related to Linear Programming
Question
2 answers
My basic objective is to solve epsilon insensitive SVR using linear programming . Therefore I need the base code for LPSVR.
  • asked a question related to Linear Programming
Question
6 answers
I am working on optimisation petroleum supply chain under uncertainty of market demand, I have designed mathematical model to solve two-stage linear programming with recourse. I have faced some problems to solve the model. Could you please help me.
Thanks  
Relevant answer
Answer
I was looking for sample GAMS code for robust optimization and adaptive robust optimization only for demonstrating the basic concept. Please help me in this regard.
  • asked a question related to Linear Programming
Question
2 answers
Dear all,
As we know, interval matrices are matrices with 0 and 1 entries with the property that the ones in each column (row) are contiguous. Interval matrices are totally unimodular (TU). Hence, the integer programming (IP) problems with such matrices of technical coefficients and can be solved as linear programming problems.
However, in the consecutive-ones with wrap around, the ones are wrapped.
For instance, in the following matrix, the ones are wrapped in columns 4 and 5:
1 0 0 1 1
1 1 0 0 1
1 1 1 0 0
0 1 1 1 0
0 0 1 1 1
This example is not TU with a sub-matrix with determinant 2 (deleting rows and columns 2 and 4).
Two questions:
1- When wrapping does not violate TU property?
2- Is there a general approach to solve IP problems with consecutive ones and wrapping around matrix of technical coefficients, efficiently?
Thank you for your kind help/
Relevant answer
Answer
If all righthand sides are 1, then you can reduce the problem to a series of shortest-path problems:
If not, then you can use the method in this paper:
  • asked a question related to Linear Programming
Question
12 answers
Any recommendation from a scientific journal to submit a paper on operations research applying linear programming and vehicle routing (VRP) using the B&B algorithm?
Relevant answer
Answer
You can ask your thesis advisor about what journal they think would be best to submit your work. It is hard to suggest a journal for you without seeing the actual paper.
  • asked a question related to Linear Programming
Question
16 answers
The routing problem can be easily solved using ILP or mixed ILP, why metaheuristic algorithms are required to solve this problem?
Relevant answer
Answer
Some useful contextualization for the simplest variant of the vehicle routing problem (the CVRP):
• The Christofides, Mingozzi, and Toth [CMT] vehicle routing instances with up to 200 clients have been released in 1979, and it took around 35 years of research and progress on exact methods to solve them optimally. In particular, simple MILP formulation for the CVRP (e.g., two-index vehicle flow formulation) can only solve some problems with a few dozes of clients.
• For the newer Uchoa et al. [X] instances with 100 to 1000 clients, there are monetary prizes for anyone able to consistently solve them to optimality (http://vrp.atd-lab.inf.puc-rio.br/index.php/en/cvrp-challenge). So far, this prize remains unclaimed, and many instances with as few as 300 customers remain unsolved.
• Practical applications often involve >5,000 clients (!!!) and *many* complicating constraints, additional decisions, and objectives called "attributes". Application cases with over 50,000 stops/clients are also quite common in courier delivery and refuse collection. Opting for an optimal solution through MILP in these situations is a guaranteed failure, and it usually reflects a lack of practical experience in the field. Even good lower bounds can be hard to get when problem size grows.
  • asked a question related to Linear Programming
Question
5 answers
where matrices A and B are known while X and Y are to be solved.
For example,
A=[a 0;
0 b];
B=[a a 0;
0 0 b;
0 0 b;];
a and b are known elements.
It is easy to see that the solution is
X=t*[1 1 0;
0 0 1;];
Y=1/t*[1 0;
0 1;
0 1;];
where t is any non-zero real number.
But how to derive this solution step by step in a systimatical way?
It would be better if there is a programmable approach.
Relevant answer
Answer
Dear Liming, at a first glance the problem seems not to have a unique solution in general. Assuming for example that all the matrices are nxn, you need to solve n2 equations (corresponding to the elements of B) in 2n2 unknowns (the elements of X and Y.
If what matters is to find a solution, even if not unique, a possible approach could be to look for a minimum of the norm ||XAY-B|| with respect to the entries xij and yij. To get a differentiable function, one could take the Frobenius norm of the residual XAY-B.
  • asked a question related to Linear Programming
Question
4 answers
I noticed that many studies which treat Electric Vehicle charging (in a V2X scenario) as an MILP (Mixed-Integer Linear Problem) problem, consider a constraint to prevent that an EV (Electric Vehicle) could simultaneous charge and discharge during the same time slot (the duration of this inteval varies from a study to another; the most used are: 15 minutes, 30 minutes; 1 hour).
I'm agree in considering that charging and discharging an EV at the same continuous time instant is not a realistic scenario, but which could be the reason of preventing this situation during a time inteval which lasts 15 minutes or 1 hour?
PS: I guess that it's done to simplify the complexity of the problem, but I'm wondering if there are other reasons.
Relevant answer
Answer
Dear All,
I'm totally agree with colleague Paul Oke.
Best regards
  • asked a question related to Linear Programming
Question
24 answers
Dear Colleagues,
I am running a time series regression (OLS) based on stationary dependent variables and log form of explanatory variables. Very few of logged exp. variables are stationary. When I took 1st difference, I could not get any significant results, plus, also the 1st difference did not make much sense to me when I analyzed it graphically. My question is, will my regression results be untrusted if I report such an analysis. I asked a similar question and got some replies that even if you log your variables, still you have to test it for a unit root; however, I am observing several papers with log variables where stationarity was not taken into account. Thank you beforehand.
Best
Ibrahim
Relevant answer
Answer
To answer to criticism of spurious regression, if it is time trended. Causality is still a bigger issue than just uncovering stationarity of time dated series. We need the theory to guide us and the use of statistics in experimental research design to handle causality is still not resolve.
  • asked a question related to Linear Programming
Question
3 answers
Multi-Market-Models were much famous a decade ago to carryout policy simulations. Are they still famous in economics now? Scope for publication in the present time?
Thanks in advance
Relevant answer
Answer
Yes. Still studies are going on in some countries and areas. Some studies are concentrating on Agricultural Policy Impact Analysis with Multi-Market Models.
  • asked a question related to Linear Programming
Question
12 answers
I need to model a construction and demolition waste management network in order to maximize waste recycling. I read some works that use MILP. Among the software used are GAMS, JULIA, MATLAB and R. Are there other software that can be used?
Relevant answer
Answer
I have used most of the tools mentioned before. While each of them has its strengths and weaknesses, nowadays I have been constantly relying on the same tool for solving all kinds of optimization problems.
This tool is a combination of Julia programming language with the Julia package JuMP which defines (in my opinion) the most elegant and intuitive modeling language that makes it easy to try different solvers on the same problem by simply changing the solver name in the code. It also allows easy access to more advanced features of MILP solvers such as generic support for callback functions that can be used to modify the problem while solving it with the addition of valid inequalities and user-defined heuristics.
As an example, solving the TSP using the DFJ (Danzig-Fulkerson-Johnson) formulation that has an exponential number of subtour elimination constraints is straightforward with JuMP. You can simply set up a "lazy constraint callback" function that will check if subtours are present in the solution and if not, add constraints to break these subtours. This is particularly easy when considering only integer solutions, but you can also use the "user callback" function to cut off fractional subtours. JuMP has turorials of several important modeling paradigms that can be used as a basis for your model. Here are the relevant links:
You can download Julia programming language from
Website for the JuMP package
Tutorials for modeling with JuMP
More example problems solved with JuMP
Best regards
Juho
  • asked a question related to Linear Programming
Question
9 answers
Hi All,
Are there any opinions and experiences of the LocalSolver solver?
Comparing for example accuracy, speed, etc. to other solvers, etc.
Interesting to hear about them ...
/Lars
Relevant answer
Answer
Dear Lars
I agreed 100 % with you in that a Solver must identify unfeasibility, but my question is: How many solvers or MCDM methods do you know that have that capacity?
Only one: Linear Programming
The procedure is very simple: It compares criteria independent values, and if a solution satisfies these values. If only one criterion is not satisfied the project is unfeasible.
Nowadays, problems are 'solved' assuming that a problem is feasible, not taking into account that t hat circumstance may not exist.
I have read hundreds of comments and papers from our colleagues. How many of them posed this problem?
Nobody.
I wrote in RG almost a year ago about this problem, you can see it in my profile under the number 304, and again, in May 2020 under the number 318. Both have had some moderate reading but nobody came forward to acknowledge and discuss it. You are the only person that addresses that issue.
Regarding LocalSolver I know what it, is but my experience on it is null.
  • asked a question related to Linear Programming
Question
6 answers
Please suggest a collection of examples of Zimmerman approach to solve fuzzy linear programming problems?
Relevant answer
Answer
Thanks a lot sir for sharing this good content.
  • asked a question related to Linear Programming
Question
5 answers
Any bibliographic recommendations on the problem of routing vehicles with multiple deposits, homogeneous capacities? less than 10 nodes
Relevant answer
Answer
A multi-depot VRP with less than 10 nodes should be almost enumerable, as there exist less than 1024 possible subsets of customers. Given this fact, perhaps the simplest solution approach is to generate all feasible routes from each depot, discard those that are not TSP-optimal, and directly solve a set partitioning formulation based on these routes. Now, if you face larger problems (e.g., 15 nodes or more), you should use the formulations suggested by Adam and Noha, or even go for sophisticated branch-and-price approaches as described in
since the code associated with this paper is freely accessible at
  • asked a question related to Linear Programming
Question
7 answers
Hi, I have an optimization problem (primal problem) which is solved by the duality theorem. So I have constraints of the dual and its variable's value. it is worth mentioning the problem is linear. how can I calculate primal variables indirectly and by the dual answer?
Relevant answer
Answer
Thank you all friends. I added all the primal constraints with the strong duality constraint which connects primal and dual variables together. it worked and primal and dual variables were calculated simultaneously by the solver.
  • asked a question related to Linear Programming
Question
6 answers
I am formulating a multi-objective linear programming model. It is a pure linear program and I plan to only use scalars to convert multiple objectives into one single objective. Before then, I need to make sure the Pareto front is in a convex form. I know for MIP problems, it could be non-convex. Is the linear programming model a sufficient condition for the convex Pareto front? Thanks.
Relevant answer
Answer
I appreciate all above answers, and they are very helpful! Ralf Gollmer Gary Paul Martin Simpson Nuno Miguel Marques de Sousa Mohamed-Mourad Lafifi
  • asked a question related to Linear Programming
Question
11 answers
If I'm not wrong, there can be non linear programming problems solved by iteratively calling the simplex algorithm on a modified sub-problem.
Are there optimization problems which require both the primal and dual simplex?
Relevant answer
Answer
If you have solved one of the primal or dual LP problems, you can derive the solution to the other without having solved another problem - IF the problems are not degenerate - and that seldom appears in practice. But when they do occur, you have a simple solution to that bug also.
  • asked a question related to Linear Programming
Question
4 answers
Hi,
I am working on a MIP problem, my program runs too long or does not find the result as I change my parameters. I have been dealing for a long time, although I have made many changes to the code, I don't think of a solution anymore.
If you are interested, I can send my model and code.
Relevant answer
Answer
Hello,
You need to debug your code first. You may need to test each part of your code to see if you get any feasible results. For example, instead of the objective function, use a dummy function to check if the equations are correct. Moreover, disable all the constraints to see if your problem is defined correctly. Remove each equation one by one and check the effect on your results.
  • asked a question related to Linear Programming
Question
9 answers
Hello,
Recently, I was reading about several techniques that solves Unconstrained Mixed Integer Linear Programs (UM-ILP) using a meta-heuristic algorithm called simulated annealing. I was thinking about the Constrained zero-one ILP. I have a linear objective function with a linear set of equality/inequality constraints and I'm thinking about reformulating the problem using the kkt/Lagrangian function. However, I'm not sure if it is even the right approach given that my optimization problem have binary variables and it is linear and hence, solutions such as the penalty method and barrier log would work best for me. My goal is to transform a constrained problem to non-constrained then apply an optimization method like simulated annealing to solve my new formulation of the problem but i'm not really sure which method is even the right approach? Also from what I read the problem will not be a simple minimization problem anymore but instead a saddle point problem.
Thank you all for your time and replies.
Relevant answer
Answer
O.k., of course you can use any heuristic method. It will give you SOME result - and you'll never kow whether tar solution is even close to optimal.
I strongly support Michaelk Patriksson's reply: try a really good MIP solver like CPLEX or Gurobi (which are free for academic use). And only if these take too long or are even unable to find a feasible solution the usage of a heuristics is justified.
Btw. many of the heuristics have problems fulfilling linear constraints being no simple bounds....
  • asked a question related to Linear Programming
Question
3 answers
I want to run a MILP problem that is time dependent for a given duration (i.e. something like a for loop situation). I have parameters that change with time and the results from the previous simulation affect the next simulation. I am using CPLEX solver in MATLAB how can I achieve this.
Relevant answer
Answer
Good topic can please provide more information
  • asked a question related to Linear Programming
Question
3 answers
Some years ago I wrote some command line using linear programming to optimize production for table water company using table water and sachet water as two product and using production hours of the two and number workers with profit made as constraints, I need some help in changing my command lines to software algorithms in order to develop an useful and helpful App.
Relevant answer
Answer
You can simply use MSExcel data analysis tool pack to develop your optimization problem and solve. You can find lots of videos in YouTube. Good luck.
  • asked a question related to Linear Programming
Question
3 answers
A machine manufactures spare parts at the rate of 20, 000 per month. A second machine uses those spare parts at the rate 50 00 per month and remainder put into stock. It cost ₦100, 000 to set up the machine the company establish their stock hold costs 20% per annum of the average stock value each parts costs ₦250 to make. Required What batch size should be produced on the first machine and what frequency.
Relevant answer
Answer
Hey guys thanks, I later noticed it was an inventory problem and not an LPP. The student I was supposed to solve for said he wanted to solve an LPP but I later did more research and found it was an Inventory Problem. Thanks anyways.
  • asked a question related to Linear Programming
Question
9 answers
I have a question regarding making the dual of the MILP model. More precisely, I am working on the job-shop scheduling problem, and I want to have a dual problem of that.
How can I create the dual constraints for integer variables?
Relevant answer
Dear Dorsa Abdolhamidi, although I deviate a bit from your specific question, I recommend you check the link that I copied at the end. It is the product of a degree work on sequencing. There Daniel Da Corte makes a very good review of the literature on the subject, which can give you ideas to rethink your problem and arrive at a PPL. I have not continued working on the subject, but you can contact Da Corte, who is enrolled in Research Gate. I hope I have provided some help. Successes in your research.
Best regards,
José Hernández.
  • asked a question related to Linear Programming
Question
4 answers
I understand the idea of Best Worst Method for multi criteria decision making
and i know that there is a solver to get the weights but i need to understand the mathematical equation and know how to solve it with my own self.
Can any one help me?
{|𝑤𝐵 − 𝑎𝐵𝑗𝑤𝑗|} ≤ 𝜉L for all j
{|𝑤𝑗 − 𝑎𝑗𝑊𝑤𝑊|} ≤ 𝜉𝐿 for all j
Σ𝑤𝑗 = 1, 𝑤𝑗 ≥ 0 for all j
Relevant answer
Answer
Dear Nouran,
You can find the answer in this paper:
Best regards,
Sarbast
  • asked a question related to Linear Programming
Question
9 answers
I have formulated an Integer programming problem with around variables and 30 constraints. I observe that the relaxed LP takes same time to execute (around 5 minutes) as the original IP. How is it possible when Linear programming problem is polynomial time solvable and IP is not?
Relevant answer
Answer
Perhaps your IP is equivalent to an LP - for example single-commodity flows (including shortest path) are solvable as LP.
  • asked a question related to Linear Programming
Question
4 answers
Simplex method in linear programming.
Relevant answer
Answer
The Simplex algorithm is a mathematical tool primarily. Some statistical fitting problems can be cast as a linear program, but I consider this incidental.
  • asked a question related to Linear Programming
Question
5 answers
Based on your expertise, what is the better optimizer tool between GAMS ( https://www.gams.com/ ) and Gurobi ( https://www.gurobi.com/ )?
Please also let me know your field of research.
Relevant answer
Answer
GAMS itself is no solver, it is a modeling system with interfaces to a number of solvers - Gurobi being one of them.
So there is no point in trying to compare GAMS with any solver.
Gurobi is a solver for linear and (convex) quadratic mixed-integer problems.
GAMS has interfaces to solvers for different problem classes, too (like more general nonlinear optimization problems).
But if your problem is a MILP, you might compare the modeling via GAMS with the modeling via the Gurobi Python API.
I have worked with both (and with other modeling systems like AMPL, OPL and other solvers, especially CPLEX) in research on discrete stochastic optimization. The choice of the modeling interface depends simply on your preferences and the tasks to be performed (like modifying the problem according to the solution and solving a series of problems). If you are used to the GAMS language you might prefer it to others. GAMS and AMPL are not free software and you have to pay for many of the solvers for them, too.
Best regards
Ralf
  • asked a question related to Linear Programming
Question
15 answers
It will be helpful if you can give me some references if there are MINLP optimization problems solved by PSO.
Relevant answer
Answer
I think that rounding approach is the best, whether before evaluating the objective function or after evaluating the objective function because in both cases the reason for the same result occurs.
  • asked a question related to Linear Programming
Question
5 answers
What is the best commercially available non-linear optimization problem evolutionary solver/ algorithm?
Must be freely or easily obtainable.
Not necessarily free.
relatively Easy to install and use.
Anything better than excel solver's evolutionary algorithm?
Relevant answer
Answer
This question, like many others you have posted in the last few days, can all be answered in the same way: it depends on the problems you are wanting to solve.
I would suggest looking at the results of the Black Box Optimisation Benchmarks (BBOB).
There are many different algorithms that are compared and many are freely available via github, or from the authors of the codes. The tremendous advantage is that you can see how they perform on many different types of problems, some of which might be similar to what are wanting to solve in your own work. Furthermore, you won't have to trawl through reams of cloying self-assessment and self-appraisal of many commercial products which, not surprisingly, are always fulsome in praise of their own product.
  • asked a question related to Linear Programming
Question
4 answers
What impact does the initial solution have in the case of non-linear optimization problems and (solved by) evolutionary algorithms?
For instance, initial solutions have an impact with linear programming.
Would it have any effect to rerun a non-linear optimization problem after a certain or good initial solution was found (and the evolutionary algorithm stopped)? Particularly/ for example in cases with many possible local solutions, or local solutions rather close to each other.
Would the latest known initial/ best solution affect something like solution space sampling or local solution sampling?
Relevant answer
Answer
As recommended by Michael Patriksson, I also recommend that you attempt to solve (or get bounds for) at least small instances of your problem with mathematical programming algorithms such as COUENNE (https://projects.coin-or.org/Couenne) or other similar solvers. Beyond the insights on problem structure that you may learn in the process, this will also help to assess the solution quality of your metaheuristic on small datasets.
Now, regarding the impact of initial solutions in population-based search (e.g., genetic algorithms), you should have two general goals in mind: (1) diversity, (2) quality. For some problems, spending a lot of (coding and computational) effort to generate clever solutions is not worth it, as in a fraction of seconds your population-based algorithm may retrieve solutions of equally good or better quality. In such situations, ad-hoc construction techniques may even lead to reduce your population diversity without a clear benefit. For example, for some combinatorial optimization problems arising in transportation and logistics (vehicle routing problem), we had much more success with a randomized initial population subject to local search (equivalent to gradient descent in continuous space) as this would much better sample our search space. Moreover, diversity is important in the initial stages of the search as well as later on, and therefore should be actively preserved to avoid phenomenons of premature convergence.
  • asked a question related to Linear Programming
Question
4 answers
With non-linear optimization, when you are interested in the different possible local solutions, because it can help you towards the optimal (global) solution, and to identify the optimal solution, particularly when you have a hint or idea what it would or would not look like, what would be an effective way to surface possible local solutions?
Do you simply note and cross out the local solutions found, as they are found?
Is it simply a matter of your initial solution sample or set?
Relevant answer
Answer
You do not have to implement it by yourself. Many solvers have already built-in multistart routines. For example:
  • Matlab uses the scatter search algorithm to sample initial points (Glover, F. “A template for scatter search and path relinking.” Artificial Evolution (J.-K. Hao, E.Lutton, E.Ronald, M.Schoenauer, D.Snyers, eds.). Lecture Notes in Computer Science, 1363, Springer, Berlin/Heidelberg, 1998, pp. 13–54.) See: https://fr.mathworks.com/help/gads/how-globalsearch-and-multistart-work.html#bsfvjv8
  • Excel, Pyomo or Aimms have such routines.
  • asked a question related to Linear Programming
Question
3 answers
what is the best way to search or interrogate an initial solution of a non-linear optimization problem you (strongly) believe is close to the optimal solution?
is there a better approach or strategy than to incrementally or iteratively increase a band of floors and ceilings around the initial solution, until this no longer has any effect? this approach should be better than starting with a wide band around the initial solution from the onset?
Relevant answer
Answer
Not for the chance of plugging a paper written me and a colleague, but the link below is a thorough analysis of what optimality means:
The above is the last preprint - here is the permanent link to Oper Res:
  • asked a question related to Linear Programming
Question
9 answers
What is the best way to choose initial solutions for a non-linear optimization problem sensitive to the initial solution?
If you have a significant number of optimization problem coefficients (50 in this case), and your optimization problem is such (non-linear with multiple possible local solutions) that it is sensitive to the initial solution, what are the best ways to choose (a set of) initial solutions?
Will the excel solver evolutionary algorithm do this?
Relevant answer
Answer
Optimization algorithms are really pretty simple. Just keep climbing up the hill until you get to the top. Take some precautions to make sure your step size isn't too big and try many different starting points far away form the optimum to make sure you have found the true optimum an not just a local optimum.
  • asked a question related to Linear Programming
Question
3 answers
With a non-linear optimization problem, can insensitivity to the initial solution be interpreted as a global solution, or (high) probability of a global solution?
Relevant answer
Answer
As I indicated in my answer to your previous similar question, you have to demonstrate insensitivity to initial solution (or starting search points) for at least a few dozens of them or more, not just a few of them. Your initial solutions (starting search points) must be random uniformly distributed points in the multidimensional solution domain. Again, there is no rigorous proof that your solution found this way is the global one. You may only state that there is a high probability that it is the global (but not 100%). The more initial solutions were use the higher that probability.
  • asked a question related to Linear Programming
Question
3 answers
PLEASE Refer to Document containing Data Set
Suppose that the minimum number of security staff required at different hours are at the ith hour (i=1,2,…,24) are outlined as follows (refer to doc)
I'm not able to figure out how to develop a model for this issue and I need assistance in developing a linear programming model to minimize total cost.
  • asked a question related to Linear Programming
Question
3 answers
This may be a repeat of a previous question i asked, but i want to make such a statement in a paper, and want to evaluate if it can be refuted beforehand:
Are there (non-linear) optimization problems where it is not/ no longer possible to walk from one local solution, to a better local solution?
And can one define the global solution in this way - the inability to walk from a local solution to a better local solution?
Then, Can one base this on higher order partial derivatives?
I am currently using higher order partial derivatives to indicate if steps are still possible, post excel solver NLP (and evolutionary), and to identify such steps.
If i obtain steps still possible this way, i am walking to better solutions.
If i no longer am able to identify steps through higher order partial derivatives, can i say i have reached the global solution?
A higher order partial derivative would be the delta in objective function in response to a delta change in 3 or more coefficients. It differs from 2nd order partial derivatives, and this is evident when you consider the actual calculation.
Relevant answer
Answer
I would not make such a statement in a paper. It can be easily be refuted.
If an algorithm is unable to walk from a local solution to a better local solution, it only means that it locally converges. The global solution could be far away from that local one.
In general, I would use a set of uniformly random starting points for finding a set of local optimal solutions. If these local solutions found from different starting points are close enough to each other (or the same), then it is likely that this is the global solution. The more random starting points you use (the bigger the density of the starting points in the solution domain) the higher the probability that the solution is global. However, there is no rigorous proof of that. This will be just a heuristic judgement.
I would refrain from the use of higher order partial derivatives (higher than 2). Numerical calculation of high order partial derivatives is computationally unstable, lose the numerical accuracy very fast, up to total non-usability for deciding on the new step in search of the solution.
  • asked a question related to Linear Programming
Question
4 answers
Why would an (the excel) evolutionary algorithm be better at, or simply be able to, solve what seems to be a linear problem, when the LP (and also NLP) algorithm struggle to, or simply fail to.
The problem is of the form:
Max X; X = x1 + x2 + x3...
x1 = (k1 × z1) + (k2 x z2) + (k3 x z3)...
x2 = (k1 x y1) + (k2 x y2) + (k3 x y3)...
x3 = (k1 x q1) + (k2 x q2) + (k3 x q3)...
k are the coefficients of the problem to optimize; z, y, q are factors and are given/ constants.
The evolutionary algorithm can find a (better) solution (to the initial solution). The LP algorithm occasionally finds a solution, and not better (mostly worse) than the evolutionary algorithm. The NLP algorithm does not really find a solution at all.
Relevant answer
Answer
You problem is equivalent to (if I understand your notation):
X=k1(z1+y1+q1)+k2(z2+y2+q2)+k3(z3+y3+q3)->max
If z, y, q are given constants, then their sums are also given constants, say K1, K2, K3
X=k1*K1 + k2*K2 +k3*K3 ->max
There are no constraints for the decision variables k1, k2, k3.
This is a linear form that is maximized as these variables take unlimited max values......, hence there is no unique solution. Something is missing in your problem statement.
  • asked a question related to Linear Programming
Question
6 answers
Can higher order partial derivatives be used to move non-linear programming problems from local solutions towards the global solution?
That is, Partial derivatives of order greater than 2nd order.
Relevant answer
Answer
I would suggest to make your initial point (initial solution) better. Probably your solver from current initial point only finds local optima.
  • asked a question related to Linear Programming
Question
3 answers
Suppose we have a linear programming model in the below:
Model:
Max = 3*x1+5*x2
x1 <= 4
3*x1 + 2* x2 <= 18
x1, x2 >=0
Calc:
! I would like to do some calculation here using to the optimization result obtain from the above model
For example: Y = x1+ x2
EndCalc
End
Any answer will be appreciated, thanks
Relevant answer
Answer
It's called an accounting row. It is an equation that simply adds things up.
x1 + x2 - Y = 0
Later, these things that are added up can also be constrained.
Y < 100
or
Y > 10
  • asked a question related to Linear Programming
Question
4 answers
Few days earlier on a project presentation on Stochastic Programming Real life applications, i constructed 3 real life scenario based Stochastic Models: A Farmer's Problem, Container Allotment Problem and another on Stochastic Arc Routing. Also solved them for particular scenario.
As stochastic linear programs are lengthy programs with a lot of constraints, it is long-time process to solve a stochastic linear program. And therefore i used LINDO solver to solve the problem. I have a L-shaped algorithm based example too.
But the examiner said me that, why you didn't used the general solving procedure to solve these LP problems? I explained about the long programs and complexity. In reply, I found complement that all credit goes to the LINDO solver, not you.
I am wondering that advances in Science could make our works easier and faster. Shouldn't we take these type of advances in our daily life?
Relevant answer
Answer
Yes, there are a number of softwares which can solve linear programming problem in a click giving the optimal solution or an indication of in-feasibility or unbounded solution. But, that is second stage. First stage is to learn the basics of linear programming solution procedures i.e. graphical method and Simplex method. The students will have in-depth knowledge of such procedures by manually solving them. Once got acquainted with the procedure, they can use software like Lindo, Matlab etc. to solve the complex LP problems which can not be handled manually.
  • asked a question related to Linear Programming
Question
12 answers
Is linear programming one part of convex optimization?
Relevant answer
Answer
Convex optimization involves minimizing a convex objective function (or maximizing a concave objective function) over a convex set of constraints.
Linear programming is a special case of convex optimization where the objective function is linear and the constraints consist of linear equalities and inequalities.
Nonlinear programming concerns optimization where at least one of the objective function and constraints is nonlinear.
(Adapted from Mathematical optimization: Major subfields on Wikipedia.)
Therefore, convex optimization overlaps both linear and nonlinear programming, being a proper superset of the former and a proper subset of the latter. However, note that nonlinear programming, while technically including convex optimization (and excluding linear programming), can be used to refer to situations where the problem is not known to be convex (see Boyd and Vandenberghe, p. 9, below). Hence, it may be more useful in practice to think of a hierarchy: linear - convex - nonlinear. Another useful view is given by the following quote, kindly supplied by littleO: "The great watershed in optimization isn't between linearity and nonlinearity, but convexity and nonconvexity." -- R. Tyrrell Rockafellar, in SIAM Review, 1993
  • asked a question related to Linear Programming
Question
4 answers
Deterministic Global optimization relies on convex relaxation of the non-convex problems. Certain nonlinearities are duly converted into linear forms underestimators to be solved by efficient MILP solvers (e.g. signomial functions/ bilinear terms).
Most nonlinearityies are approximated to linear functions by piece-wise linearizations. However, I am wondering if this linearizations guarantees that the approximations are understimators of the original nonconvex problem (i.e. for all x in Domf, f(x) >= u(x) where u is the understimator)
because otherwise the understimator may miss the global optimum during the branch and bound process.
Can the solver still converge even if the relaxation is not an understimator?
Relevant answer
Answer
That's right. More precisely, if an inequality is of "<=" type, we use convex under-estimators for the left-hand side. If the inequality is of ">=" type, we use concave over-estimators (or you can just multiply the inequality by -1).
McCormick's original paper (from 1972) explains this very well. So does this paper:
Ryoo, H. S., & Sahinidis, N. V. (1996). A branch-and-reduce approach to global optimization. Journal of global optimization, 8(2), 107-138.
  • asked a question related to Linear Programming
Question
3 answers
Is there essentially a difference? Which one is optimal or low complexity ? is here a relation with the rank?
Relevant answer
Answer
Please have a look at this attached chapter and hopefully you find your answer
  • asked a question related to Linear Programming
Question
14 answers
I have been reading about performing sensitivity analysis of the solution of Linear Programming problem (calculating shadow prices, reduced costs and intervals within which the basic solution remains valid). It is clearly described on academical problems with 2 or 3 variables, but in fact, when tried to apply the same logic for real-life, scalable problem, I didn't get promising results. This is because only a few of variables values matters for me, while other are rather placed for another purposes (like changing hard constraints to soft ones etc). But all of them are taken into account when checking if basic solution has changed, hence the interval that is returned by a solver is a way more narrow than I want it to be.
Where can I find an example of real applied sensitivity analysis, if there is any?
Relevant answer
Answer
Thank you Katarzyna
I believe that we have a misunderstanding.
I agree with your definition of variables, but I DON’T CALL as ‘criterion’ an objective function. NOT in LP, although YES in SIMUS, because in this method criteria and objective functions are interchangeable.
But in general, in MCDM, my definition of criterion or constraint is exactly the same as yours, as well as your definition of performance values. However, if it is true that criteria ‘constrain’ the alternatives, I prefer to use the term ‘constrain’ for the values which are limits or thresholds of criteria, that is, the RHSs, because they constrain the range of validity of criteria. In reality, criteria ‘force’ the alternatives to respect some conditions, which in turn may be high or low, and bounded by the RHSs.
You mentioned before that you had 2500 variables or alternatives, and you say that there are 3 production units; does it mean that each production unit may have many alternatives?
Can a particular alternative, be replicated in any number of production units? For instance, alternative 789 can be in units A and C, or even in A, B and C, while other alternatives may only be in one of them?
When you say that other variables are placed, are you referring to artificial and slack variables? If this is so, it is strange, since the solver adds them automatically, or maybe I did not understand your statement.
I assume that you want to know how production of unit B changes when you modify the RHS of some constants, for instance # 1.
What do you mean by ‘I display’ constraint #1 up, constraint 1, and constrain # 1 down? I understand that you want to say is that you can put low and high limits for constraint # 1. Is this correct?
I have two questions for this:
1. Why you consider a constrain 1, when if you have low and high limits defined by ≥ and ≤ operators respectively, constraint 1 is included in the range? In my opinion that arrangement may cause you to get an infeasible solution, because if the model select a value between the two ends, how does it manage to also comply with constraint 1, which I imagine has the ‘=’ operator?
2. How do you know that constraint 1 or any other is the one you have to work with? It could very well be that said constraint does not have any influence in the alternatives selected. That is, you have to work with the criteria that are responsible for the selection, maybe one or several. Once determined, you will have the certainty that these will change the solution found. If you work with constraint that are not relevant, you can increment and decrement by changing their RHSs, and you will see that there will be no change in the selection.
This information, as you know, is in the dual, or you can see directly in the Solver screen for sensitivity analysis (SA). Of course, you know all of this, but my comment derives because you don’t explain why criterion 1 is selected for SA.
No, I was not referring to the objective function Z coefficients. I am referring to changes in the RHSs.
To your question, my answer is that yes, you can. Each time you modify the RHS of a binding constraint and use the Simplex, you can immediately see the new values of the alternatives.
It is extremely useful to work at the same time with the dual, and once you get the new values for the alternatives go to ‘sensitivity’ (in Solver you have to run the Solver twice for each RHS change, the first gives you the new alternative values, and then you have to run it again in order to get the sensitivity analysis screen), that gives a lot of information, such as the shadow prices, the relevant criteria, the validity range for each shadow price, as well as the reduced costs.
For my software, don’t worry, you can have it any time you want.
I understand that there is a mistake when you say that the slope is determined by the reduced cost value.
The slope is given by the shadow prices. The reduced cost tells you how much you have to modify a coefficient in the objective function in order that the corresponding alternative enters in the solution. Observe that the reduced cost for selected variables is zero.
Outside the range nothing happens, because the criteria that you were using is no longer binding, and the alternative keeps it last value.
In your next paragraph, you say: ‘But if I change RHS to some value outside of the range, I can see that indeed, basis have been changed as well, but the change is related to, for example, a variable indicating the production in unit A jumped from 50 to 0’.
Yes, you are right, if the base changes, there will be another variable instead of A, and this one will be zero.
The jump from 50 to 0, means that when the upper/lower limit of the range is exceeded, that variable no longer belongs to the solution, and since Z is equal to de sum of the products between the aijs and the solution found, and A is no longer in the solution, its value is zero, but the variable keeps it last value..
I am attaching a worksheet for an example that I did years ago, with two alternatives A1 and A2, subject two five criteria and which objective was to maximize production.
The first optimal result indicates that A3=0.16 and A6 = 1.22. This result is showing a Z=52,000 and that the corresponding criteria are C2 and C3.
Observe that:
· C2 has as shadow price (λ2) = 0.07 and C3 a shadow price of (λ3) = 17.95.
· Solver also shows that maximum increment for λ3 is 429, while the maximum increment for λ2 is 48.
Consequently, the upper limit for C3 = 335 (Its RHS) + 429 = 764 and for C2= 559 (Its RHS) + 48 =607.
· If we consider only C3 and we increase its RHS, as shown in the Excel spreadsheet (we can increase in any appropriate amount even if not equal). Observe how the A3 value progressively rises up to 2.74, which corresponds to the upper limit of C3, that is 764.
· Both λ3 and λ2 keep constant along the whole procedure
· Simultaneously the value or score of A6 progressively decreases from 1.22 up to 0, for RHS3 = 764.
· The original upper limit of RHS3 decreases from 420 to 0, for RHS3 = 764.
Correspondingly the original upper limit of RHS2 increases from 48 to 825, for RHS3= 764.
· If the value of 764 is surpassed, say we put 765, alternative A3 keeps its value, since C3 does not have influence on it, however A6 = 0, meaning that this alternative it is no longer a solution, however, notice that λ3= 0 while λ2= 24.61, after the 764 limit is reached.
In fact, we should change RHS3 and RHS2 simultaneously, each one with its own increments/or decrements, and then the performance curve will be the result of both acting at the same time, as in real-world scenarios.
The graphic shows Z performance curve with the λ3. It appears as a broken straight line because I was using different amounts of increments for RHS3, since
I believe that this elemental example shows you how the range is diminishing in the selected alternative
Now, if you want to keep the original production of B unchanged, why don’t you express it as a new constraint, using the binary format, that is in this criterion all alternatives are zero, except B which is 1.
If you have a value in mind for B, say for instance 820,you put it as the RHS, and indicate with the ≥, ≤, or = operators if you want to get a result for B larger than 820, or lower than 820, or equal to 820, respectively.
However, I would stay away from the equality, because it imposes very hard restrictions to the problem.
I sincerely hope that my comments help you, and indeed, I am very interested if you can keep me informed me if it works
  • asked a question related to Linear Programming
Question
16 answers
Hi,
In minimizing the difference between two variables inside an absolute term e.g., Min |a-b| . How to make the term linear so that can be solved by LP or MILP . Where a and b are free integer variable (they take positive and negative values).
Relevant answer
Answer
To minimise |V-1|, where V is a positive continuous variable, just minimise x subject to x >= V-1 and x >= 1- V.
  • asked a question related to Linear Programming
Question
6 answers
Please give their appropriate cases.
Relevant answer
Answer
we can chose linear or dual dependent to conditional constrants
  • asked a question related to Linear Programming
Question
13 answers
The constraints include both linear constraints and nonlinear constraints. The essential issue lies in to how to deal with the nonlinear constraints.
It would be better if this algorithm can transform these nonlinear constraints into the equivalent linear ones.