Questions tagged [minimize]

To minimize is to replace one object with another object that can restore the original when selected.

In a graphical interface, to minimize is to replace one object with another, less obtrusive object that can restore the original when selected. The original object is often a window; the minimized form is often an iconic button located in a system dock, tray or task bar.

849 questions
3
votes
0 answers

NoClassDefFoundError Crash on Minimizing Youtube Player on Android 4.0, 4.2, 4.4

Problem : Youtube Player crashes on minimizing youtube player activity/Fragment in the app. Cause : Youtube Player Update Code public class YouTubePlayerActivity extends YouTubeBaseActivity implements YouTubePlayer.OnInitializedListener { …
Umesh Isran
  • 243
  • 2
  • 16
3
votes
3 answers

Algorithm to find minimum spanning tree when cost is given by multiplying edge weights

I was recently asked if I could find an algorithm to compute the minimum cost spanning tree of a given graph, where the total cost of the spanning tree is given by the product of the edge costs rather than by their sum. There are several algorihms…
AlexTex
  • 47
  • 2
  • 7
3
votes
1 answer

Can You build a DockPanel like Visual Studio in WPF

In Visual Studio, we can add various panels like SolutionExplorer Panel, Properties Panel,etc. Also we can minimize these panels and maximize these panels. I want to design a dockpanel similar to what I have mentioned in WPF. ( I should be able to…
3
votes
0 answers

Why is each iteration in Nelder-Mead in scipy so slow?

I'm trying to minimize a function using Nelder-Mead as implemented in scipy.minimize(method='Nelder-Mead'). The function has about 30 inputs, but I have been optimizing sequentially (i.e. optimize over the first 5, keep remaining 25 fixed, then…
Superpronker
  • 309
  • 4
  • 10
3
votes
5 answers

Swap if-statements

I am working on code minimization and enhancement. My question is: is it possible to swap the if statements above without destroying the logic of the code? int c1 = Integer.parseInt(args[0]) ; int c2 = Integer.parseInt(args[1]) ; int c3…
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
3
votes
1 answer

Find global minimum using scipy.optimize.minimize

Given a 2D point p, I'm trying to calculate the smallest distance between that point and a functional curve, i.e., find the point on the curve which gives me the smallest distance to p, and then calculate that distance. The example function that I'm…
zephyr
  • 2,182
  • 3
  • 29
  • 51
3
votes
2 answers

solve.QP require D to be symmetric positive definite in R

When I run solve.QP on my problem, I get the following error from R: Error in solve.QP(sigma, rep(0, 5), t(Amat), bvec, meq = 2) : matrix D in quadratic function is not positive definite! My sigma matrix is symmetric but is not positive…
user236215
  • 7,278
  • 23
  • 59
  • 87
3
votes
1 answer

How can I pass fixed arguments using scipy minimize()?

How can I optimize two variables in a three variable function? My understanding was that I can include the last variable in the args parameter, but I cannot make this work. What am I doing wrong here? The idea is that I want to optimize x and y and…
kilojoules
  • 9,768
  • 18
  • 77
  • 149
3
votes
1 answer

Minimize and Maximum one Div when many are displayed

I made an update to someone's coding at How to maximize and minimize a div. I wanted to see if I can populate various listings below each other and depending on which one selected, it will maximize or minimize. However, when testing this, only the…
narue1992
  • 1,143
  • 1
  • 14
  • 40
3
votes
1 answer

Minimize Multivariable Function Python SciPy

I'm trying to minimize a function that has arguments S1, S2, S3 and n1, n2, and n3. There are also weights: w1, w2, and w3. This is the function: f = (w1**2 * n1**2 + w2**2 * n2**2 + w3**2 * n3**2) / (w1**2 * S1**2 + w2**2 * S2**2 + w3**2 * S3**2…
hazel
  • 31
  • 1
  • 1
  • 3
3
votes
1 answer

How to set up minimize with scipy leastsq

I am trying to understand how to set up a python scipy minimizing problem. It is an example I took from an Excel Solver problem. The simplest way to explain the problem is by trying to solve a very simple electrical network: R1: 100 R2: 1000 R3:…
Willem
  • 61
  • 4
3
votes
1 answer

Optimization in R: Maximizing and Minimizing Many Variables

I have a dataset with 70 foods and information about each food's nutritional value (protein/oz., fat/oz., cals/oz., etc.), as well as the food's cost/oz. I am trying to figure out--given a set budget in $--what the best combination of foods (and the…
eleh915
  • 65
  • 1
  • 6
3
votes
2 answers

Optimisation using scipy

In the following script: import numpy as np from scipy.optimize import minimise a=np.array(range(4)) b=np.array(range(4,8)) def sm(x,a,b): sm=np.zeros(1) a=a*np.exp(x) sm += sum(b-a) return sm x0=np.zeros(4) print…
DimKoim
  • 1,024
  • 6
  • 20
  • 33
3
votes
3 answers

Programmatically hide/show a window in Linux

I've been searching all over the place for a solution to this. How can I show/hide (or minimize/unminimize if you rather) Linux windows. I'm interested in any solution in any language. I use Debian, Gnome, Metacity and Compton composite manager if…
Juicy
  • 11,840
  • 35
  • 123
  • 212
3
votes
1 answer

fitting two lorentz by lmfit Model minimize in python

maybe someone can help me. I spent days on it, but I couldn't get through the problem. Thanks in advance. I want to fit 2 lorentzians to my experimental data. I broke my equations down to simple form of two lorentzians lorentz1 and lorentz2…
Amin
  • 437
  • 2
  • 4
  • 17