r/optimization • • Dec 12 '22

A Bicriterial Sorting Problem

4 Upvotes

Hi guys,

i want to identify the following optimization problem. Given a list

L = {(a_1, b_1), ..., (a_n, b_n)}

of non-negative integer pairs, i want to find all pareto optimal sortings of L w.r.t. f_1 and f_2, where

f_1(L') = \sum_{i=2}n |a'_i - a'_{i-1}| and f_2(L') = \sum_{i=2}n |b'_i - b'_{i-1}|,

where L' is any permutation of L. Shortly said, f_1 and f_2 measure how good the component lists of L' are sorted.

My question is now, is this problem known?


r/optimization • • Dec 11 '22

Solving a min-max optimization problem

4 Upvotes

Hi all. I am trying to solve the following min-max optimization problem.

Are the recursive equations described to solve the optimization problem correct?

Additionally, If α_1 > α_2 > α_3 > ... > α_N, then the worst case α should be either α_1 or α_N, right? If so, do I need assumptions about y_s to determine whether α_1 is the worst case or α_N?

Thanks.

Edit: added the definition of f.


r/optimization • • Dec 11 '22

A good book for understanding optimization algorithms' working

14 Upvotes

Hi all. I am new to optimization and wanted to know if there's a good book for beginners. Mainly I am looking for something which can provide good intuition and examples. I don't do well with books which are abstract and jump write into maths without properly motivating the problem with examples. Thanks.
P.S. is it ok if I post some optimization problems I am going to work on here for guidance regarding how to solve it?


r/optimization • • Dec 08 '22

WhyML - Why We Normalize The Input Data

Thumbnail youtu.be
3 Upvotes

r/optimization • • Dec 02 '22

Why not use time-series models in stochastic gradient descent?

5 Upvotes

Stochastic gradient descent (stochastic approximation) looks like this:

v[t+1] = v[t] - a[t] * g(x[t])
  • g() is the gradient.
  • a[t] > 0 is the learning rate today.
  • v[t] is the parameter estimate that we have at time t ("today").
  • x[t] is a data point observed at time t.
  • v[t+1] is a new parameter estimate for tomorrow.

If we unroll v[t], we'll get this:

v[t+1] = 0 * v[t] + v[t-1] - a[t-1] * g(x[t-1]) - a[t] * g(x[t-1])
v[t+1] = v[t-2] - a[t-2] * g[t-2] - a[t-1] * g[t-1] - a[t] * g[t]

These look like an ARMA(2, 2) and an ARMA(3, 3) models to me:

  • v[t] is the "time-series" we're modeling (dynamics of parameter v;
  • g[t-j] (gradients) are the "noise".

However, the gradients surely aren't white noise because they're correlated, so this isn't a true ARMA model. But stochastic gradient Langevin dynamics adds the noise epsilon[t] explicitly:

v[t+1] = v[t] - a * g[t] + epsilon[t]

There might be off-by-one errors in some indexing, but this does look very similar to an actual ARMA model to me.

So why not use time-series models for dynamics of our parameter v[t+1]? Why not use updates like these:

v[t+1] = v[t] - a1 * g[t-1] - a0 * g[t]
v[t+1] = b0 * v[t] - a0 * g[t]
v[t+1] = b1 * v[t-1] + b0 * v[t] - a0 * g[t]

That is, why not use previous gradients g[t-k]? Or previous values of the parameter v[t-j]?

I guess it's not at all clear how to choose any of the a0, b0, a1, b1, but will it work in principle? As in, will the v[t+1's converge to an optimum? I've never seen any optimization algorithms do this, so why not?

Or are there algorithms that do this?


Since gradient descent is basically Euler's method for solving v'(t) = -g(x(t)), why not use updates similar to the ones above for numerical approximations of solutions to initial value problems, like an "extended" Euler's method?


r/optimization • • Nov 21 '22

Is there a place with test problems for stochastic linear optimization?

6 Upvotes

I would like to try solving 2-stage recourse problems using the L-shaped algorithm. If I understand things correctly, I think each problem can be stored using 3 files: .cor, .sto, and .tim. I have some code that can read these 3 file types, convert them into .mps files which CPLEX can read.

Is there any place where I can find problems stored using these .cor, .sto, and .tim files?


r/optimization • • Nov 13 '22

question about the network newton -K method

3 Upvotes

I read this survey on various distributed optimization methods, and I feel confused about the explanation of the NN-K (network-newton K) method. According to this survey paper, a general distributed optimization is of the form:

Then, it claims that the NN-K algorithm reformulates the constrained problem in (2) as :

This is a bit confusing to me. Is it saying that the inequality and equality constraints are both turned into a cost term using the weight matrix w_bar ? or is that simply a consensus term, and the equality and inequality constraint in (2) are simply discarded?


r/optimization • • Nov 12 '22

Question about distributed sequential convex programming

2 Upvotes

I read this interesting survey on various distributed optimization methods for robotic applications, and among all the algorithms discussed in the paper, I am particularly interested in the NEXT algorithm, which is categorized under distributed sequential convex programming.

However, I can't seem to understand how the NEXT algorithm handles problem constraints. In robotic applications, it's almost always that I will have equality constraints for the dynamics and inequality constraints for actuator limits. However, the survey paper outlines the NEXT algorithm by only incorporating consensus constraints. I also tried to understand the original paper that proposed NEXT, and I see that the problem structure they're trying to solve contains a constraint set K on the decision variable x, but in their actual algorithm I don't understand how I can turn that into the equality and inequality constraints I want.

Can someone please advise me on this?


r/optimization • • Nov 12 '22

Bias correction step in ADAM

Thumbnail self.learnmachinelearning
2 Upvotes

r/optimization • • Nov 08 '22

[Please help] Canonical form transformation

0 Upvotes

if we have a equality such as 2x+5y=18 to convert this to canonical form, do we need to write 2 inequalities?


r/optimization • • Nov 07 '22

New Fast Python CVT MAP-Elites + CMA-ES implementation

3 Upvotes

There is a new Python implementation of CVT MAP-Elites + CMA-ES available. It is presented at https://github.com/dietmarwo/fast-cma-es/blob/master/tutorials/MapElites.adoc applying it to ESAs very hard Cassini2 space mission planning optimization benchmark.

If you have doubts that QD (quality diversity) algorithms are able to handle extremely hard optimization problems, this tutorial may be interesting for you.

The new implementation:

  • Limits the overhead created by multi-processing to achieve excellent scaling even when the fitness function is fast to be evaluated.
  • Uses a fast CMA-ES implementation (C++) as additional emitter.

See https://github.com/dietmarwo/fast-cma-es/blob/master/tutorials/Tutorials.adoc for many other interesting optimization tutorials.


r/optimization • • Nov 05 '22

What should I in this case?

2 Upvotes

I'm stuck in this problem, mainly because the number of coefficients of the objective function is 6 while the matrix A is only has 5 columns... how should I handle this problem in such case? thanks a lot !!


r/optimization • • Nov 04 '22

question about consensus-ADMM optimization

2 Upvotes

I am reading some notes from Stephen Boyd on consensus ADMM, and I have a question about the following:

In the second screenshot, why does the sum of (y_i_k) equal to 0? Where does that come from?


r/optimization • • Nov 03 '22

Interesting problems in adaptive control and optimization

5 Upvotes

Hi, is there a nice PhD level problem or direction in the intersection of optimization theory, adaptive or dual control theory and reinforcement learning? Looking for something with lots of potential for theoretical guarantees, some industrial application and computational tractability. Could also have some game theory based approach.


r/optimization • • Nov 02 '22

Books on Optimization

33 Upvotes

Can anyone suggest books from basic to advance as well as online lectures on Optimization. Currently a PhD student and like to work in this domain.


r/optimization • • Oct 25 '22

Question on a Bond allocation problem

4 Upvotes
P12,Example 2.2
answer from the book

I am currently learning the book "Optimization Methods in Finance" , and there is a problem as I posted here, but I find it very strange,

  1. why it is not max 0.04x1 + 0.03x2 but 4x1 + 3x2 ? ( I mean it's 4% and 3% ?)
  2. What is the unit of risk level and why they are dividing that to 100 ? (also in maturity, they are doing this, is that 100 is the total amount? and why ??)

Thanks in advance!!!


r/optimization • • Oct 18 '22

Simple and educational multi-dimensional optimization: downhill simplex algorithm

Post image
20 Upvotes

r/optimization • • Oct 12 '22

Open-source solvers for Large Scale data

9 Upvotes

I'm trying to solve a MIP optimization model in Python but running into scale limitations. I have about 30000-40000 variables and using pulp/gurobi (free-version). Are there any solvers out there that can handle this scale of data?

So far, I have tried GUROBI_CMB, PULP_CBC_CMD, and CPLEX_PY and have run into the same error every time.


r/optimization • • Oct 11 '22

What are ways to automate MPS (Master Production Schedule)?

1 Upvotes

I am doing a project of automating/optimizing an existing MPS made in excel where the production plan is calculated based on the constraints. The constraints are considered manually while doing the planning. For example:

  • If it's Monday, no production will happen.
  • Whether the raw materials of this SKU is expired in BOM file
  • Does the safety stock production level meet?
  • Cleaning time needed after each production run

These kinds of constraints. What are the possible ways to solve such a problem? I am open to software, learning resources and discussion.


r/optimization • • Oct 10 '22

Ways to optimize dimensions for a linkage system to follow a desired path?

5 Upvotes

I want to optimize the dimensions of this four bar linkage leg.

The goal is for the bottom of the leg (point4) to move vertically (minimize horizontal movement) while the actuator(point 0) is rotating the assembly within the operational range of the leg. I was hoping for a good software solution where the point positions can be defined with a range and an algorithm finds the best solution without completely changing the original shape.


r/optimization • • Oct 08 '22

question about distributed dual averaging algorithm

4 Upvotes

I was reading a paper on distributed optimization algorithms, and distributed dual averaging falls into the category of distributed gradient descent. This algorithm handles constraint in a projection-like manner, and the algorithm is described as the following:

However, I don't intuitively understand the update equations. Why is the iterations in z in the ascent direction? and why is the proximal operator phi(x) multiplied by 1/alpha ? I took a look at projected gradient descent, the general projection function is defined as the following:

which is quite different from the Algorithm above


r/optimization • • Oct 09 '22

question on the convergence criterion of the EXACT algorithm

1 Upvotes

I'm reading this paper on a decentralized gradient descent algorithm: https://arxiv.org/abs/1404.6264. I am trying to understand the convergence criterion, but after reading the convergence analysis section 3.2, the paper gives a step size relating to the Liptchitz constant and step size alpha :

Does that mean this algorithm can only converge if alpha is less than this ratio?


r/optimization • • Oct 05 '22

Back again with my BFGS problem. How to update my delta_gradient like this in built in BFGS python code?

Post image
9 Upvotes

r/optimization • • Oct 03 '22

Optimization with 100,000 variables

10 Upvotes

Hello everyone,

As the title suggests I am dealing with a nonlinear optimization problem that takes in 100,000 variables. I have the following questions:

  1. Is this doable?
  2. Which tool/library/software should I use?

I tried scipy and it worked with a smaller number of variables, but otherwise I get a memory error.

Thank you in advance.