# Tagged Questions

Optimization is the act of improving a method or design. In programming, optimization usually takes the form of increasing the speed of an algorithm, or reducing the resources it requires. Another meaning of optimization is numerical optimization algorithms.

**0**

votes

**0**answers

20 views

### Optimization of a function

My problem: I have a square waveform that can be used with different frequencies. (Identical amplitude and width.)I have a set of N different frequencies, and I can play up to 5 waveforms together, ...

**0**

votes

**0**answers

14 views

### Error while using Parallel Computing in fmincon Matlab

I am using UseParallel command to go for parallel computing in fmincon as normal computation is taking a lot of time. But while using Cost=@(u)cost_min(u,CNT,u_in,y_in,Last);options=...

**-3**

votes

**0**answers

30 views

### Should I prioritize writing long CSS files over using Bootstrap classes in my HTML when thinking about optimization?

I am using Bootstrap and often write divs in order to apply bootstrap’s CSS class.On the opposite my Lead dev writes heavy (like really heavy) CSS files. I even rewrote a short html page with like a ...

**0**

votes

**3**answers

134 views

### Return by value vs return by reference?

I wish to seek a bit of feedback (to help me see if my position on the issue is correct or not) regarding returning by const reference vs. returning by value (for performance reasons).To elaborate:...

**-1**

votes

**0**answers

14 views

### algorithm for automatic search of places for signatures

I am looking for an algorithm for automatic search of places for signatures of dimensions. You can see a pretty simple example on the pic. But if I have a big report from CAD-system, there are lots of ...

**-3**

votes

**0**answers

21 views

### Optimizing zoo-series with for-loops in R

Im quite new to R-programming, so Im in need of assistance from more experienced guys like you!Im trying to write this program which optimize portfolioweights in a trading strategy. I am using for ...

**-3**

votes

**0**answers

20 views

### mysql using about 80% cpu, recomendation?

my mysql is using about 70-80% every time of cpu and about 5% memory, and many times when high traffic, websites takes too long to loadcould someone help me?my server is 8 core with 32gb ram, im ...

**0**

votes

**1**answer

27 views

### When looping through a list and printing, user can type in the python shell

I'm making an ASCII based python RPG for a project. The game features a grid system that allows for the players, enemies etc. to move around. Whenever the lines of code (below) are executed in the ...

**0**

votes

**0**answers

9 views

### Pyomo - implicit conversion of pyomo numeric value to integer

I am trying to optimize a pyomo abstract model (m). The model has a (integer) parameter called a. I want to calculate another integer value while constructing a model. Let the other variable be c=a*(...

**1**

vote

**2**answers

23 views

### Python: Gridsearch Without Machine Learning?

I want to optimize an algorithm that has several variable parameters as input.For machine learning tasks, Sklearn offers the optimization of Hyperparameters with the gridsearch functionality.Is ...

**0**

votes

**0**answers

25 views

### How do I apply derivative of transformation matrix to a grayscale image in matlab?

I have 2 grayscale images, A and B. I am performing a rotation and translation on B to calculate the transformed image B*, and calculating the standard deviation of (A-B*).tform=affine2d([cosd(θ) ...

**0**

votes

**0**answers

31 views

### Unable to solve nonlinear equation in Fourier space

I am using scipy.optimize.fsolve to solve a nonlinear equation in Fourier pseudospectral space but it does not work. It gives the same output as the input u0. The equation I am trying to solve is:...

**-1**

votes

**1**answer

39 views

### Why we can not optimize a Neural Network model with two cost function in series?

I'm trying to implement a neural network in which I want optimized two cost function. Could you please let me know your thoughts about an approach that does the following: for i in it ... ...

**-1**

votes

**2**answers

36 views

### Simple Header Library in C / C++ for Detection of CPU Features (Supported Instruction Set)

I'd like to create a simple function for CPU features detection.I need it for Run Time dispatching of code paths by the CPU features.I'd like something really simple like:hasSSE3(), hasSSE4(), ...

**2**

votes

**1**answer

49 views

### How to define a variable by an equation containing it? (Python)

I´m solving a problem in which i have to print all the fibonacci numbers such that:a <=f <=bAnd i would like to start them by the smallest fibonacci number that is greater than or equal to ...