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
6
votes
0 answers

Understanding the Jacobian output of scipy.optimize.minimize

I'm working with scipy.optimize.minimize to find the minimum of the RSS for a custom nonlinear function. I'll provide a simple linear example to illustrate what I am doing: import numpy as np from scipy import optimize def response(X, b0, b1, b2): …
khiner
  • 411
  • 5
  • 7
6
votes
3 answers

Why does scipy.optimize.minimize (default) report success without moving with Skyfield?

scipy.optimize.minimize using default method is returning the initial value as the result, without any error or warning messages. While using the Nelder-Mead method as suggested by this answer solves the problem, I would like to understand: Why does…
uhoh
  • 3,713
  • 6
  • 42
  • 95
6
votes
1 answer

Bounded root finding in scipy

Scipy offers several seemingly equivalent functions for finding the root of a function in a given interval: brentq(f, a, b[, args, xtol, rtol, maxiter, ...]) Find a root of a function in given interval. brenth(f, a, b[, args, xtol, rtol, maxiter,…
abcd
  • 10,215
  • 15
  • 51
  • 85
6
votes
8 answers

How to disable the minimize button in C#?

In my application I need to temporarily gray out the minimize button of the main form. Any ideas how this can be achieved? I don't mind doing p/invokes to Win32 dlls. Edit: Graying out the minimize button would be the preferred solution, but is…
Filip Frącz
  • 5,881
  • 11
  • 45
  • 67
6
votes
6 answers

Is it really a big improvement for a webpage to minimize HTML, PHP or CSS files or it doesn't make any big difference?

I saw this HTML minifier in Ajaxian and it made me wonder if its really a big improvement for webpage to minimize HTML, PHP or CSS files or it doesn't make any big difference? (assuming that they are 100 lines long in average)
alexchenco
  • 53,565
  • 76
  • 241
  • 413
6
votes
2 answers

PROLOG CLPFD How to express this via constraints?

Given the following sample of code: example(Ls) :- Ls = [X,Y], Ls ins 1..2, Cost #= max((X #= 1)*3 + (Y #= 1)*5, (X #= 2)*3 + (Y #= 2)*5), labeling([minimize(Cost)], Ls). The idea is to find the assignment to…
user2460978
  • 735
  • 6
  • 19
6
votes
1 answer

minimize application and starts from where user left

i am making an application and i want to minimize the application when user click the minimize button and i am using the below code.below code minimize the Application but when i re open the application it always starts with the first activity.And i…
MOBEEN Warar
  • 79
  • 1
  • 8
6
votes
4 answers

Why jQuery UI Dialog has no minimize, maximize buttons?

I am using jQuery-1.9.1 and jQuery-ui-1.10.2 to popup a dialog, my code is below:
hiway
  • 3,906
  • 10
  • 34
  • 57
6
votes
2 answers

Optimize a function of a function in r

I would like to minimize the mean squared error (the mse() in the hydroGOF Package might be used) between modeled and observed spreads. The function is defined as: KV_CDS <- function(Lambda, s, sigma_S){ KV_CDS = (Lambda * (1 + s)) / exp(-s…
New2R
  • 93
  • 6
6
votes
2 answers

Scipy minimize fmin - problems with syntax

I have a function which takes several arguments (one array and two floats) and returns a scalar (float). Now I want to minimize this function by varying two of the arguments: the two floats. The array is "unpacked" inside the function at its…
user1987501
  • 91
  • 1
  • 4
6
votes
1 answer

minimization in scipy, algorithm to find all local minima of a N dimensional scalar function

Does anybody know about a powerful routine/algorithm (preferrably in scipy/python) to localise "all" the local minima for a scalar real function of N variables in a defined ("rectangular") region of N-dimensional vector space ? the constrained and…
6
votes
5 answers

How to show a form again after hiding it?

I have two forms. I need to open a second form with a button. When I open form2 I hide form1. However when I try to show form1 again from form2 with a button it doesn't work. My form1 code is: Form2 form2 = new Form2(); …
Oktay
  • 127
  • 1
  • 2
  • 15
5
votes
2 answers

How to un-minimize a browser window with selenium?

I've read through several minimization-related questions using Selenium but nowhere in their documentation says how to interface with a window that has been minimized. If you try running the set_window_size() or maximize_window() functions on the…
Niko
  • 61
  • 4
5
votes
1 answer

How is the Win32 API used in C++ to minimize a window to the system tray?

Pretty much a self-explanatory title. I'm writing an application in C++ with the Win32 API, and I'd like to know how to minimize to the system tray. I can find all kinds of articles online about minimizing to the system tray in C#, Python, even…
Ken Bellows
  • 6,711
  • 13
  • 50
  • 78
5
votes
0 answers

Can I specify a maximum step length in scipy.optimize.minimize()?

I want to minimize a scalar function (energy) of a 1D array of variables (atomic coordinates). The function and gradient are computed by an external program. My problem is that the scipy function is taking big steps in X, causing f(X) to fail. Is…
Karl I.
  • 121
  • 5