Geesara Kulathunga
- 合計アクティビティ 6
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 3
投稿
Geesara Kulathungaによる最近のアクティビティ-
How can I formulate QP problem?
I want to program this, still not clear how to embed multiple optimization variables.
-
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],...
-
My LP model does not give expected answer
回答済みimport 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., ...