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
22
votes
2 answers

How does scipy.minimize handle NaN's?

I'm using the SLSQP solver in scipy.minimize to solve a constrained optimization problem. Very often the solver will try parameter values that violate the constraints. When these constraints are violated, the objective function returns a nan. …
Peter
  • 395
  • 3
  • 7
20
votes
9 answers

HTML online minimizer/compressor?

Does anyone know of a good online generator to take the source code of an HTML page and compress/minimize the entire page. Meaning, compress/minimize all embedded CSS, JavaScript and obviously the HTML of that web page while also removing unneeded…
Ted
  • 217
  • 1
  • 2
  • 3
17
votes
6 answers

Qt hide minimize, maximize and close buttons

Do you know how to hide minimize, maximize and close buttons of title bar in Qt. I especially need to hide it on QMainWindow.
ufukgun
  • 6,889
  • 8
  • 33
  • 55
16
votes
4 answers

Minimizing all open windows in C#

I saw this C++ code on a forum which minimizes all open windows #define MIN_ALL 419 #define MIN_ALL_UNDO 416 int main(int argc, char* argv[]) { HWND lHwnd = FindWindow("Shell_TrayWnd",NULL); …
user47322
16
votes
3 answers

What algorithms exist to minimize the number of transactions between nodes in a graph?

That title probably doesn't make sense. Assume the following: A owes B $5 C owes B $10 B owes D $15 In this basic situation there are three transactions but it can be reduced to two transactions: A gives D $5 C gives D $10 Given a much more…
knpwrs
  • 15,691
  • 12
  • 62
  • 103
16
votes
2 answers

How to make an undecorated window movable / draggable in JavaFX?

I have to create an application in which minimize and maximize button will be disabled. I have used "StageStyle.UNDECORATED" with which the application will not be movable or draggable anymore, so I am searching for any other alternative to make my…
Shreyas Dave
  • 3,815
  • 3
  • 28
  • 57
15
votes
1 answer

Minimize window with NoResize mode on

I have a WPF application, where Window property ResizeMode is set on NoResize. Hence maximize and minimize button is hidden. Is there a way to add minimize button? Because I don't want to allow user just resize window in order to not deform…
Ondrej Janacek
  • 12,486
  • 14
  • 59
  • 93
14
votes
3 answers

Multi-objective optimization example Pyomo

Any example for multi-objective optimization in Pyomo? I am trying to minimize 4 Objectives (Non Linear) and I would like to use pyomo and ipopt. Have also access to Gurobi. I want to see even very simple example where we try to optimize for two…
Golf Kilo Bravo
  • 143
  • 1
  • 1
  • 5
14
votes
5 answers

Closing child window minimizes parent

The following code demonstrates an issue I'm having where closing a child window minimizes the parent window, which I dont want to happen. class SomeDialog : Window { protected override void OnMouseDoubleClick(MouseButtonEventArgs…
wforl
  • 843
  • 10
  • 22
13
votes
4 answers

Generate minimized jar with only used classes

I'm in need of creating the minimal jar of utils library for use in Android. I'm using some methods from apache commons libraries (such as IOUtils, StringUtils). However, each such usage makes me import the whole library (commons-lang, commons-io…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
13
votes
2 answers

Minimize Polygon Vertices

What is a good algorithm for reducing the number of vertices in a polygon without changing the way it looks very much? Input: A polygon, represented as a list of points, with way too many verticies: raw input from the mouse, for example. Output: A…
Nick Retallack
  • 18,986
  • 17
  • 92
  • 114
13
votes
1 answer

How to minimize a function over one input parameter in R

Suppose I have a function that is defined as following myFunction = function(input1, input2, input3) { # do something with input and then return } and now I want to minimize myFunction over only the first input, namely, input1, while fixing the…
Enzo
  • 969
  • 1
  • 8
  • 23
11
votes
3 answers

Minimize Chrome browser to tray?

How to minimize chrome browser to tray when I click on standard minimize button? I don't want Chrome to appear in task bar. Can we implement this by Chrome extension code?
11
votes
1 answer

How Do I put 2 matrix into scipy.optimize.minimize?

I work with the scipy.optimize.minimize function. My purpose is get w,z which minimize f(w,z) Both w and z are n by m matrices: [[1,1,1,1], [2,2,2,2]] f(w,z) is receive parameter w and z. I already tried the form given below: def f(x): w =…
lee6boy
  • 113
  • 1
  • 1
  • 6
11
votes
1 answer

Python Scipy Optimization.minimize using SLSQP showing maximized results

I am learning to optimize a multivariate constrained nonlinear problem with scipy.optimize.minimize,but received strange results. My problem: minimize objfun objfun x*y constraints 0<=x<=5, 0<=y<=5, x+y==5 My code: from scipy import…
david
  • 113
  • 1
  • 1
  • 5
1
2
3
56 57