Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inequality constraints #81

Open
ghost opened this issue Oct 14, 2016 · 12 comments
Open

Inequality constraints #81

ghost opened this issue Oct 14, 2016 · 12 comments

Comments

@ghost
Copy link

ghost commented Oct 14, 2016

Add constraint that give a way set parametre as ≤ or ≥ to inserted value.
Its very important for kinematic schemes, assembled models and mechanism design.

@jwesthues
Copy link
Member

In brief, SolveSpace's solver could be hacked to kind of support inequalities, but it was never made for that. Some earlier threads:

http://solvespace.com/forum.pl?action=viewthread&parent=211
http://solvespace.com/forum.pl?action=viewthread&parent=886

@ghost
Copy link
Author

ghost commented Oct 14, 2016

Also, some time its needed prevent to change vector (for example, "line could be enlarged only from start point in left direction, and not in reverse")

@whitequark whitequark changed the title "Fixed or Smaller (Bigger)" constraint for length and angle Inequality constraints Oct 14, 2016
@Evil-Spirit
Copy link
Collaborator

@jwesthues, This actually was made and works fine. I even don't see any "hacks" in this solution, just the pure mathematics :)

@damian0815
Copy link

Are they any plans to bring this into the core? I would love this feature.

@whitequark
Copy link
Contributor

No immediate plans, other tasks have a higher priority.

@ghost
Copy link
Author

ghost commented Jul 25, 2017

This actually was made and works fine. I even don't see any "hacks" in this solution, just the pure mathematics :)

@jwesthues & @Evil-Spirit, so if it work in test, why not implemented yet?

@Evil-Spirit
Copy link
Collaborator

@jwesthues,
@whitequark,
@Symbian9,
Uff... I made it!
Evil-Spirit@6b7e99b

@Evil-Spirit
Copy link
Collaborator

case Op::NORM: return a->PartialWrt(p)->Times(a->Abs()->Sgn());

This actually was made and works fine. I even don't see any "hacks" in this solution, just the pure mathematics :)

I even don't see any "hacks"

"hacks"

@ghost
Copy link
Author

ghost commented Aug 1, 2017

Uff... I made it!

Evil-Spirit@6b7e99b

Evil-Spirit, you are the man! Do not forget call @probonopd to this party too!

@Harvie
Copy link

Harvie commented May 20, 2019

Can you please merge this? Looks very nice!

KmolYuan/python-solvespace#3

@whitequark
Copy link
Contributor

Yeah, it's in my review queue. I did not forget about this patch though.

@Harvie
Copy link

Harvie commented May 22, 2019

BTW if we could just enter the inequality or range like this, it would be smooth:

image

(it already supports some kind of basic math like subtraction, so this can be nice addition)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants