numpy - How to generate all points in Python for 0< x_1+x_2+x_3<1, x_1>0,x_2>0,x_3>0, say dx=0.01 -


how generate points in python 0<x_1+x_2+x_3<1, x_1>0,x_2>0,x_3>0, $dx=0.01$. trying use grid in solving constrained optimization problem.

you can randomize 2 points between 0 , 1, , additional 1 described below.
x1 equal: first point
x2 equal: abs(first-second)
x3 equal: random point in (0, 1 - x1 - x2)


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -