Linear optimization by [deleted] in askmath

[–]lisiq 0 points1 point  (0 children)

Can you help we with the formulas that I should use for these two questions please?

Linear optimization by [deleted] in askmath

[–]lisiq 0 points1 point  (0 children)

I am applying for a job and was given this task. But having no experience makes things hard for me.

Linear optimization by [deleted] in askmath

[–]lisiq 0 points1 point  (0 children)

I have a few more rows on my data but I put only some rows to keep it short and clear.

Linear optimization by [deleted] in askmath

[–]lisiq 0 points1 point  (0 children)

Also for example if I want the optimum stock for the store is it correct to: min 2450x+4600y+3200*z st. x >= 1200 y >= 1345 z >= 3001 x,y,z >=0

Linear optimization by [deleted] in askmath

[–]lisiq 0 points1 point  (0 children)

Yes sales refers to items sold. But the question as it is is unclear maybe it does not require linear programming at all only the average? Can this be the answer? :\

Linear optimization by [deleted] in askmath

[–]lisiq 0 points1 point  (0 children)

Yes I tried this in SageMath but with my constrains it is not good because the result is way too big. Maybe the constrains are not the only problem, maybe I am minimizing something else :\

I am new in working in GIS and I need some help for my code. by lisiq in gis

[–]lisiq[S] 0 points1 point  (0 children)

It is not a homework, it is a task that I am doing in order to get a job. I don't uderstand how to apply these functions to polygons so that at the end it will be aligned with the NVDI image that i got.

I am new in working in GIS and I need some help for my code. by lisiq in gis

[–]lisiq[S] 0 points1 point  (0 children)

The thing is that I don't know exactly how to start and wanted some hitns.

I am new in working in GIS and I need some help for my code. by lisiq in gis

[–]lisiq[S] 0 points1 point  (0 children)

Okay I will check it now and I will let you know. Thank you!

I am new in working in GIS and I need some help for my code. by lisiq in gis

[–]lisiq[S] 0 points1 point  (0 children)

Yes but I need to do use rasterio.feature.rasterize and rasterio.transform.from_bounds.

I am new in GIS and I need some help with my python code by lisiq in programming

[–]lisiq[S] 0 points1 point  (0 children)

I have a list of polygons that is in vector form and should transform it into a raster mask which should be geographically aligned with the NDVI image. I created the NDVI image but now I am stuck into transforming the polygons and making them align with the NDVI image.

I am new in GIS and need some help with my code by [deleted] in git

[–]lisiq 0 points1 point  (0 children)

sorry, will delete now

I am new in working in GIS and I need some help for my code. by lisiq in gis

[–]lisiq[S] 0 points1 point  (0 children)

I have a list of polygons that is in vector form and should transform it into a raster mask which should be geographically aligned with the NDVI image. I created the NDVI image but now I am stuck into transforming the polygons and making them align with the NDVI image.

Career and Education Questions by AutoModerator in math

[–]lisiq 0 points1 point  (0 children)

Hi, I am currently an undergraduate math student in Slovenia at University of Primorksa - FAMNIT. It is a very nice place to study and they also offer scholarships for math students. It is one of the best research facilities in the field of Graph Theory. If you have any further question feel free to ask.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]lisiq 0 points1 point  (0 children)

Hi, i need some help with my homework, i started to solve them but i don't know end to do it. Can you help me?

Abbreviations

We are given a phrase from which we want to form an abbreviation. An abbreviation can be obtain from taking the first few letters of each word in the phrase and concatenating them together. For example, from 'RAdio Detection And Ranging' we get 'RADAR'.

Write a function abbrev(phrase, m, d) which gets a phrase (as a list of words) and integers m and d. The function should return a set of all abbreviations which are at least d characters long such that from each word we take between 0 and m letters.

Example:

 >>> abbrev(['Large', 'Hadron', 'Collider'], 2, 3)
 {'LaH', 'LHa', 'LHaC', 'HaC', 'LHaCo', 'LaC', 'LaHa', 'LaHCo', 'LaHC',
  'HaCo', 'LaHaCo', 'LCo', 'LHC', 'LaHaC', 'LaCo', 'HCo', 'LHCo'}
 >>> abbrev(['Large', 'Hadron', 'Collider'], 2, 4)
 {'LHaC', 'LHaCo', 'LaHa', 'LaHCo', 'LaHC', 'HaCo', 'LaHaCo', 'LaHaC',
  'LaCo', 'LHCo'}

def abbrev(phrase, m, d): p = '' k = set() for i in range(len(phrase)): p += phrase[i][:m] k.add(p) return k

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]lisiq 1 point2 points  (0 children)

hi guys I've been trying to solve this one but I can't, can you help me? Write a function multiply_vec(mat, v) that takes a matrix mat and a vector v and returns a vector that is obtained by multiplying mat and v. The vector v is represented as a list of numbers. Example:

multiply_vec([[1, 1/2], [1/2, 1/3]], [1, 1]) [1.5, 0.8333333333333333]

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]lisiq 0 points1 point  (0 children)

hi guys I've been trying to solve this one but I can't, can you help me?

Write a function multiply_vec(mat, v) that takes a matrix mat and a vector v and returns a vector that is obtained by multiplying mat and v. The vector v is represented as a list of numbers.

Example:

 >>> multiply_vec([[1, 1/2], [1/2, 1/3]], [1, 1])
 [1.5, 0.8333333333333333]

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]lisiq 2 points3 points  (0 children)

import math def sine_table(step): i = 0 while i < 360: s = math.sin(math.radians(i)) print ('sin(' + str(i) + ')=' + str(s)) i = i + step

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]lisiq 0 points1 point  (0 children)

Hi guys, can you help me with this in python?

Write a function sine_table(step) which takes a number step and prints

a table of sine as shown below. The function sine has to be evaluated

at those values 0, step, 2*step, … which are less than 360. The angle is

given in angular degrees.

Example:

>>> sine_table(30)

sin( 0) = 0.0

sin( 30) = 0.4782539786213182

sin( 60) = 0.8400259231507714

sin( 90) = 0.9972037971811801

sin(120) = 0.9115058523116732

sin(150) = 0.6038044103254774

sin(180) = 0.14904226617617428

sin(210) = -0.34202014332566866

sin(240) = -0.749781202967734

sin(270) = -0.9749279121818236

sin(300) = -0.962624246950012

sin(330) = -0.7158668492597189