
Geesara Kulathunga
- Total activity 6
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 3
Activity overview
Latest activity by Geesara Kulathunga-
Geesara Kulathunga created a post,
How can I formulate QP problem?
I want to program this, still not clear how to embed multiple optimization variables.
-
Geesara Kulathunga created a post,
How can we set a objective function in setObjective
import numpy as npimport scipy.optimizeimport gurobipy as gphalfspaces = np.array([[-0.513574, 0.858045 , 0,1.99106],[0.513574 ,-0.858045 , -0,2.00894],[-0.856348 , -0.512558, -0.0628725, 3.28365],...
-
Geesara Kulathunga created a post,
My LP model does not give expected answer
Answeredimport gurobipy as gpfrom scipy.optimize import linprogimport numpy as nplp_m = gp.Model()w = np.array([1., 5., 1.])halfspaces = np.array([[1.*w[0], 1.*w[1], 1.*w[2], -10 ],[ 1., 0., 0., -4],[ 0., ...