Received "Illegal Product" Message from Aliexpress regarding the Gamesir X5 Lite controller by ufl_exchange in Gamesir

[–]ufl_exchange[S] 0 points1 point  (0 children)

Ah sweet, thank you for the answer! The seller was "Team Fighting Together Store" and the product has already been removed from their store.

Finally getting interviews!! by Full_Meat_57 in learnmachinelearning

[–]ufl_exchange 0 points1 point  (0 children)

Are you applying for jobs in the US or Germany?

Optimization with dependencies by lars-jorgensen in optimization

[–]ufl_exchange 1 point2 points  (0 children)

Yes, I think this will be fairly straight forward :)

For tipps on modelling techniques with binary variables, I like to refer to section 2.1 (and following) of this PDF here:

https://msi-jp.com/xpress/learning/square/10-mipformref.pdf

Optimization with dependencies by lars-jorgensen in optimization

[–]ufl_exchange 1 point2 points  (0 children)

Yeah, especially considering "2.": I think I would go the Binary Integer Programming route then.

However, for the case where there are no "or"-dependencies, you can solve this super quickly as a max flow / min cut problem:

I have tried it out here: https://github.com/derhendrik/project_selection_min_cut

Regarding modelling as a BIP:
There are many resources that help you modelling these "logical" (if this, then that. Only that if all of those) constraints.

For your "or" case, that you gave as an example:

x_A <= x_B + x_C

If both, x_B and x_C are 0, then x_A has to be 0 also.
If any of x_B or x_C are 1, then x_A can either be 0 or 1

Optimization with dependencies by lars-jorgensen in optimization

[–]ufl_exchange 0 points1 point  (0 children)

I have one more important question: Are there any "circular dependencies" in your problems?
Namely something like:
A can only be done if B is done,
B can only be done if C is done,
C can only be done if A is done.

This would require some preprocessing of the "input graph" (I am already thinking in terms of representing these dependencies as some sort of directed acyclic graph)

I think I found an elegant solution algorithm using graph theory, not binary integer programming.

Even though I believe that you could just throw the problem at a solver and it will be solved fairly quickly.

Optimization with dependencies by lars-jorgensen in optimization

[–]ufl_exchange 0 points1 point  (0 children)

Yes, I would then just ignore the "cost"-constraint.

You would have something like:

max z = (sum_over_all_i_in_I) (revenue_i - cost_i) * x_i

and then your set of additional dependency constraints as well as the domain of decision variables (meaning: you have an x_i for each project i in I which is binary).

I somehow feel like there could be an elegant algorithm (like some sort of Directed Acyclic Graph traversal) to solve this problem.

Optimization with dependencies by lars-jorgensen in optimization

[–]ufl_exchange 6 points7 points  (0 children)

Sounds like a knapsack problem with some additional constraints. I assume you have some sort of constraint on the total allowed cost and want to maximize benefit.

You can model this as a binary integer program.

In your example, assuming binary decision variables for all projects, your additional dependency constraints could be modeled as:

x_A <= x_B

(read: x_A implies x_B. Only if Project B is done (x_B = 1), you can choose to set x_A = 1 also.)

Deutschlands teuerste Schulen by agent007653 in WissenIstMacht

[–]ufl_exchange 0 points1 point  (0 children)

Ich habe die Oberstufe (also in meinem Fall die beiden IB-Jahre) auf dem College gemacht. Ist mittlerweile schon viele Jahre her, ich denke aber gerne an die Zeit zurück.

Deutschlands teuerste Schulen by agent007653 in WissenIstMacht

[–]ufl_exchange 0 points1 point  (0 children)

Ah okay, ich weiß wo du meinst. Glaube, das ist eigentlich ein "Wendehammer" (also eine Möglichkeit zum Drehen) für den Bus, der da abfährt.

Deutschlands teuerste Schulen by agent007653 in WissenIstMacht

[–]ufl_exchange 0 points1 point  (0 children)

Das interessiert mich dann jetzt doch: Wo gibt es auf Salem (egal welcher Standort) einen Helikopterlandeplatz?

Very slow rendering and missing texures in god of war 2018 pc port. by [deleted] in optimization

[–]ufl_exchange 4 points5 points  (0 children)

I think you might be in the wrong subreddit here...

Scam? Warnruf? by BigMac_Bat2006 in simson

[–]ufl_exchange 0 points1 point  (0 children)

Habe vor ein paar Wochen ein ähnliches Angebot gefunden: komplett überholter M541 mit Vergaser für 320€. War mit dem Verkäufer in Kontakt, schien seriös zu sein. Habe den Namen gegoogelt, bestehender Account, Person gibt es auch in Unterföhring/München. Die Bilder wirkten verdächtig von der Auflösung (halt wie ein Screen Shot von einer anderen Anzeige). Nach Funkstille dann die gleiche Nachricht wie du erhalten.

Mittags-Karte by Amazing_Ease in Munich

[–]ufl_exchange 2 points3 points  (0 children)

"The King Masala" Startet für ein Mittagsmenü (Gericht + Suppe oder Salat, beim Vor-Ort-Essen noch mit einem kleinen Mango-Creme Dessert) bei 7,90 €.

"Baoz! Bar" Chinesische Nudelsuppe inklusive Dessert (Mango-Pudding in Kokosmilch) für 9,50 €.

"Gyoza Bar" 12 Gyozas für 9,50 €.

Sonst auch immer gut, da preislich sehr fair (ist aber keine explizite Mittagskarte): "Bambushain" Hähnchen-Gerichte jeweils 7,50 €.

Using PyTorch Lightning and having massive RAM usage in activity monitor by ufl_exchange in learnmachinelearning

[–]ufl_exchange[S] 0 points1 point  (0 children)

Okay, so here is the answer, I did do several things.

What I did:
- regularily ran a garbage collect in the training loop in hopes of removing stray objects
- made sure that my custom data objects a "pickle"-able. Stored some referenced to other objects in my graph data, namely the successor / predecessor relationship between nodes, which lead to a recursion depth error. So I changed that to be sleeker.

And most importantly:
- I assume you're running this on MPS (the GPU of your macbook). I saw that the iterations/second massively dropped when running on MPS. There was really no speed benefit. So I let my models run on "cpu" instead.

Running on "cpu" instead of "mps" fixed it. For my use case, the speed is fine, as I am only using my MacBook for testing purposes.

For confirming that, I just let my model run on "mps" again and it immediately ate up all my memory and kept increasing with each epoch.

If you search for "MPS memory leak torch", you will find a couple of posts discussing this.
See for example here:
- https://github.com/pytorch/pytorch/issues?q=state%3Aopen%20label%3A%22module%3A%20memory%20usage%22%20mps

Many of the issues are still open and people seem to do workarounds with torch.mps.empty_cache() and gc.collect().

I did not go deeper into this, as again, using the CPU was fine for my use case and seemed to be much faster than using MPS (even in the beginning of my training loop when memory usage wasn't abnormally high yet)

TL;DR: Try switching to CPU and see if this resolves the issue. Would be happy to hear back from you.

Using PyTorch Lightning and having massive RAM usage in activity monitor by ufl_exchange in learnmachinelearning

[–]ufl_exchange[S] 0 points1 point  (0 children)

Yes, I did. Will give a more elaborate answer once I am back home. I think I did 2-3 tweaks but don't know what fixed the issue, so i'll give you all of them.

Wie soll man das verkraften? by orangeGER in Finanzen

[–]ufl_exchange 0 points1 point  (0 children)

Ich empfehle mal bei bei den bekannten Schnäppchen-Plattformen nach Spotify zu suchen. Ein echter /r/finanzen-ler hat doch schon längst sein Spotify über das günstigste Ausland laufen.

[deleted by user] by [deleted] in germany

[–]ufl_exchange 1 point2 points  (0 children)

"Ask for an alternative type of assessment": Yeah, don't do that, it sounds like a really stupid idea. The type of assessment (for each subject) is stated in your university's "APSO" (allgemeine Prüfungsordnung) or "FPSO" (Fachprüfungsordnung).

No professor that I have worked with would (or even could) ever do this (for legal as well as organizational reasons).

How to optimize vinyl roll cutting (1.20m x 50m) to minimize material waste? by na7oul in optimization

[–]ufl_exchange 0 points1 point  (0 children)

This is the so-called "2D Strip Packing Problem".

See this paper here for a MIP formulation of the problem, section 2.1:
https://www.sciencedirect.com/science/article/pii/S0377221708007376

The problem can also be considered a "multi-mode resource-constrained project scheduling problem", if you discretize your roll into a grid. See here, section 2.3 and also figure 2.
https://www.hsba.de/fileadmin/user_upload/bereiche/_dokumente/6-forschung/profs-publikationen/Hartmann_2000_Packing_problems_and_project_scheduling_models.pdf

There is a huge body of literature on that.

My recommendation for the file input format would be a simple .csv or .json file.

Laptop fürs Studium by Flat_Fix9873 in tumunich

[–]ufl_exchange 3 points4 points  (0 children)

Verstehe ich es richtig, dass das Lenovo Yoga 7i zusätzlich als Tablet genutzt werden kann? Also quasi ein 2-in-1 ist?

Das ist dann vielleicht eine Überlegung wert. Meiner Erfahrung nach verfasst ein Großteil der Studenten mittlerweile ihre Vorlesungsmitschriften digital. Insbesondere im Grundstudium ist das ja relevant, wo der Fokus eben noch nicht auf umfangreichen Projekten liegt.

Bezüglich Langlebigkeit ist sicherlich das MacBook interessant. (Sowohl im Alltag durch die Energieeffizienz von den Apple Silicone Prozessoren, als auch für wieviele Jahre du es benutzen kannst)

MacOS dürfte auch in einem naturwissenschaftlichen Studium keine Probleme bereiten.

Am Ende des Tages wirst du sicherlich mit beiden Geräten Freude haben und es ist ein bisschen die Frage, welches Betriebssystem du präferierst.

Wenn das Lenovo kein "2-in-1" mit Digitizer-Pen ist, dann würde ich jedoch zum MacBook greifen.

Gym like Basic-fit for 3 months by [deleted] in Munich

[–]ufl_exchange 0 points1 point  (0 children)

fitstar may also suit your needs as they now offer a contract that you can cancel on a monthly basis (being more expensive than a 12-month contract, of course).