Questions tagged [optimal]
35 questions
0
votes
0 answers
Distribution of points in a 2d grid that minimize the average distance from all the other points of the grid to these points
Let's consider a 2d array A with A(i,j)=0 whatever i and j initially.
Let's now add n points for which A(i,j)=1, i.e., sum(sum(A))=n
The question is:
What is the optimal spatial distribution of these n points that would minimize the average…

Doby
- 1
0
votes
1 answer
Optimal number of clusters - Error in FUNcluster(x, i, ...) : more cluster centers than distinct data points
I have these data and I need to find the optimal number of clusters of this table.
The values can be either 0, 0.5 or 1
library(NbClust)
library(factoextra)
library(pheatmap)
tab=structure(list(`57-B1` = c(1, 0.5, 0.5, 1, 1, 0.5), `57-B3` =…

mirkuz
- 103
- 1
- 1
- 13
-1
votes
0 answers
I need to optimise coefficients in the formula to minimise prediction error
I have a formula with 3 coefficients: a + 0.5x1 + 0.6x2 + 0.8*x3 = y_predicted
My Target 'y_target' and 'y_predicted' have a bias that I want to minimise.
How to I find a new set of parameters the would minimise that bias?

Anna
- 29
- 2
-1
votes
1 answer
OR-tools returns sub-optimal TSP solution
I'm trying to replicate a TSP code to calculate an optimal route from a user-supplied array of distances, but the code returns never giving me the optimized option. The return is always fixed at 90.
Given this code:
# Bibliotecas
from __future__…

LeticiaMello
- 1
- 2
-3
votes
1 answer
Find the minimum arrows required to remove all 1's in a matrix
Given a binary matrix of size N x M, we need to find the minimum number of arrows require to remove all the 1's in the matrix.
Arrows can be hit vertically say at y = 6, It will remove all 1's at matrix[x][6], where 0 <= x < N Or horizontally as…

tusharRawat
- 719
- 10
- 24